linux安装hue-3.9.0-cdh5.13.1.tar.gz

1 篇文章 0 订阅

linux安装hue-3.9.0-cdh5.13.1.tar.gz

python最好使用linux系统自带的python版本,因为之前第一次安装时,是使用的另外安装的anaconda版本python2.7.9(centos6操作系统自带python2.6.6),

        在使用的另外安装的anaconda版本python2.7.9时,在执行到(PREFIX=/home/hue/software/ make install  安装时),要使用 from lxml import etree (yum install python-lxml.x86_64),在操作系统下的python2.7.9时,是可以得到from lxml import etree  。但是在时,是报错的。

    最后使用操作系统自带的python2.6.6解决此问题

使用的组件:

yum install krb5-devel cyrus-sasl-gssapi cyrus-sasl-devel libxml2-devel libxslt-devel
yum install mysql mysql-devel openldap-devel python-devel python-simplejson sqlite-devel
####yum  install libsqlite libsqlite3-dev
yum install libffi-devel gmp mpfr gmp-devel
yum install python-lxml.x86_64 sqlite-devel
###centos7.3
yum install libffi-devel libffi openssl-devel openssl openldap-devel mysql-devel gmp-devel gmp gcc-c++ rsync

在配置hue的hive是需要安装 yum install cyrus-sasl-plain  cyrus-sasl-devel cyrus-sasl-gssapi    解决SASL的问题

 

http://www.cnblogs.com/smartloli/p/4527168.html

 

安装的大体执行步骤:

make apps
PREFIX=/home/hue/software/ make install

具体步骤

1.解压hue-3.9.0-cdh5.13.1.tar.gz

2.make apps(编译过程是利用hue-3.9.0-cdh5.13.1.tar.gz自带的python的虚机环境来构建专门来编译hue的环境)

vim hue-3.9.0-cdh5.13.1/Makefile

测试hue的python虚拟环境的包可以使用情况

 

3.PREFIX=/home/hue/software/ make install

安装完成

启动:

        app_blacklist=impala,oozie,solr        ####配置禁用组件(还未安装的组件)

使用root用户,build/env/bin/supervisor

参考:http://blog.csdn.net/u011596455/article/details/78046627

file browser配置

需要在hadoop的core-site.xml,添加hue用户的认证。在hadoop里添加配置,使用以下命令可以不用重启集群。

        hdfs dfsadmin -refreshUserToGroupsMappings
        hdfs dfsadmin -refreshSuperUserGroupsConfiguration

    <property>
        <name>hadoop.proxyuser.hue.hosts</name>
        <value>*</value>
    </property>
    <property>
        <name>hadoop.proxyuser.hue.groups</name>
        <value>*</value>
    </property>
    <property>
        <name>hadoop.proxyuser.hdfs.hosts</name>
        <value>*</value>
    </property>
    <property>
        <name>hadoop.proxyuser.hdfs.groups</name>
        <value>*</value>
     </property> 

 

[hadoop]

  # Configuration for HDFS NameNode
  # ------------------------------------------------------------------------
  [[hdfs_clusters]]
    # HA support by using HttpFs

    [[[default]]]
      # Enter the filesystem uri
      fs_defaultfs=hdfs://10.37.43.33:9000

      # NameNode logical name.
      ## logical_name=

      # Use WebHdfs/HttpFs as the communication mechanism.
      # Domain should be the NameNode or HttpFs host.
      # Default port is 14000 for HttpFs.
      webhdfs_url=http://10.37.43.33:50070/webhdfs/v1

      # Change this if your HDFS cluster is Kerberos-secured
      ## security_enabled=false

      # In secure mode (HTTPS), if SSL certificates from YARN Rest APIs
      # have to be verified against certificate authority
      ## ssl_cert_ca_verify=True

      # Directory of the Hadoop configuration
      ## hadoop_conf_dir=$HADOOP_CONF_DIR when set or '/etc/hadoop/conf'
      hadoop_conf_dir=/home/hue/software/hadoop/etc/hadoop
  # Configuration for YARN (MR2)

 

 

 

在hue里,配置DB query,在配置文件vim desktop/conf/hue.ini配置

[librdbms]
  # The RDBMS app can have any number of databases configured in the databases
  # section. A database is known by its section name
  # (IE sqlite, mysql, psql, and oracle in the list below).

  [[databases]]
    [[[mysql5.7.21]]]
      # Name to show in the UI.
      nice_name="mysql5.7.21"
      engine=mysql
      host=10.37.43.35
      port=3306
      user=root
      password=1qaz@WSX
      options={ "init_command":"SET NAMES 'utf8'"}

    [[[my5.1]]]
      # Name to show in the UI.
      nice_name="my5.1"
      name=hhuuue
      engine=mysql
      host=10.37.43.33
      port=3306
      user=root
      password=123456
      options={ "init_command":"SET NAMES 'utf8'"}

     [[[sqlite]]]
      # Name to show in the UI.
       nice_name=SQLite_hue
       name=/home/hue/software/hue/desktop/desktop.db
       engine=sqlite

 

 

 

更改hue的数据库为mysql

[[database]]
    engine=mysql
    host=10.37.43.33
    port=3306
    user=root
    password=123456
    name=hue          ###数据库名字  create database hue;
    ## options={}

 

cd build/env

 bin/hue syncdb    ##初始化django的表,这里需要输入一个密码
 bin/hue migrate   ##初始化oozie之类的表

 

 

 

 

Traceback (most recent call last): File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 1228, in communicate File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 589, in respond File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 601, in _respond File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/wsgi.py", line 157, in __call__ File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/base.py", line 124, in get_response File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/exception.py", line 43, in inner File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/exception.py", line 93, in response_for_exception File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/build/env/lib/python2.7/site-packages/Django-1.11.29-py2.7.egg/django/core/handlers/exception.py", line 143, in handle_uncaught_exception File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/desktop/core/src/desktop/views.py", line 415, in serve_500_error File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/desktop/core/src/desktop/lib/django_util.py", line 241, in render File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/desktop/core/src/desktop/lib/django_util.py", line 154, in _render_to_response File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 127, in render_to_response File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 114, in render_to_string_normal File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/desktop/core/src/desktop/lib/django_mako.py", line 89, in get_template File "/opt/cloudera/parcels/CDH-7.1.7-1.cdh7.1.7.p1046.30409922/lib/hue/build/env/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/lookup.py", line 261, in get_template TopLevelLookupException: Cant locate template for uri '500.mako'
06-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值