一、HWI安装配置
1:解压缩源码包
shell:tar -zxvf apache-hive-1.2.2-src.tar.gz
2:打包应用
cd /home/bigdata/apache-hive-1.2.2-src/hwi
jar cvfm hive-hwi-1.2.2.war -C web .
cp hive-hwi-1.2.2.war ~/apache-hive-1.2.2-bin/lib/
hive --service hwi
3:conf/hive-site.xml
xml
4:HWI依赖jar包
-- jasper-runtime-*.jar
-- jasper-complier-*.jar
-- commons-el-1.0.jar
-- tools.jar
5:启动命令
hive --service hwi
二、HWI的使用
1:浏览数据源
show databases;
2:创建操作会话
3:查询数据生成结果
4:Result File 路径为Linux本地路径(需提前手动创建)
5:Start Query : Yes
三、后台运行
nohup hive --service hwi > /dev/null 2>&1 &