Airflow: How to SSH and run BashOperator from a different server
问题 Is there a way to ssh to different server and run BashOperator using Airbnb's Airflow? I am trying to run a hive sql command with Airflow but I need to SSH to a different box in order to run the hive shell. My tasks should look like this: SSH to server1 start Hive shell run Hive command Thanks! 回答1: I think that I just figured it out: Create a SSH connection in UI under Admin > Connection. Note: the connection will be deleted if you reset the database In the Python file add the following from