:mod:`airflow.operators.hive_to_samba_operator` =============================================== .. py:module:: airflow.operators.hive_to_samba_operator Module Contents --------------- .. py:class:: Hive2SambaOperator(hql, destination_filepath, samba_conn_id='samba_default', hiveserver2_conn_id='hiveserver2_default', *args, **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 hiveserver2_conn_id: reference to the hiveserver2 service :type hiveserver2_conn_id: str :param samba_conn_id: reference to the samba destination :type samba_conn_id: str .. attribute:: template_fields :annotation: = ['hql', 'destination_filepath'] .. attribute:: template_ext :annotation: = ['.hql', '.sql'] .. method:: execute(self, context)