啓動Hadoop後, 發現hive 一直啓動不起來, HIVE 3.1, driver是mysql 5.6
測試了下mysql鏈接, 配置了 hive-site.xml 裏面的mysql Password, 並且開通了mysql遠程鏈接.
進入到mysql後發現沒有hive的相關DB.
這下就好辦了. 初始化下schema
cd /usr/hdp/3.1.0.0-78/hive/bin
./schematool -dbType mysql -initSchema
Initialization script completed
schemaTool completed
再次啓動hive server, 一切OK.