hue-基础-环境搭建与安装
hue安装部署
centos需要以下包
ant
asciidoc
cyrus-sasl-devel
cyrus-sasl-gssapi
cyrus-sasl-plain
gcc
gcc-c++
krb5-devel
libffi-devel
libtidy (for unit tests only)
libxml2-devel
libxslt-devel
make
mvn (from apache-maven package or maven3 tarball)
mysql
mysql-devel
openldap-devel
python-devel
sqlite-devel
openssl-devel (for version 7+)
gmp-devel
如果想运行javascrip临时测试框架Jasmine需要安装以下内容
NodeJS
PhantomJS (npm install -g phantomjs-prebuilt)
需要独立安装的包,如果利用pip安装,需要把python的环境变量切换到/home/q/home/shihai.zhang/code/hue-new/build/env/bin
#可以pip安装的
ipdb
ipython==0.10
werkzeug==0.6
windmill==1.3
编译
$ git clone https://github.com/cloudera/hue.git
$ cd hue
$ make apps
$ build/env/bin/hue runserver
hue运行地址			http://localhost:8000
配置文件	   			desktop/conf/pseudo-distributed.ini
生产环境启动			build/env/bin/supervisor
运行test 			./tools/jenkins/jenkins.sh slow
运行全部test			build/env/bin/hue test all
运行部分test
$ build/env/bin/hue test specific impala
$ build/env/bin/hue test specific impala.tests:TestMockedImpala
$ build/env/bin/hue test specific impala.tests:TestMockedImpala.test_basic_flow
文件布局
desktop/core/中,包含Hue矿建和web组件;
desktop/libs/是和不同的hadoop服务交互的api
apps/包含安装的app
app下面的ext-py/存放app的第三方依赖
一个应用的典型目录结构如下
  src/
    for Python/Django code
      models.py
      urls.py
      views.py
      forms.py
      settings.py
  conf/
    for configuration (``.ini``) files to be installed
  static/
    for static HTML/js resources and help doc
  templates/
    for data to be put through a template engine
  locales/
    for localizations in multiple languages
应用中的url,应该make自己的urls.py,以/yourappname/跟路径
可参考apps/about/src/about/urls.py
工具版本
Python 2.6.5 - 2.7
Django 1.6 (https://docs.djangoproject.com/)
Knockout.js (http://knockoutjs.com/)
jQuery (http://jquery.com/)
Bootstrap (http://getbootstrap.com/)
启动后sanppy问题
启动snappy之后,可以在hue中直接查看Avro压缩文件,能直接看到文件内容
wget http://pkgs.fedoraproject.org/repo/pkgs/snappy/snappy-1.1.1.tar.gz/8887e3b7253b22a31f5486bca3cbc1c2/snappy-1.1.1.tar.gz
./configure
make
sudo make install 
安装好snappy环境后,使用pip安装python-snappy
注意:千万不要安装snappy这是两个东西
 
                    
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号