首先,这其实是一个悲伤的故事。
中午装了三台测试机,一顿操作猛如喵之后,终于轮到hive的安装配置了。
在淡定的解压完,配置文件都配置完,启动了hiveserver2之后,就在我颤抖的小手在键盘上输入
bin/beeline
beeline> !connect jdbc:hive2://node03.hadoop.com:10000
哦豁
Could not open connection to the HS2 server。Please check the server URI and if the URI is correct,then ask the administrator to check the server status.
Step1: 1)服务器URI没问题
2)服务器状态也正常
这激动的内心,万千只草尼玛奔腾而过。有啥问题都从娃娃抓起,有啥错都从源头抓起。
Step2:排查从头到尾的安装问题
1)Hive安装没问题
2)Hive配置没问题
3)MySQL安装没问题
Step3: 排查配置文件
1)hive-env.sh没问题
2)hive-site.xml没问题
3)jdbc的jar包也有了