1. Encountered problems
Problem: ctrl+z closes hiveserver2 and restarts to report an error:
Reason for error: hiveserver2 cannot directly ctrl+z to close the service.
Two, the solution
Re-copy the label to start a node1 master node
Enter the following code to view the hiveserver2 process:
ps -ef | grep hiveserver2
The result display:
Just kill the second process:
kill - 9 18893
Log in again as root and start hiveserver2 without error.
Perfect solution!