Support Questions
Find answers, ask questions, and share your expertise

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

New Contributor

Capture.PNG

1 REPLY 1

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

Expert Contributor

@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...