菜鸟的博客

纵有疾风起,人生不言弃。

导航

Hive复习

## Hive

### MetaStore

#### 前台启动

~~~cmd
/export/server/apache-hive-3.1.2-bin/bin/hive --service metastore
~~~

**会一直占据前台,按下Ctrl+C关闭**

#### 后台启动

~~~cmd
nohup /export/server/apache-hive-3.1.2-bin/bin/hive --service metastore &
~~~

#### 后台关闭

~~~cmd
kill -9 75273(RunJar的编号)
~~~

### HiveServer2

~~~cmd
nohup /export/server/apache-hive-3.1.2-bin/bin/hive --service hiveserver2 &
~~~

 

posted on 2025-01-19 12:51  hhmzd233  阅读(11)  评论(0)    收藏  举报