Support Questions

Find answers, ask questions, and share your expertise

How to restart HiveServer2 from the command line (not from ambari server GUI)

avatar
New Contributor

Capture.PNG

1 REPLY 1

avatar
Master Collaborator

@AHassan  You can use the below command to start  HiveServer2 from the command line

 

#su $HIVE_USER nohup /usr/hdp/current/hive-server2/bin/hiveserver2 -hiveconf hive.metastore.uris=/tmp/hiveserver2HD.out 2 /tmp/hiveserver2HD.log 

 

Refer below doc for more info on starting hdp services from the command line

https://docs.cloudera.com/HDPDocuments/HDP2/HDP-2.6.0/bk_reference/content/starting_hdp_services.htm...