You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2018/12/19 09:48:59 UTC
[GitHub] ashb closed pull request #4080: [AIRFLOW-3246] Make hmsclient
import optional
ashb closed pull request #4080: [AIRFLOW-3246] Make hmsclient import optional
URL: https://github.com/apache/incubator-airflow/pull/4080
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/airflow/hooks/hive_hooks.py b/airflow/hooks/hive_hooks.py
index 178606aa4e..42a42318c6 100644
--- a/airflow/hooks/hive_hooks.py
+++ b/airflow/hooks/hive_hooks.py
@@ -27,7 +27,6 @@
from collections import OrderedDict
from tempfile import NamedTemporaryFile
-import hmsclient
import six
import unicodecsv as csv
from past.builtins import basestring
@@ -496,6 +495,7 @@ def get_metastore_client(self):
"""
Returns a Hive thrift client.
"""
+ import hmsclient
from thrift.transport import TSocket, TTransport
from thrift.protocol import TBinaryProtocol
ms = self.metastore_conn
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services