HiveToSambaOperator

Apache Hive

Executes hql code in a specific Hive database and loads the results of the query as a csv to a Samba location.

View on GitHub

Last Updated: Oct. 23, 2022

Access Instructions

Install the Apache Hive provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

hqlRequiredthe hql to be exported. (templated)
destination_filepathRequiredthe file path to where the file will be pushed onto samba
samba_conn_idreference to the samba destination
hiveserver2_conn_idReference to the :ref: Hive Server2 thrift service connection id .

Documentation

Executes hql code in a specific Hive database and loads the results of the query as a csv to a Samba location.

Was this page helpful?