Enable logging for client connections and running queries with Phoenix Query Server
Category : HBase
Phoenix Query server (PQS) does not log details about client connections and the queries run using the default log level of INFO. It is required to modify the log4j configuration for certain classes to obtain such logs.
To enable logging such messages by PQS, perform the following:
- On the node that runs PQS service, edit the file: ‘/usr/hdp/current/phoenix-server/bin/log4j.properties’, and add/replace the following properties:
- Restart the Phoenix Query Server on the node.
Note: It is important to understand that by increasing the logging level using the steps above, the PQS log file size increases faster in comparison to the default logging level.