Ambari启动hue报错-创新互联

查看/usr/log/hue/error.log
发现如下问题

创新互联是一家专注于成都网站设计、网站建设与策划设计,仪陇网站建设哪家好?创新互联做网站,专注于网站建设十年,网设计领域的专业建站公司;建站业务涵盖:仪陇等地区。仪陇做网站价格咨询:028-86922220
[24/Nov/2019 16:57:53 ] supervisor   ERROR    Process /usr/lib/hue/build/env/bin/hue kt_renewer exited abnormally. Restarting it.
[24/Nov/2019 16:57:53 ] supervisor   ERROR    Process /usr/lib/hue/build/env/bin/hue runcpserver exited abnormally. Restarting it.
[24/Nov/2019 16:57:54 ] supervisor   ERROR    Process /usr/lib/hue/build/env/bin/hue runcpserver exited abnormally. Restarting it.
[24/Nov/2019 16:57:54 ] supervisor   ERROR    Process /usr/lib/hue/build/env/bin/hue kt_renewer exited abnormally. Restarting it.
[24/Nov/2019 16:57:55 ] supervisor   ERROR    Process /usr/lib/hue/build/env/bin/hue runcpserver exited abnormally. Restarting it.
[24/Nov/2019 16:57:55 ] supervisor   ERROR    Process /usr/lib/hue/build/env/bin/hue kt_renewer exited abnormally. Restarting it.
[24/Nov/2019 16:57:56 ] supervisor   ERROR    Process /usr/lib/hue/build/env/bin/hue kt_renewer has restarted more than 3 times in the last 3 seconds
[24/Nov/2019 16:57:56 ] supervisor   ERROR    Process /usr/lib/hue/build/env/bin/hue runcpserver has restarted more than 3 times in the last 3 seconds

分析:
1、/usr/lib/hue/build/env/bin/hue kt_renewer 执行这个报错
2、/usr/lib/hue/build/env/bin/hue runcpserver 执行这个报错

解决方法:
手动执行如上两个命令

[root@dev175 hue]# /usr/lib/hue/build/env/bin/hue kt_renewer
Traceback (most recent call last):
  File "/usr/lib/hue/build/env/bin/hue", line 12, in 
    load_entry_point('desktop==4.1.0', 'console_scripts', 'hue')()
  File "/usr/lib/hue/desktop/core/src/desktop/manage_entry.py", line 59, in entry
    execute_from_command_line(sys.argv)
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.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.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 261, in fetch_command
    commands = get_commands()
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/__init__.py", line 107, in get_commands
    apps = settings.INSTALLED_APPS
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 54, in __getattr__
    self._setup(name)
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/conf/__init__.py", line 49, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.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 idna

发现提示No module named idna
手动安装这个module即可。
pip install idna
另外一个同理

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


新闻标题:Ambari启动hue报错-创新互联
本文URL:http://hbruida.cn/article/jgghh.html