Reply
New Contributor
Posts: 3
Registered: ‎03-06-2018

Hue examples using CLI in 5.15

Following steps in http://gethue.com/hue-api-execute-some-builtin-commands/ and I get the following error

  File "/opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/backends/util.py", line 53, in execute
    return self.cursor.execute(sql, params)
  File "/opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/backends/sqlite3/base.py", line 452, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: auth_user
Cloudera Employee
Posts: 420
Registered: ‎03-23-2015

Re: Hue examples using CLI in 5.15

auth_user is a table in Hue database, it looks like that you do not have Hue database setup correctly.

Is your Hue server actually running fine?
Posts: 938
Topics: 1
Kudos: 218
Solutions: 117
Registered: ‎04-22-2014

Re: Hue examples using CLI in 5.15

@antonio,

 

If you have a running Hue server, it is likely that the location of the Hue configuration file was not specified when running the command line command.  If the HUE_CONF_DIR environment variable is not set, Hue will use defaults which leverage sqlite, I believe.

 

Make sure you have HUE_CONF_DIR set.  I use:

 

export HUE_CONF_DIR=/var/run/cloudera-scm-agent/process/`ls -lrt /var/run/cloudera-scm-agent/process/ | awk '{print $9}' |grep HUE_SERVER| tail -1`

 

Ben

Announcements