Hue安装问题

时间:2015-08-18 07:46:02

标签: django hadoop django-models hue python-huey

我是bigdata technologies / hadoop生态系统的新手。

作为我的任务之一,我正在尝试在我的单节点hadoop集群[apache distribution hadoop2.6.0]上安装和运行Hue。

我按照许多网站提供的说明安装了hue:

  1. 下载最新的色调tar文件
  2. 在一个位置解压缩
  3. sudo make install
  4. 在/ usr / local / hue目录中安装了hue
  5. 更新了hue.ini文件,其中包含我的群集所需的详细信息。
  6. 当我尝试使用':8888'通过网络用户界面访问新安装的色调时,它会显示以下错误页面:
  7. Traceback (most recent call last):
      File "/usr/local/hue/desktop/core/src/desktop/lib/wsgiserver.py", line
    
         1198,在沟通中           req.respond()         文件" /usr/local/hue/desktop/core/src/desktop/lib/wsgiserver.py" ;,第568行,   作出回应           self._respond()         文件" /usr/local/hue/desktop/core/src/desktop/lib/wsgiserver.py" ;,第580行,   在_respond           response = self.wsgi_app(self.environ,self.start_response)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/wsgi.py" ,   第206行,在通话中           response = self.get_response(request)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py" ,   第194行,在get_response中           response = self.handle_uncaught_exception(request,resolver,sys.exc_info())         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py" ,   第236行,在handle_uncaught_exception中           返回回调(request,** param_dict)         文件" /usr/local/hue/desktop/core/src/desktop/views.py" ;,第304行,在serve_500_error中           return render(" 500.mako",request,{' traceback&#39 ;: traceback.extract_tb(exc_info [2])})         文件" /usr/local/hue/desktop/core/src/desktop/lib/django_util.py" ;, line   225,渲染           ** kwargs)         文件" /usr/local/hue/desktop/core/src/desktop/lib/django_util.py" ;, line   146,在_render_to_response中           return django_mako.render_to_response(template,* args,** kwargs)         文件" /usr/local/hue/desktop/core/src/desktop/lib/django_mako.py" ;, line   125,在render_to_response中           返回HttpResponse(render_to_string(template_name,data_dictionary),** kwargs)         文件" /usr/local/hue/desktop/core/src/desktop/lib/django_mako.py" ;, line   114,在render_to_string_normal中           result = template.render(** data_dict)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/template.py",   第443行,渲染           返回运行时。 render(self,self.callable ,args,data)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py",   第786行,在_render中           ** _ kwargs_for_callable(callable_,data))         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py",   第818行,在_render_context中           _exec_template(inherit,lclcontext,args = args,kwargs = kwargs)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py",   第844行,在_exec_template中           callable_(context,* args,** kwargs)         文件" /tmp/tmpjqe8jG/desktop/500.mako.py",第103行,在render_body中            M_writer(unicode(commonfooter(messages)))         文件" /usr/local/hue/desktop/core/src/desktop/views.py" ;,第388行,在commonfooter中           hue_settings = Settings.get_settings()         文件" /usr/local/hue/desktop/core/src/desktop/models.py",第59行,在get_settings中           设置,created = Settings.objects.get_or_create(id = 1)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/manager.py" ,   第154行,在get_or_create中           return self.get_queryset()。get_or_create(** kwargs)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/query.py" ,   第391行,在get_or_create中           six.reraise(* exc_info)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/query.py" ,   第383行,在get_or_create中           obj.save(force_insert = True,using = self.db)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/base.py" ,   第545行,保存           force_update = force_update,update_fields = update_fields)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/base.py" ,   第573行,在save_base中           updated = self._save_table(raw,cls,force_insert,force_update,using,update_fields)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/base.py" ,   第654行,在_save_table中           result = self._do_insert(cls._base_manager,using,fields,update_pk,raw)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/base.py" ,   第687行,在_do_insert中           using = using,raw = raw)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/manager.py" ,   第232行,在_insert中           return insert_query(self.model,objs,fields,** kwargs)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/query.py" ,   第1514行,在insert_query中           return query.get_compiler(using = using).execute_sql(return_id)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/sql/compiler.py&# 34 ;,   第903行,在execute_sql中           cursor.execute(sql,params)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/util.py" ,第53行,执行中           return self.cursor.execute(sql,params)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/utils.py",   第99行,在__exit           six.reraise(dj_exc_type,dj_exc_value,traceback)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/util.py" ,第53行,执行中           return self.cursor.execute(sql,params)         文件" /usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/sqlite3/base.py&# 34;,第452行,执行中           返回Database.Cursor.execute(self,query,params)       OperationalError:尝试编写只读数据库

    不确定是什么意思,请帮我解决这个问题

    此致 布佩希

1 个答案:

答案 0 :(得分:8)

得到它: - )

由于hue目录所有权,我遇到了这个问题。

我更改了/ usr / local / hue文件夹的所有者:

$ sudo chown -R hue:hue /usr/local/hue

然后尝试访问该网址,它有效。 : - )

//布佩希