use
hive --service metastore &
hive --service hiveserver2 &
After starting hive, I found 2 RUNJARs disappeared using jps query every other day
Reason: After using & start, the process will be automatically closed after the account is logged out
solve:
nohup hive --service metastore &
nohup hive --service hiveserver2 &
Use nohup+& to start