赞
踩
目录
将hbase235的jar包全部拷贝到hive312的lib目录,并且所有的是否覆盖信息全部输入n,不覆盖
编辑 再将hbase235里面的除了27的guava全部删除
scan hbase中的表,获得元数据,一一对应到到hive创建表语句中
[root@reagan180 conf]# stop-hbase.sh
[root@reagan180 conf]# zkServer.sh stop
[root@reagan180 conf]# stop-all.sh
[root@reagan180 /]# cd /opt/soft/hive312/conf/
[root@reagan180 conf]#vim hive-site.xml
- <property>
- <name>hive.zookeeper.quorum</name>
- <value>192.168.91.180</value>
- </property>
- <property>
- <name>hbase.zookeeper.quorum</name>
- <value>192.168.91.180</value>
- </property>
-
- <property>
- <name>hive.aux.jars.path</name>
- <value>file:///opt/soft/hive312/lib/hive-hbase-handler-3.1.2.jar,file:///opt/soft/hive312/lib/zookeeper-3.4.6.jar,file:///opt/soft/hive312/lib/hbase-client-2.3.5.jar,file:///opt/soft/hive312/lib/hbase-common-2.3.5-tests.jar,file:///opt/soft/hive312/lib/hbase-server-2.3.5.jar,file:///opt/soft/hive312/lib/hbase-common-2.3.5.jar,file:///opt/soft/hive312/lib/hbase-protocol-2.3.5.jar,file:///opt/soft/hive312/lib/htrace-core-3.2.0-incubating.jar</value>
-
- </property>
[root@reagan180 conf]#cp /opt/soft/hbase235/lib /opt/soft/hIve312/lib
[root@reagan180 lib]#find .../lib/guava*
[root@reagan180 lib]#rm -rf ../lib/guava-11.0.2.jar
[root@reagan180 lib]#cp /opt/soft/hive312/lib/guava-27.0-jre.jar ./
启动hadoop: start-all.sh
远程后台启动 hive:
nohup hive --service hiveserver2 &
nohup hive --service metastore &
启动zk: zkServer.sh start
启hbase: start-hbase.sh
查询结果:select * from student;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。