黑猴子的家:hive-start.sh
2022-06-01 本文已影响0人
黑猴子的家
[alex@hadoop102 ~]$ cd /usr/local/bin/
[alex@hadoop102 bin]$ sudo touch hive-start.sh
[alex@hadoop102 bin]$ sudo chown alex:alex hive-start.sh
[alex@hadoop102 bin]$ chmod 755 hive-start.sh
[alex@hadoop102 bin]$ vim hive-start.sh
#!/bin/bash
hive_home=/opt/module/hive-2.3.6
nohup ${hive_home}/bin/hive --service metastore > ${hive_home}/logs/metastore.log 2>&1 &
nohup ${hive_home}/bin/hive --service hiveserver2 > ${hive_home}/logs/hiveserver2.log 2>&1 &