进入hive_home目录下
输入命令:
启动metastore:
bin/hive--service metastore
后台启动:
bin/hive --service metastore 2>&1 >> /var/log.log &
bin/hive --service metastore 2>&1 >> /dev/null &
后台启动,关闭shell连接依然存在:
nohup bin/hive --service metastore 2>&1 >> /var/log.log &