gpt4 book ai didi

django - 色调安装问题

转载 作者:行者123 更新时间:2023-12-03 03:49:49 25 4
gpt4 key购买 nike

我是大数据技术/hadoop 生态系统的新手。

作为我的一项作业的一部分,我尝试在我的单节点 hadoop 集群 [apache distribution hadoop2.6.0] 上安装并运行 Hue。

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

  1. 下载最新的hue tar文件
  2. 将其解压缩到一个位置
  3. 运行sudo make install
  4. 它在/usr/local/hue目录中安装了hue
  5. 更新了hue.ini 文件,其中包含集群所需的详细信息。
  6. 当我尝试使用“:8888”通过 Web UI 访问新安装的色调时,它向我显示以下错误页面:
Traceback (most recent call last):
File "/usr/local/hue/desktop/core/src/desktop/lib/wsgiserver.py", line

1198, in communicate req.respond() File "/usr/local/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 568, in respond self._respond() File "/usr/local/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 580, in _respond response = self.wsgi_app(self.environ, self.start_response) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/wsgi.py", line 206, in call response = self.get_response(request) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 194, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 236, in handle_uncaught_exception return callback(request, **param_dict) File "/usr/local/hue/desktop/core/src/desktop/views.py", line 304, in serve_500_error return render("500.mako", request, {'traceback': traceback.extract_tb(exc_info[2])}) File "/usr/local/hue/desktop/core/src/desktop/lib/django_util.py", line 225, in render **kwargs) File "/usr/local/hue/desktop/core/src/desktop/lib/django_util.py", line 146, in _render_to_response return django_mako.render_to_response(template, *args, **kwargs) File "/usr/local/hue/desktop/core/src/desktop/lib/django_mako.py", line 125, in render_to_response return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs) File "/usr/local/hue/desktop/core/src/desktop/lib/django_mako.py", line 114, in render_to_string_normal result = template.render(**data_dict) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/template.py", line 443, in render return runtime.render(self, self.callable, args, data) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 786, in _render **_kwargs_for_callable(callable_, data)) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 818, in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Mako-0.8.1-py2.6.egg/mako/runtime.py", line 844, in _exec_template callable_(context, *args, **kwargs) File "/tmp/tmpjqe8jG/desktop/500.mako.py", line 103, in render_body M_writer(unicode( commonfooter(messages) )) File "/usr/local/hue/desktop/core/src/desktop/views.py", line 388, in commonfooter hue_settings = Settings.get_settings() File "/usr/local/hue/desktop/core/src/desktop/models.py", line 59, in get_settings settings, created = Settings.objects.get_or_create(id=1) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/manager.py", line 154, in get_or_create return self.get_queryset().get_or_create(**kwargs) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/query.py", line 391, in get_or_create six.reraise(*exc_info) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/query.py", line 383, in get_or_create obj.save(force_insert=True, using=self.db) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/base.py", line 545, in save force_update=force_update, update_fields=update_fields) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/base.py", line 573, in save_base updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/base.py", line 654, in _save_table result = self._do_insert(cls._base_manager, using, fields, update_pk, raw) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/base.py", line 687, in _do_insert using=using, raw=raw) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/manager.py", line 232, in _insert return insert_query(self.model, objs, fields, **kwargs) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/query.py", line 1514, in insert_query return query.get_compiler(using=using).execute_sql(return_id) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/models/sql/compiler.py", line 903, in execute_sql cursor.execute(sql, params) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/util.py", line 53, in execute return self.cursor.execute(sql, params) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/utils.py", line 99, in __exit six.reraise(dj_exc_type, dj_exc_value, traceback) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/util.py", line 53, in execute return self.cursor.execute(sql, params) File "/usr/local/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/sqlite3/base.py", line 452, in execute return Database.Cursor.execute(self, query, params) OperationalError: attempt to write a readonly database

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

问候,布佩什

最佳答案

明白了:-)

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

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

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

然后尝试访问该 URL,成功了。 :-)

//布佩什

关于django - 色调安装问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32066502/

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