This is a very general error message describing that hiveserver has a problem and offers you a look at the Hive logs. If you access catch logs and find an exception call stack, you can find the root cause or share your exceptional case, I can help you.
The most common problems that I saw as:
Concurrency Meta Storage Issues
When you start the hive server as $ hive --service yourhiveserver and continue to work for several days and then run your code, it is possible that your connection is a broker on the server and you will get the same error. If you reconnect to the server, this error will disappear. This only happens because after a while, wait_time has expired and shuts down.
Port specific errors.
Be sure to configure the open port for your Hive server and install it as shown below before starting the hive server:
$export HIVE_PORT=10000 $hive --service hiveserver $ _run_your_code
There may be other reasons, but the best option is to check the call stack in the hive logs for the root cause and fix the problem.
Avkashchauhan
source share