hue编译
3.10版本新特性
hue3.10版本editor有很大的变化,有几个比较有用的新特性.
editor支持sql格式化,单词自动填补
‘${PARAM}’参数自动添加输入窗口
editor保存的sql可以直接在workflow中使用(原先editor与workflow是独立,如果workflow需要使用editor save的sql,需要将sql保存到有权限的HDFS目录中,再引用,即值钱开通workflow权限必须开通file browser权限),且workflow中的saved hive query与hive script独立分开.
编译步骤
下载hue3.10版本
下载地址:http://gethue.com/hue-3-10-with-its-new-sql-editor-is-out
或者,
git clone https://github.com/cloudera/hue.git
git branch
git checkout branch-3.10环境准备
ubuntu/mac/centos安装的包参见https://githua.com/cloudera/hue Development prerequisites执行编译
cd hue make apps build/env/bin/hue runserver
配置desktop/conf/pseudo-distributed.ini,或者新建desktop/conf/hue.ini
问题
- 编译时,出现livy maven编译不通过
解决办法,见HUE-4267,将pom文件中的hadoop相关版本替换掉.
见https://github.com/cloudera/hue/commit/a12c90f36bf26920bc37dcac2349f663d7992d21 - 执行sql时出现IntegrityError: NOT NULL constraint failed: desktop_document2.is_managed
hue元数据管理database由原来的sqlite3替换成mysql.并执行:
build/env/bin/hue syncdb
build/env/bin/hue migrate
创建hue元数据表.
- 编译时,出现livy maven编译不通过