If the Beeline shell gets stuck, first validate whether HS2 is up and running. Then, check if the query reaches HS2.
If the query reaches HS2 but gets stuck, analyze the HS2 JSTACK and HS2 logs to identify the issue.
If the query does not reach HS2, validate the Beeline JSTACK, HS2 JSTACK, and HS2 logs.
If you are unable to determine the root cause with this information, I recommend raising a support ticket for further investigation.