In Talend Studio 8.0.1 you process big data with Spark Batch and Spark Streaming Jobs: Studio generates the Spark code, the Spark configuration tab of the Run view decides where it runs (Local, Yarn cluster, Kubernetes, Databricks, Amazon EMR and others), and configuration components such as tHDFSConfiguration or tS3Configuration connect the Job to storage. R2026-10 changed the names and icons of Big Data project items, so older documentation still says Big Data Batch and Big Data Streaming. This guide covers Job setup, HDFS, Hive, cloud storage and Spark tuning.
Petru Constantin has built Talend ETL pipelines and APIs between enterprise systems since 2022. Code examples are written against the Talend Studio 8.0.1 R2026-10 and the Apache Spark 4.3 configuration documentation documentation.
Big Data Architecture Overview
TALEND STUDIO 8.0.1 WHERE THE JOB RUNS
(Run view > Spark configuration)
Spark Batch / Spark Streaming Job
Local | Standalone | Yarn cluster
Processing components -----> Kubernetes | Databricks | Amazon EMR
(tFileInputDelimited, tMap, Google Dataproc | Azure Synapse | Cloudera
tAggregateRow, tFileOutputParquet)
STORAGE
Configuration components -----> HDFS (tHDFSConfiguration)
Amazon S3 (tS3Configuration)
ADLS Gen2 (tAzureFSConfiguration)
Google Cloud Storage (tGSConfiguration)
Hive metastore (tHiveConfiguration)
Spark Job Configuration
Spark Connection Setup
Run view > Spark configuration tab (set per Job)
Distribution: Universal
Version: Spark 3.x or Spark 4.x
Spark 3.x: Local, Standalone (3.2.x, 3.4.x), Yarn cluster (not 3.4.x), Kubernetes,
Databricks, Google Dataproc (3.1.x, 3.3.x), Amazon EMR,
Azure Synapse (3.2.x, 3.3.x), Cloudera
Spark 4.x: Local, Databricks, Databricks Serverless (preview);
R2026-10 adds EMR 8.x with Spark 4.1 and 4.0.2
Check the support table of your exact Studio release before choosing.
Runtime mode/environment: Yarn cluster (example)
Advanced properties (Spark property / value, values can be context variables):
"spark.executor.memory" context.spark_executor_memory
"spark.executor.cores" "4"
"spark.driver.memory" "4g"
"spark.sql.shuffle.partitions" "200"
"spark.serializer" "org.apache.spark.serializer.KryoSerializer"
Context groups:
DEV: spark_executor_memory = "2g"
PROD: spark_executor_memory = "16g"Spark Batch Job Structure
Typical Spark Batch Job
tHDFSConfiguration (or tS3Configuration / tAzureFSConfiguration / tGSConfiguration)
(no link: the configuration applies to the whole Job)
tFileInputDelimited ──► tMap ──► tFilterRow ──► tAggregateRow ──► tFileOutputParquet
Studio generates and submits the Spark code from this design;
you do not write SparkSession or DataFrame code in the Job.HDFS Operations
HDFS Connection Configuration
/*
* tHDFSConfiguration (Spark Batch), Basic settings
*
* Property type: Built-In or Repository (Hadoop cluster metadata)
* Distribution / Hadoop version: match your cluster
* NameNode URI: context.hdfs_namenode e.g. "hdfs://namenode.cluster.local:8020"
* User name: context.hdfs_user
*
* Secured cluster:
* - Use kerberos authentication
* - Use a keytab to authenticate: principal and keytab path
*
* NameNode HA: add the HA keys of your cluster in the Hadoop properties table
* "dfs.nameservices" "mycluster"
* "dfs.ha.namenodes.mycluster" "nn1,nn2"
* "dfs.namenode.rpc-address.mycluster.nn1" "namenode1.cluster.local:8020"
* "dfs.namenode.rpc-address.mycluster.nn2" "namenode2.cluster.local:8020"
* "dfs.client.failover.proxy.provider.mycluster"
* "org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider"
* NameNode URI then becomes "hdfs://mycluster"
*/
// Context variables
context.hdfs_namenode = "hdfs://namenode:8020"
context.hdfs_user = "talend_etl"
context.hdfs_data_path = "/data/raw"
context.hdfs_output_path = "/data/processed"HDFS File Operations
/*
* Inside a Spark Batch Job, HDFS is read and written by the file components;
* tHDFSConfiguration in the same Job supplies the connection.
*
* tFileInputDelimited (Spark Batch)
* Folder/File: context.hdfs_data_path + "/sales/"
* Header, field separator, encoding: as in the source files
*
* tFileOutputParquet (Spark Batch)
* Folder: context.hdfs_output_path + "/sales_processed"
* Action: Overwrite
* Compression: Snappy
*/
/*
* File housekeeping (delete, list, copy, move) runs in a Standard Job
* with the Standard HDFS components:
*
* tHDFSConnection ──► tHDFSList (list context.hdfs_data_path + "/landing")
* ──► tHDFSCopy (landing ──► archive)
* ──► tHDFSDelete (remove the copied landing files)
*/Hive Integration
Hive Connection and Queries
/*
* Standard Job: tHiveConnection
* - Distribution / Hive version: match your cluster
* - Host: hiveserver2.cluster.local, Port: 10000 (HiveServer2 default)
* - Database: analytics_db
* - Kerberos on secured clusters
*
* tHiveInput query (a Java string). Filtering on partition columns lets Hive prune partitions:
* "SELECT * FROM analytics_db.sales_fact WHERE year = 2024 AND month = 1"
*
* tHiveRow statements:
*/
String createTableSQL = "CREATE TABLE IF NOT EXISTS analytics_db.daily_metrics (" +
"metric_name STRING, " +
"metric_value DOUBLE, " +
"record_count BIGINT, " +
"created_at TIMESTAMP" +
") " +
"PARTITIONED BY (process_date STRING) " +
"STORED AS PARQUET " +
"TBLPROPERTIES ('parquet.compression'='SNAPPY')";
// Add a partition
String addPartitionSQL = "ALTER TABLE analytics_db.daily_metrics " +
"ADD IF NOT EXISTS PARTITION (process_date='" + context.process_date + "')";
// Discover partitions written directly to HDFS
String repairSQL = "MSCK REPAIR TABLE analytics_db.daily_metrics";Spark with Hive Integration
/*
* Spark Batch Job reading and writing Hive tables
*
* tHiveConfiguration: connection to the Hive metastore of the cluster
* (metastore URIs usually look like thrift://hive-metastore:9083)
*
* tHiveInput (Spark Batch), query:
* "SELECT * FROM analytics_db.transactions WHERE status = 'COMPLETED'"
*
* tHiveOutput (Spark Batch):
* table analytics_db.transaction_summary, overwrite or append,
* partition columns year, month
*
* Studio generates the Spark code; there is no DataFrame code to write.
*/Cloud Data Lake Integration
AWS S3 with Spark
/*
* tS3Configuration (Spark Batch), Basic settings
* - Access Key / Secret Key: context.aws_access_key, context.aws_secret_key (Password type)
* OR Inherit credentials from AWS, when the cluster (for example EMR) has an instance role
* - Bucket name: my-data-lake
* - Temp folder: /tmp
* - Set region: us-east-1
* - Use SSE encryption, Assume role, Set endpoint: only when your account needs them
*
* With tS3Configuration in the Job, the file components use s3a paths:
* tFileInputDelimited (Spark Batch): "s3a://my-data-lake/raw/sales/year=2024/month=01/"
* tFileOutputParquet (Spark Batch): "s3a://my-data-lake/silver/sales_processed/"
*/Azure Data Lake with Spark
/*
* tAzureFSConfiguration (Spark Batch) for ADLS Gen2
* - Fill in the storage account and authentication fields of the component
* - Several tAzureFSConfiguration components can be used in a subJob
* to reach several ADLS Gen2 file systems
*
* Paths use the abfss scheme:
* tFileInputParquet (Spark Batch): "abfss://raw@mydatalake.dfs.core.windows.net/sales/2024/"
* tFileOutputParquet (Spark Batch): "abfss://processed@mydatalake.dfs.core.windows.net/sales_silver/"
*/Google Cloud Storage with Spark
/*
* tGSConfiguration (Spark Batch)
* - Path to the Google credentials file (service account JSON): the file must be
* on the machine where the Job is actually launched and executed
*
* tFileInputJSON (Spark Batch): "gs://my-data-bucket/raw/events/date=2024-01-15/"
* tFileOutputParquet (Spark Batch): "gs://my-data-bucket/processed/events/"
*/Performance Optimization
Spark Job Tuning
# Spark configuration tab > Advanced properties (one property per row)
# Starting points only: size them from the Spark UI of a real run.
# Shuffle partitions (Spark default: 200)
spark.sql.shuffle.partitions=400
# Adaptive query execution is enabled by default since Spark 3.2.0;
# coalescePartitions and skewJoin default to true when it is on
spark.sql.adaptive.enabled=true
# Executor sizing
spark.executor.memory=16g
# Default overhead: executorMemory * 0.10, minimum 384m
spark.executor.memoryOverhead=3g
# spark.memory.fraction (default 0.6) and spark.memory.storageFraction (default 0.5):
# leave them unless the Spark UI shows a specific spill or eviction problem
# Off-heap memory needs both properties
spark.memory.offHeap.enabled=true
spark.memory.offHeap.size=4g
# Kryo is faster than the default JavaSerializer
spark.serializer=org.apache.spark.serializer.KryoSerializer
spark.kryo.registrationRequired=falseData Partitioning Strategies
Data partitioning in a Spark Batch Job
Write side
Partition output by the columns readers filter on (date parts for time series).
Avoid high-cardinality partition columns such as customer_id: many small files.
Small lookup tables
Spark broadcasts tables below spark.sql.autoBroadcastJoinThreshold (default 10 MB).
Raise it only if executors have the memory:
spark.sql.autoBroadcastJoinThreshold=52428800
Skewed join keys
With AQE on, Spark splits skewed partitions in sort-merge joins:
spark.sql.adaptive.skewJoin.enabled=true
Manual salting in tMap (when AQE is not enough)
salted_key expression: row1.customer_id + "_" + (int)(Math.random() * 10)
The lookup side must be expanded to the same 10 salt values before the join.Incremental Processing
// 1. Standard Job: tDBInput reads the control table
// SELECT MAX(processed_timestamp) AS watermark
// FROM control.job_watermarks WHERE job_name = 'sales_etl'
// then tJavaRow:
context.last_watermark = input_row.watermark == null
? "1970-01-01 00:00:00"
: TalendDate.formatDate("yyyy-MM-dd HH:mm:ss", input_row.watermark);
context.run_upper_bound = TalendDate.formatDate("yyyy-MM-dd HH:mm:ss", TalendDate.getCurrentDate());
// 2. Spark Batch Job, launched with both values as context parameters
// (TMC task parameters, or --context_param last_watermark=... on the exported script).
// tHiveInput query (Java string):
"SELECT * FROM source_db.transactions " +
"WHERE modified_timestamp > '" + context.last_watermark + "' " +
"AND modified_timestamp <= '" + context.run_upper_bound + "'"
// 3. Only after the Spark Job succeeds: tDBRow writes the new watermark
"INSERT INTO control.job_watermarks (job_name, processed_timestamp) " +
"VALUES ('sales_etl', '" + context.run_upper_bound + "')"Monitoring and Debugging
Spark UI Integration
# Spark configuration tab > Advanced properties
spark.eventLog.enabled=true
# Shared location so the History Server can read the logs; the directory must exist
spark.eventLog.dir=hdfs:///spark-events
# Set on the History Server (spark-defaults.conf), not in the Job:
# spark.history.fs.logDirectory=hdfs:///spark-events
# Live UI on the driver: port 4040 by default (spark.ui.port)
# History Server UI: port 18080 by default
# Per stage, check: duration, shuffle read/write, spread of task times (skew),
# executor memory and GC timeLogging and Debugging
# log4j2.properties on the cluster or driver (current Spark releases log through Log4j 2)
rootLogger.level = warn
rootLogger.appenderRef.stdout.ref = console
appender.console.type = Console
appender.console.name = console
appender.console.target = SYSTEM_ERR
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n
# Keep your project's own classes at INFO
logger.job.name = myproject
logger.job.level = info
# Keep Spark and Hadoop quiet
logger.spark.name = org.apache.spark
logger.spark.level = warn
logger.hadoop.name = org.apache.hadoop
logger.hadoop.level = warnBest Practices Summary
talend_big_data_best_practices:
job_design:
- "Build distributed processing as Spark Batch or Spark Streaming Jobs; Studio generates the Spark code"
- "Set the runtime per Job in the Spark configuration tab of the Run view"
- "Check the Spark Universal support table of your Studio release before choosing a Spark version"
- "Minimize shuffles; let small lookup tables broadcast"
file_formats:
- "Use Parquet or ORC for analytics (columnar, compressed)"
- "Use Avro for streaming and messaging (schema evolution)"
- "Partition data by commonly filtered, low-cardinality columns"
- "Snappy for speed, GZIP for size"
performance:
- "Size executors from the Spark UI of a real run"
- "Keep adaptive query execution on (default since Spark 3.2.0)"
- "Tune spark.sql.shuffle.partitions to the data volume"
reliability:
- "Use idempotent writes (overwrite partitions)"
- "Enable event logs and use the Spark History Server"
- "Keep incremental-load watermarks in a control table"
cloud_specific:
- "Use the storage configuration components (tS3Configuration, tAzureFSConfiguration, tGSConfiguration)"
- "Prefer instance roles (Inherit credentials from AWS) over access keys"
- "Keep secrets in context variables of type Password"Conclusion
Spark Batch Jobs in Talend Studio 8.0.1 run where the Spark configuration tab points them, reach storage through configuration components, and are tuned with standard Spark properties. Check the Spark Universal support table for your Studio release before you pick a Spark version, and size executors from the Spark UI of a real run rather than from fixed numbers.
Official references
- Talend Studio R2026-10 monthly release cumulative patch
- Creating a Spark Job
- Spark Universal support for Hadoop distributions in Talend Studio
- tS3Configuration properties for Apache Spark Batch
- Performance Tuning - Spark 4.3.0 Documentation
- Configuration - Spark 4.3.0 Documentation
Related on this site: Talend REST API Integration: Complete Developer Guide, Talend Cloud Migration: On-Premise to Cloud Guide, Talend Dynamic Schema: Runtime Schema Handling. More articles in the Talend category, and the engineering work behind them is on the services page.
Need an AI system built and running in production, with the scope agreed in writing and a delivery guarantee? See how a DeviDevs Sprint works →