Apache Hop (Hop Orchestration Platform) is a visual, open-source ETL tool. Hop grew out of the continued development of Kettle/Pentaho Data Integration, so its concepts will feel familiar to anyone who has used PDI. You design data flows by dragging and connecting components on screen, without writing much code.
In this tutorial we build a first ETL pipeline: read a sales CSV file, clean it and add a column, filter the data, then save it to a database table. If ETL is new to you, read ETL vs ELT first.
Apache Hop basics
- Pipeline: a flow that processes data rows from source to target. It is made of transforms, such as reading a file, calculating a column, or writing to a table.
- Workflow: a flow that orchestrates jobs, for example “run pipeline A, if it succeeds run pipeline B, then send an email”. It is made of actions.
- Hop: the connector line between transforms or actions.
- Project and environment: containers for pipelines and configuration. Environments separate development and production settings, such as database addresses.
- Metadata: reusable objects, such as database connections and run configurations.
Step 1: Install Apache Hop (5 minutes)
- Make sure Java is installed. Check the required Java version on the Hop download page.
- Download the Hop package from the official site hop.apache.org and extract it to a folder.
- Run
hop-gui.bat(Windows) or./hop-gui.sh(Linux/macOS).
Step 2: Create a project (3 minutes)
- In the top toolbar, click the add icon next to the project selector.
- Give it a name, for example
etl-practice, and choose a folder. - When prompted, also create a
devenvironment.
Step 3: Prepare sample data
Create a file sales.csv like this:
date,branch,product,qty,price
2026-11-01,Jakarta,Laptop,2,8500000
2026-11-01,Bandung,Mouse,10,150000
2026-11-02,Jakarta,Monitor,3,2300000
2026-11-02,Surabaya,Laptop,1,8500000
Step 4: Build the pipeline (15 minutes)
- Choose File → New → Pipeline.
- Click an empty area, search for CSV file input, and add it. Open it, point it to
sales.csv, and click Get fields so Hop reads the column names and types. - Add a Calculator transform to create a new column
total=qty×price. - Add Filter rows, for example to pass only rows where
totalis above 1,000,000. - Add Table output as the target. Create a new database connection (for example PostgreSQL or MySQL) inside it, enter the table name
fact_sales, then click SQL so Hop prepares the create-table statement. If your database driver is not available, add its JDBC driver file as described in the Hop documentation. - Connect the transforms in order with hops: CSV file input → Calculator → Filter rows → Table output.
- Save the pipeline as
load_sales.hpl.
Step 5: Run and check (5 minutes)
- Click Run and choose the local run configuration.
- Look at the execution results panel: rows read, passed, and written by each transform.
- Check the
fact_salestable in the database. It should contain the rows that passed the filter.
Next steps
- Create a workflow that runs this pipeline and sends a notification on failure.
- Run it from the command line with
hop-run, then schedule it with cron or an orchestrator such as Apache Airflow. - Load into a dimensional model: separate branch and product dimensions, then fill the fact table. See star schema vs snowflake schema.
- Handle data changes with SCD types 1 and 2.
Beginner tips
- Give transforms clear names, for example “Calculate total” instead of “Calculator”.
- Use environment variables for file paths and connections instead of hard-coding them.
- Keep the project in Git so pipeline changes are tracked.
Want to go deeper with Apache Hop?
DNASTUDIO regularly runs data warehouse and ETL training with Apache Hop, with case studies and hands-on practice. See an example in our 3-day DWH & BI training with Apache Hop and Superset.
