blob: eeae9e75a13a8b9c01276c2977e911729e6e71aa [file] [log] [blame]
:mod:`airflow.providers.apache.hive.transfers.hive_to_samba`
============================================================
.. py:module:: airflow.providers.apache.hive.transfers.hive_to_samba
.. autoapi-nested-parse::
This module contains operator to move data from Hive to Samba.
Module Contents
---------------
.. py:class:: HiveToSambaOperator(*, hql: str, destination_filepath: str, samba_conn_id: str = 'samba_default', hiveserver2_conn_id: str = 'hiveserver2_default', **kwargs)
Bases: :class:`airflow.models.BaseOperator`
Executes hql code in a specific Hive database and loads the
results of the query as a csv to a Samba location.
:param hql: the hql to be exported. (templated)
:type hql: str
:param destination_filepath: the file path to where the file will be pushed onto samba
:type destination_filepath: str
:param samba_conn_id: reference to the samba destination
:type samba_conn_id: str
:param hiveserver2_conn_id: Reference to the
:ref: `Hive Server2 thrift service connection id <howto/connection:hiveserver2>`.
:type hiveserver2_conn_id: str
.. attribute:: template_fields
:annotation: = ['hql', 'destination_filepath']
.. attribute:: template_ext
:annotation: = ['.hql', '.sql']
.. method:: execute(self, context)