Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Hue : Synchronize Hue with the external database to create the schema and load the data.

New Contributor

Hi all,

I am trying to setup hue in my cluster and trying to Synchronize Hue with the external database to create the schema and load the data and getting the below error. Can I get some way to get this fixed. 

 

(env)[root@**** hue]# hue syncdb --noinput
Traceback (most recent call last):
File "/usr/lib/hue/build/env/bin/hue", line 12, in <module>
load_entry_point('desktop==3.9.0', 'console_scripts', 'hue')()
File "/usr/lib/hue/desktop/core/src/desktop/manage_entry.py", line 143, in entry
execute_from_command_line(sys.argv)
File "/usr/lib/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/lib/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/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/__init__.py", line 261, in fetch_command
commands = get_commands()
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/__init__.py", line 107, in get_commands
apps = settings.INSTALLED_APPS
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/conf/__init__.py", line 49, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/conf/__init__.py", line 132, in __init__
% (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'desktop.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named zlib

1 REPLY 1

@RamAtirajyam There could be an issue with LD_LIBRARY_PATH. Please check once and see if that resolves the issue. 

Correct:
echo $LD_LIBRARY_PATH
/lib:/usr/lib

Incorrect:
echo $LD_LIBRARY_PATH
/opt/teradata/client/14.10/tbuild/lib:/opt/oracle/product/11.2.0.4_client/lib:/lib:/usr/lib:/usr/lib

 


Cheers!
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.