ubuntu16.04安装hive1.2.1的hwi

本文档详细介绍了如何从源代码构建并部署Apache Hive 1.2.1的Web UI,包括下载源码、编译WAR文件、配置监听地址及端口等步骤,并解决了部署过程中可能出现的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

下载:apache-hive-1.2.1-src.tar 
apache-hive-1.2.1-src.tar 
解压,cd apache-hive-1.2.1-src/hwi 
命令:jar cfM hive-hwi-1.2.1.war -C web . 
复制到:hive-1.2.1/lib

hive-1.2.1/conf/hive-site.xml添加:

 <property>
        <name>hive.hwi.listen.host</name>
        <value>0.0.0.0</value>
        <description>This is the host address the Hive Web Interface will listen on</description>
    </property>
    <property>
        <name>hive.hwi.listen.port</name>
        <value>9999</value>
        <description>This is the host port the Hive Web Interface will listen on</description>
    </property>
    <property>
        <name>hive.hwi.war.file</name>
        <value>lib/hive-hwi-1.2.1.war</value>
        <description>This is the WAR file with the jsp content for Hive Web Interface</description>
    </property>
hive-env.sh添加:

export HADOOP_HOME=/home/hadoop/app/hadoop

然后把tools.jar(jdk/lib),jasper*.jar,commons-el-1.0.jar放到hive下的lib下。

http://download.youkuaiyun.com/detail/zhangge360/9568397   //jasper*.jar下载包中weiyongdao文件夹中jasper.jar不要放到lib下,因为我的加上后报错。如果你的系统不添加的话报错,可以试一试添加上。

启动hadoop.开启服务hive --service hwi

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值