gpt4 book ai didi

python - Hue 主管启动错误 hadoop 工作正常 - Hue 中的 Python 包无法工作

转载 作者:行者123 更新时间:2023-11-30 00:35:48 28 4
gpt4 key购买 nike

我已经安装了hadoop,所有服务运行良好。类似地,hue 按照说明安装并正确配置(类似 hive)。我已经检查过很多次的一切都很好。但是当我尝试启动色调(主管)时,我收到了此错误。请建议我应该做什么来解决这个问题。

root@xxx:/usr/local/master/hue/build/env# bin/supervisor
Traceback (most recent call last):
File "/usr/local/master/hue/build/env/bin/hue", line 8, in <module>
load_entry_point('desktop==1.2.0', 'console_scripts', 'hue')()
File "/usr/local/master/hue/desktop/core/src/desktop/manage_entry.py", line 73, in entry
execute_manager(settings)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/management/commands/beeswax_server.py", line 70, in handle_noargs
is_local, host, port = beeswax.hive_site.get_metastore()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 73, in get_metastore
is_local = get_conf().getbool(_CNF_METASTORE_LOCAL, True)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 56, in get_conf
_parse_hive_site()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 110, in _parse_hive_site
_HIVE_SITE_DICT = confparse.ConfParse(data)
File "/usr/local/master/hue/desktop/libs/hadoop/src/hadoop/confparse.py", line 44, in __init__
parser.Parse(conf)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 6
(27536) *** Controller starting at Tue Mar 4 22:32:20 2014
Traceback (most recent call last):
File "/usr/local/master/hue/build/env/bin/hue", line 8, in <module>
load_entry_point('desktop==1.2.0', 'console_scripts', 'hue')()
File "/usr/local/master/hue/desktop/core/src/desktop/manage_entry.py", line 73, in entry
execute_manager(settings)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/management/commands/beeswax_server.py", line 70, in handle_noargs
is_local, host, port = beeswax.hive_site.get_metastore()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 73, in get_metastore
is_local = get_conf().getbool(_CNF_METASTORE_LOCAL, True)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 56, in get_conf
_parse_hive_site()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 110, in _parse_hive_site
_HIVE_SITE_DICT = confparse.ConfParse(data)
File "/usr/local/master/hue/desktop/libs/hadoop/src/hadoop/confparse.py", line 44, in __init__
parser.Parse(conf)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 6
Should start 1 new children
Controller.spawn_children(number=1)
Traceback (most recent call last):
File "/usr/local/master/hue/build/env/bin/hue", line 8, in <module>
load_entry_point('desktop==1.2.0', 'console_scripts', 'hue')()
File "/usr/local/master/hue/desktop/core/src/desktop/manage_entry.py", line 73, in entry
execute_manager(settings)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/management/commands/beeswax_server.py", line 70, in handle_noargs
is_local, host, port = beeswax.hive_site.get_metastore()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 73, in get_metastore
is_local = get_conf().getbool(_CNF_METASTORE_LOCAL, True)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 56, in get_conf
_parse_hive_site()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 110, in _parse_hive_site
_HIVE_SITE_DICT = confparse.ConfParse(data)
File "/usr/local/master/hue/desktop/libs/hadoop/src/hadoop/confparse.py", line 44, in __init__
parser.Parse(conf)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 6
Traceback (most recent call last):
File "/usr/local/master/hue/build/env/bin/hue", line 8, in <module>
load_entry_point('desktop==1.2.0', 'console_scripts', 'hue')()
File "/usr/local/master/hue/desktop/core/src/desktop/manage_entry.py", line 73, in entry
execute_manager(settings)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/master/hue/build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/core/management/base.py", line 351, in handle
return self.handle_noargs(**options)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/management/commands/beeswax_server.py", line 70, in handle_noargs
is_local, host, port = beeswax.hive_site.get_metastore()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 73, in get_metastore
is_local = get_conf().getbool(_CNF_METASTORE_LOCAL, True)
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 56, in get_conf
_parse_hive_site()
File "/usr/local/master/hue/apps/beeswax/src/beeswax/hive_site.py", line 110, in _parse_hive_site
_HIVE_SITE_DICT = confparse.ConfParse(data)
File "/usr/local/master/hue/desktop/libs/hadoop/src/hadoop/confparse.py", line 44, in __init__
parser.Parse(conf)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 6
(27549) *** Child exiting
(27536) *** Controller exiting

我也安装了python,mysql。在mysql中我创建了一个数据库hadoop。我所做的一切都是按照我之前的色调安装实验进行的。那工作得很好。但这种安装会出现问题。

最佳答案

您的 hive-site.xml(通常为 $HIVE_CONF_DIR/hive-site.xml)格式不正确,因此无法被 Hue 解析和理解。

xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 6

关于python - Hue 主管启动错误 hadoop 工作正常 - Hue 中的 Python 包无法工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22190326/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com