April 2016
Beginner
268 pages
5h 32m
English
Here, we will take a quick look at the command-line debugging option in Hive.
Hive code could be debugged by assigning a port to Hive and adding socket details to Hive JVM. To add debugging configuration to Hive, execute the following properties on an OS terminal or add it to bash_profile of the user:
export HIVE_DEBUG_PORT=8000 export HIVE_DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=${HIVE_DEBUG_PORT},server=y,suspend=y"
Once a debug port is attached to Hive and Hive server suspension is enabled at startup, the following steps will help you debug Hive queries:
hive --debug
Test class ...