damavis/airflow-pentaho-plugin
damavis/airflow-pentaho-plugin has 40 GitHub stars and 17 forks. Star changes are not measured yet. Last checked 2026-11-10 00:04 UTC. Last push 2025-09-26.
Pentaho plugin for Apache Airflow - Orquestate pentaho transformations and jobs from Airflow
측정된 스타 증가
- in 24h
- 업데이트 지연
- in 7 days
- 업데이트 지연
- in 15 days
- 업데이트 지연
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalPentaho Airflow plugin
This plugins runs Jobs and Transformations through Carte servers.
It allows to orchestrate a massive number of trans/jobs taking care
of the dependencies between them, even between different instances.
This is done by using CarteJobOperator and CarteTransOperator
It also runs Pan (transformations) and Kitchen (Jobs) in local mode,
both from repository and local XML files. For this approach, use
KitchenOperator and PanOperator
Requirements
- A Apache Airflow system deployed.
- One or many working PDI CE installations.
- A Carte server for Carte Operators.
Setup
The same setup process must be performed on webserver, scheduler and workers (that runs this tasks) to get it working. If you want to deploy specific workers to run this kind of tasks, see Queues, in Airflow Concepts section.
Pip package
First of all, the package should be installed via pip install command.
pip install airflow-pentaho-plugin
Airflow connection
Then, a new connection needs to be added to Airflow Connections, to do this,
go to Airflow web UI, and click on Admin -> Connections on the top menu.
Now, click on Create tab.
Use HTTP connection type. Enter the Conn Id, this plugin uses pdi_default
by default, the username and the password for your Pentaho Repository.
At the bottom of the form, fill the Extra field with pentaho_home, the
path where your pdi-ce is placed, and rep, the repository name for this
connection, using a json formatted string like it follows.
{
"pentaho_home": "/opt/pentaho",
"rep": "Default"
}
Carte
In order to use CarteJobOperator, the connection should be set different. Fill
host (including http:// or https://) and port for Carte hostname and port,
username and password for PDI repository, and extra as it follows.
{
"rep": "Default",
"carte_username": "cluster",
"carte_password": "cluster"
}
Usage
CarteJobOperator
CarteJobOperator is responsible for running jobs in remote slave servers. Here
it is an example of CarteJobOperator usage.
# For versions before 2.0
# from airflow.operators.airflow_pentaho import CarteJobOperator
from airflow_pentaho.operators.carte import CarteJobOperator
# ... #
# Define the task using the CarteJobOperator
avg_spent = CarteJobOperator(
conn_id='pdi_default',
task_id="average_spent",
job="/home/bi/average_spent",
params={"date": "{{ ds }}"}, # Date in yyyy-mm-dd format
dag=dag)
# ... #
some_task >> avg_spent >> another_task
KitchenOperator
Kitchen operator is responsible for running Jobs. Lets suppose that we have
a defined Job saved on /home/bi/average_spent in our repository with
the argument date as input parameter. Lets define the task using the
KitchenOperator.
# For versions before 2.0
# from airflow.operators.airflow_pentaho import KitchenOperator
from airflow_pentaho.operators.kettle import KitchenOperator
# ... #
# Define the task using the KitchenOperator
avg_spent = KitchenOperator(
conn_id='pdi_default',
queue="pdi",
task_id="average_spent",
directory="/home/bi",
job="average_spent",
params={"date": "{{ ds }}"}, # Date in yyyy-mm-dd format
dag=dag)
# ... #
some_task >> avg_spent >> another_task
CarteTransOperator
CarteTransOperator is responsible for running transformations in remote slave
servers. Here it is an example of CarteTransOperator usage.
# For versions before 2.0
# from airflow.operators.airflow_pentaho import CarteTransOperator
from airflow_pentaho.operators.carte import CarteTransOperator
# ... #
# Define the task using the CarteJobOperator
enriche_customers = CarteTransOperator(
conn_id='pdi_default',
task_id="enrich_customer_data",
job="/home/bi/enrich_customer_data",
params={"date": "{{ ds }}"}, # Date in yyyy-mm-dd format
dag=dag)
# ... #
some_task >> enrich_customers >> another_task
PanOperator
Pan operator is responsible for running transformations. Lets suppose that
we have one saved on /home/bi/clean_somedata. Lets define the task using the
PanOperator. In this case, the transformation receives a parameter that
determines the file to be cleaned.
# For versions before 2.0
# from airflow.operators.airflow_pentaho import PanOperator
from airflow_pentaho.operators.kettle import PanOperator
# ... #
# Define the task using the PanOperator
clean_input = PanOperator(
conn_id='pdi_default',
queue="pdi",
task_id="cleanup",
directory="/home/bi",
trans="clean_somedata",
params={"file": "/tmp/input_data/{{ ds }}/sells.csv"},
dag=dag)
# ... #
some_task >> clean_input >> another_task
For more information, please see sample_dags/pdi_flow.py
관련 프로젝트 살펴보기
Asabeneh/30-Days-Of-Python
30 Days of Python 프로그래밍 챌린지는 Python 프로그래밍 언어를 30일 동안 배우기 위한 단계별 가이드입니다. 이 챌린지는 100일 이상 걸릴 수 있습니다. 자신의 속도에 맞춰 진행하세요. 다음 동영상도 도움이 될 수 있습니다: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,560 스타grafana/grafana
개방적이고 조합 가능한 옵저버빌리티 및 데이터 시각화 플랫폼입니다. Prometheus, Loki, Elasticsearch, InfluxDB, Postgres 등 여러 소스의 메트릭, 로그, 트레이스를 시각화합니다.
77,830 스타redis/redis
실시간 데이터 기반 애플리케이션을 구축하는 개발자에게 Redis는 가장 선호되고, 가장 빠르며, 기능이 가장 풍부한 캐시, 데이터 구조 서버이자 문서 및 벡터 쿼리 엔진입니다.
77,395 스타apache/superset
Apache Superset는 데이터 시각화 및 데이터 탐색 플랫폼입니다.
75,473 스타