https://meltano.com/ logo
#announcements
Title
# announcements
g

gray-apartment-22627

01/06/2021, 6:18 PM
Hey! can we use airflow and meltano on two different docker images and both docker images are running on two different machines ?
1
r

ripe-musician-59933

01/06/2021, 6:26 PM
@gray-apartment-22627 It's a bit hard to answer that without knowing what you are trying to accomplish 🙂 Are you saying you'd like to run the Airflow scheduler on a different machine than the machine that ends up executing the scheduled Meltano ELT jobs? That could be a job for Airflow's KubernetesPodOperator (https://gitlab.com/meltano/files-airflow-kubernetes/-/merge_requests/1)
a

adventurous-lifeguard-17150

01/06/2021, 7:23 PM
@ripe-musician-59933 does that mean we copy the DAG in airflow specific POD and the KubernetesPodOperator connects with Meltano POD which has specifically Meltano cli available to trigger the ELT pipelines, correct ?
r

ripe-musician-59933

01/06/2021, 8:33 PM
@adventurous-lifeguard-17150 As I understand it, the KubernetesPodOperator would manage the dynamic creation of pods for each ELT pipeline when the schedule says its time to. @careful-journalist-73001 who wrote that MR will know better!
c

careful-journalist-73001

01/06/2021, 10:37 PM
Hey all, @gray-apartment-22627 the answer to your question is yes, but what is it you're trying to achieve? @adventurous-lifeguard-17150 Douwe is right, the KubernetesPodOperator creates a new pod for each task it creates based on the image URI you supply. Take a look at the merge request linked to see it in practice
g

gray-apartment-22627

01/12/2021, 9:13 AM
@careful-journalist-73001 we are just looking a way to use common airflow @ripe-musician-59933 we will test and confirm you on KubernetesPodOperator
👍 1
thanks a lot meltano
a

adventurous-lifeguard-17150

01/19/2021, 5:03 AM
@ripe-musician-59933 one thing which is not clear to me - like if you have Meltano & Airflow these 2 are running as 2 different PODS, how airflow has meltano cli available to get the schedules and prepare the pipelines on airflow
r

ripe-musician-59933

01/19/2021, 4:18 PM
@adventurous-lifeguard-17150 The Meltano CLI and project will need to be installed inside the Airflow pod, and all pods need to connect with the same external Meltano system database. If you install Airflow into the Meltano project and create a project-specific Docker image as described in https://meltano.com/docs/containerization.html, you can use that image both when running Airflow scheduler (with
meltano invoke airflow scheduler
as the command) and when running ELT pipelines from Airflow, (with
meltano elt <args>
or
meltano schedule run <name>
as command)