hiveserver2
简述
1
hiveserver2 + client
使用
1
2
3
4
5
6
7
8
9
10
11
12
13- 启动hiveserver2,这里我们没有使用后台启动,所以在另一个窗口进行操作
[hadoop@hadoop001 app]$ hiveserver2
which: no hbase in (/home/hadoop/app/sqoop/bin:/home/hadoop/app/hive/bin:/home/hadoop/app/hadoop/bin:/home/hadoop/app/hadoop/sbin:/home/hadoop/app/jdk1.8/bin:/home/hadoop/app/hive/bin:/home/hadoop/app/hadoop/bin:/home/hadoop/app/hadoop/sbin:/home/hadoop/app/jdk1.8/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/hadoop/bin:/home/hadoop/bin)
19/03/19 03:58:14 WARN conf.HiveConf: HiveConf of name hive.cli.prient.current.db does not exist
- 在另一个窗口连接,默认端口10000
beeline -u jdbc:hive2://hadoop001:10000/myhive -n hadoop
- 端口修改hive-site.xml
<property>
<name>hive.server2.thrift.port</name>
<value>16666</value>
</property>