Hue Close Queries Issue HIVE_CONF_DIR

13 views
Skip to first unread message

mukund.a...@gmail.com

unread,
Sep 5, 2017, 1:44:14 PM9/5/17
to Hue-Users
Hi

I am trying to run the below close_queries command which prompts the following error:

Hue is deployed on a separate server. Should I provide HIVE_CONF_DIR in the ini file ?? is it the path of the hive-conf.xml on the node where I have installed Hive.

Any help is greatly appreciated.

[root@ip-172-31-48-241 hue]#  build/env/bin/hue close_queries 5 -v 3
/usr/local/hue/build/env/lib/python2.6/site-packages/cryptography-1.3.1-py2.6-linux-x86_64.egg/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
  DeprecationWarning
Closing (all=False) HiveServer2 queries older than 5 days...
Did you export HIVE_CONF_DIR=/etc/hive/conf?
Traceback (most recent call last):
  File "build/env/bin/hue", line 9, in <module>
    load_entry_point('desktop==3.12.0', 'console_scripts', 'hue')()
  File "/usr/local/hue/desktop/core/src/desktop/manage_entry.py", line 59, in entry
    execute_from_command_line(sys.argv)
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/local/hue/apps/beeswax/src/beeswax/management/commands/close_queries.py", line 60, in handle
    beeswax.conf.HIVE_CONF_DIR.set_for_testing(os.environ['HIVE_CONF_DIR'])
  File "/usr/local/hue/build/env/lib64/python2.6/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'HIVE_CONF_DIR'

Romain Rigaux

unread,
Sep 5, 2017, 6:15:56 PM9/5/17
to mukund.a...@gmail.com, Hue-Users
e.g. in the shell before:
export HIVE_CONF_DIR=/etc/hive/conf

--
You received this message because you are subscribed to the Google Groups "Hue-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+unsubscribe@cloudera.org.

Reply all
Reply to author
Forward
0 new messages