hive启动

1.第一次启动初始化(使用mysql存储其元数据)

bin/schematool -initSchema -dbType mysql -verbos

2.启动metastore服务

  • bin/hive --service metastore
  • nohup bin/hive --service metastore &
  • bin/hive --service metastore --hiveconf hive.root.logger=DEBUG,console

3.启动hiveserver2(远程使用需要)

nohup bin/hive --service hiveserver2 &

4.启动hive

bin/hive 

 

bin/beeline
beeline>  !connect jdbc:hive2://hadoop102:10000

 

posted on 2024-03-08 14:06  ifiwereaboy  阅读(3)  评论(0编辑  收藏  举报