Search code examples
amazon-web-serviceshiveemr

Restart hiveserver2 on emr


I killed the hiveserver2 process (after finding the PID with ps aux|grep -i hiveserver2) on my EMR cluster with one master and two workers. Before killing hiveserver2 I was able to browse and query Hive on my browser via HUE. I tried restarting with hive --service hiveserver2 but then I can't connect from HUE anymore and it either hangs or says that it can't connect to the <publicDNS>:10000

My use case is that I want to modify the hive configuration of my EMR cluster without shutting down the cluster. Is that possible at all?


Solution

  • initctl list
    status hive-server2
    
    sudo restart hive-server2
    sudo stop hive-server2
    sudo start hive-server2
    

    How do I restart a service in Amazon EMR?