[ 
https://issues.apache.org/jira/browse/AIRFLOW-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15310060#comment-15310060
 ] 

ASF subversion and git services commented on AIRFLOW-201:
---------------------------------------------------------

Commit ea002b7df3bbc06f155874a3db71c1daf4726b6e in incubator-airflow's branch 
refs/heads/master from [~hudbrog]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=ea002b7 ]

[AIRFLOW-201] Fix for HiveMetastoreHook + kerberos

Dear Airflow Maintainers,

Please accept this PR that addresses the following issues:
- https://issues.apache.org/jira/browse/AIRFLOW-201

Author: Alexey Ustyantsev <a.ustyant...@corp.mail.ru>

Closes #1563 from hudbrog/airflow_201.


> HiveMetastoreHook kerberos support is broken
> --------------------------------------------
>
>                 Key: AIRFLOW-201
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-201
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: hooks
>    Affects Versions: Airflow 1.7.1
>            Reporter: Alexey Ustyantsev
>
> Currently, HiveMetastoreHook on 1.7.1 with kerberos enabled fails with errors 
> like:
> {code}
> [2016-05-31 12:25:20,341] {models.py:1286} ERROR - 'sasl.saslwrapper.Client' 
> object is not callable
> Traceback (most recent call last):
>   File 
> "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/airflow-1.7.1-py2.7.egg/airflow/models.py",
>  line 1245, in run
>     result = task_copy.execute(context=context)
>   File 
> "/usr/local/opr/virtualenv_airflow/lib/python2.7/site-packages/airflow-1.7.1-py2.7.egg/airflow/operators/sensors.py",
>  line 56, in execute
>     while not self.poke(context):
>   File 
> "/usr/local/opr/virtualenv_airflow/lib/python2.7/site-packages/airflow-1.7.1-py2.7.egg/airflow/operators/sensors.py",
>  line 255, in poke
>     self.schema, self.table, self.partition)
>   File 
> "/usr/local/opr/virtualenv_airflow/lib/python2.7/site-packages/airflow-1.7.1-py2.7.egg/airflow/hooks/hive_hooks.py",
>  line 316, in check_for_partition
>     self.metastore._oprot.trans.open()
>   File 
> "/usr/local/opr/virtualenv_airflow/local/lib/python2.7/site-packages/thrift_sasl/__init__.py",
>  line 67, in open
>     self.sasl = self.sasl_client_factory()
>   File 
> "/usr/local/opr/virtualenv_airflow/lib/python2.7/site-packages/airflow-1.7.1-py2.7.egg/airflow/hooks/hive_hooks.py",
>  line 293, in sasl_factory
>     sasl_client("service", kerberos_service_name)
> TypeError: 'sasl.saslwrapper.Client' object is not callable{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to