Hue源码编译-添加Phoenix

  1. 准备hue需要的环境
hadoop zookeeper hbase 
# 此次连接的是Phoenix所以需要Phoenix
Phoenix
  1. 下载hue源码包
  2. 解压源码包unzip hue-release-4.7.1.zip
  3. 创建一个hue的用户
  4. 安装必要的依赖
yum install apache-maven \
            ant \
            asciidoc \
            cyrus-sasl-devel \
            cyrus-sasl-gssapi \
            gcc \
            gcc-c++ \
            krb5-devel \
            libxml2-devel \
            libxslt-devel \
            make \
            mysql \
            mysql-devel \
            mysql-server \
            openldap-devel \
            python-devel \
            sqlite-devel \
            gmp-devel \
            openssl-devel \
            kernel-devel \
            libffi \
            libffi-devel
  1. 编译源码$hue make apps

编译完成后,文件夹内多了一个build文件,build分为env和static文件,env包含启动文件,static包含相关联的一些组件

  1. desktop/conf/pseudo-distributed.ini修改
# 配置启动ip/port
[desktop]
  secret_key=jFE93j;2[290-eiw.KEiwN2s3['d;/.q[eIW^y#e=+Iei*@Mn<qW5o
  http_host=192.168.1.102
  http_port=8000
  time_zone=Asia/Shanghai 

# hue默认数据引擎为sqlite,此处更换为mysql
  [[database]]
    engine=mysql
    host=192.168.1.102
    port=3306
    user=root
    password=123
    name=hue


# 添加Phoenix连接器
[notebook]
  [[interpreters]]
      [[[phoenix]]]
        name=HBase Phoenix
        interface=sqlalchemy
        options='{"url": "phoenix://192.168.1.102:8765/hbase"}'
  1. 根据hue官网配置phoenix连接器
git clone https://github.com/apache/phoenix-queryserver.git
$HUE /build/env/bin/pip install file:///home/gehue/phoenix-queryserver/python/phoenixdb

ps:此处应修改为 ./build/env/bin/pip install $hue/phoenix-queryserver/python-phoenixdb
  1. 启动hue
$hue ./build/env/bin/supervisor
  1. 在浏览器输入http://192.168.1.102:8000/hue/editor?editor=78&type=phoenix
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值