hue的安装与使用

来源:互联网 发布:校园迷糊大王结局知乎 编辑:程序博客网 时间:2024/05/08 08:36
这是我个人的总结,仅供参考


1.使用git将其下载到linux上,或者从http://gethue.com/hue-3-7-with-sentry-app-and-new-search-widgets-are-out/#下载 "3.7.1 tarball"版本
使用git进行下载:git  clone   git@github.com:cloudera/hue.git


2.http://cloudera.github.io/hue/docs-3.7.0/index.html是hue文档的地址


3.安装hue的依赖,见http://cloudera.github.io/hue/docs-3.7.0/manual.html的Table 1. Required Dependencies部分.
(也可以参考http://shiyanjun.cn/archives/1002.html)
使用yum  -y install gcc这样的方式安装


4.指定secret key ,见http://cloudera.github.io/hue/docs-3.7.0/manual.html的Specifying the Secret Key部分


5.修改权限
chmod 777 hue/desktop/ 
chmod 766 hue/desktop/desktop.db


6.启动hue
# hue/build/env/bin/supervisor


7.在浏览器中输入http://10.111.32.172:8000就可以看到页面了


8.使用root 123456进行登录


9.hue在安装过程中遇见的问题http://m.oschina.net/blog/288336






5.启动服务后若网页显示django错误:attempt to write a readonly database或 unable to open database file,


是因为目录或文件权限不够,导致sqlite无法访问到数据库文件及临时文件。


参考:Django-想说爱你真不容易--解决“Unable to open database file”,修改命令如下:


chmod 777 hue-master/desktop/ && chmod 766 hue-master/desktop/desktop.db

0 0
原创粉丝点击