文章目录
背景
Traceback (most recent call last):
File “/opt/cloudera/parcels/CDH/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py”, line 1215, in communicate
req.respond()
File “/opt/cloudera/parcels/CDH/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py”, line 576, in respond
self._respond()
File “/opt/cloudera/parcels/CDH/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py”, line 588, in _respond
response = self.wsgi_app(self.environ, self.start_response)
File “/opt/cloudera/parcels/CDH/lib/hue/build/env/lib64/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/wsgi.py”, line 187, in call
self.load_middleware()
File “/opt/cloudera/parcels/CDH/lib/hue/build/env/lib64/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/handlers/base.py”, line 45, in load_middleware
mw_class = import_by_path(middleware_path)
File “/opt/cloudera/parcels/CDH/lib/hue/build/env/lib64/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/module_loading.py”, line 21, in import_by_path
module = import_module(module_path)
File “/opt/cloudera/parcels/CDH/lib/hue/build/env/lib64/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/importlib.py”, line 40, in import_module
import(name)
File “/opt/cloudera/parcels/CDH/lib/hue/desktop/core/src/desktop/middleware.py”, line 45, in
import desktop.views
File “/opt/cloudera/parcels/CDH/lib/hue/desktop/core/src/desktop/views.py”, line 47, in
from desktop.converters import DocumentConverter
File “/opt/cloudera/parcels/CDH/lib/hue/desktop/core/src/desktop/converters.py”, line 25, in
from notebook.api import _historify
File “/opt/cloudera/parcels/CDH/lib/hue/desktop/libs/notebook/src/notebook/api.py”, line 44, in
from datacollection.views import targetdb_is_exists
File “/opt/cloudera/parcels/CDH/lib/hue/apps/datacollection/src/datacollection/views.py”, line 63, in
from datacollection.db_utils import jdbcDBConnection, queryTablesName, queryTablesInfo,queryTablesInfoByTableName
File “/opt/cloudera/parcels/CDH/lib/hue/apps/datacollection/src/datacollection/db_utils.py”, line 8, in
from datacollection.base_utils import quartz_service_url
File “/opt/cloudera/parcels/CDH/lib/hue/apps/datacollection/src/datacollection/base_utils.py”, line 11, in
quartz_service_url = get_quartz_service()
File “/opt/cloudera/parcels/CDH/lib/hue/apps/datacollection/src/datacollection/base_utils.py”, line 8, in get_quartz_service
quartz_service_url = conf[0].value
File “/opt/cloudera/parcels/CDH/lib/hue/build/env/lib64/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/query.py”, line 132, in getitem
return list(qs)[0]
IndexError: list index out of range
一、步骤
1.查看初始化sql脚本
从新执行hue_data_init.sql脚本。
*备注:建议避免在第三方工具执行脚本,有时会异常。