AnsweredAssumed Answered

Connnection to hue fails after install

Question asked by lakcil on May 26, 2016
Latest reply on Jun 10, 2016 by Rachel Silver

Hi all,

 

After a fresh install of 2 nodes cluster, I'm  not able to connect to hue. Connection to MCS works fine and I can see that hue service is started. But connection to hue is impossible and I have a page with the following error :

*****************************************************

Traceback (most recent call last):

  File "/opt/mapr/hue/hue-3.9.0/desktop/core/src/desktop/lib/wsgiserver.py", line 1196, in communicate

  req.respond()

  File "/opt/mapr/hue/hue-3.9.0/desktop/core/src/desktop/lib/wsgiserver.py", line 568, in respond

  self._respond()

  File "/opt/mapr/hue/hue-3.9.0/desktop/core/src/desktop/lib/wsgiserver.py", line 580, in _respond

  response = self.wsgi_app(self.environ, self.start_response)

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/wsgi.py", line 187, in __call__

  self.load_middleware()

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 45, in load_middleware

  mw_class = import_by_path(middleware_path)

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/utils/module_loading.py", line 21, in import_by_path

  module = import_module(module_path)

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/utils/importlib.py", line 40, in import_module

  __import__(name)

  File "/opt/mapr/hue/hue-3.9.0/desktop/core/src/desktop/middleware.py", line 54, in <module>

  from desktop import metrics

  File "/opt/mapr/hue/hue-3.9.0/desktop/core/src/desktop/metrics.py", line 134, in <module>

  user_count.set_value(User.objects.all().count())

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/query.py", line 294, in count

  return self.query.get_count(using=self.db)

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/sql/query.py", line 390, in get_count

  number = obj.get_aggregation(using=using)[None]

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/sql/query.py", line 356, in get_aggregation

  result = query.get_compiler(using).execute_sql(SINGLE)

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/sql/compiler.py", line 785, in execute_sql

  cursor = self.connection.cursor()

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/__init__.py", line 160, in cursor

  cursor = self.make_debug_cursor(self._cursor())

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/__init__.py", line 132, in _cursor

  self.ensure_connection()

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/__init__.py", line 127, in ensure_connection

  self.connect()

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/utils.py", line 99, in __exit__

  six.reraise(dj_exc_type, dj_exc_value, traceback)

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/__init__.py", line 127, in ensure_connection

  self.connect()

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/__init__.py", line 115, in connect

  self.connection = self.get_new_connection(conn_params)

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/mysql/base.py", line 435, in get_new_connection

  conn = Database.connect(**conn_params)

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/MySQL_python-1.2.5-py2.6-linux-x86_64.egg/MySQLdb/__init__.py", line 81, in Connect

  return Connection(*args, **kwargs)

  File "/opt/mapr/hue/hue-3.9.0/build/env/lib/python2.6/site-packages/MySQL_python-1.2.5-py2.6-linux-x86_64.egg/MySQLdb/connections.py", line 193, in __init__

  super(Connection, self).__init__(*args, **kwargs2)

OperationalError: (1045, "Access denied for user 'hue'@'mapr1.reseau.loc' (using password: YES)")

*****************************************************

Outcomes