1.11

## 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 @ 2025-01-11 19:13  徐星凯  阅读(19)  评论(0)    收藏  举报