在安装hue以前你的服务器上要安装以下软件:
CentOS
JDK
Maven
Git
Hadoop
Hive
Python
1、下载hue
https://github.com/cloudera/hue
2、编译hue
进入到hue的根目录,执行make apps
3、执行后如果报下面的错,说明你的服务器上没有python-dev,按照下面的步骤安装
must have python development packages for 2.6 or 2.7. Could not find
解决方法
echo "deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main
restricted" | sudo tee -a /etc/apt/sources.list.d/precise-updates.list
sudo apt-get update
sudo apt-get install python2.7-dev
4、问题解决后,在hue的根目录下面执行make apps
5、在编译的过程中又遇到下面的错误
src/lxml/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory
解决方法
sudo apt-get install libxml2-dev libxslt1-dev
又遇到一个问题
sh: mysql_config: not found
Traceback (most recent call last):
File "setup.py", line 15, in <module>
metadata, options = get_config()
File "/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "/home/zhxia/apps/source/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
解决方法
只要原因是没有安装:libmysqlclient-dev
sudo apt-get install libmysqlclient-dev
又遇到一个问题
fatal error: gmp.h: No such file or directory
解决方法
sudo apt-get install libgmp3-dev
又来一个
fatal error: sqlite3.h: No such file or directory
解决方法
sudo apt-get install sqlite3
sudo apt-get install libsqlite3-dev
还有一个
fatal error: sasl.h: No such file or directory
解决方法
sudo apt-get install libsasl2-dev
按照以上的方法可以顺利编译通过 ,但是在执行supervisor后,还是有问题
ImportError: Could not import settings 'desktop.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named hadoop.fs
现在一直没有解决,有知道的朋友请指教!