I am not able to start phoenix traceserver in HDP 2.6, its failing with the below error.
2017-05-05 21:12:46.775762 launching /usr/java/default/bin/java $PHOENIX_OPTS -cp /etc/hbase/conf::/usr/hdp/18.104.22.168-8/phoenix/bin/../phoenix-22.214.171.124.6.0.3-8-client.jar -Dproc_phoenixtraceserver -Dlog4j.configuration=file:/usr/hdp/126.96.36.199-8/phoenix/bin/log4j.properties -Dpsql.root.logger=INFO,DRFA -Dpsql.log.dir=/var/log/hdp/hbase -Dpsql.log.file=phoenix-root-traceserver.log org.apache.phoenix.tracingwebapp.http.Main Error: Could not find or load main class $PHOENIX_OPTS close failed in file object destructor: IOError: [Errno 9] Bad file descriptor
I followed the URL: https://phoenix.apache.org/tracing.html.
Looks like the class "org.apache.phoenix.tracingwebapp.http.Main" is missing from the jar "phoenix-188.8.131.52.6.0.3-8-client.jar". Is there any additional jar I need to copy to get this working or do I need to follow any other steps?
Thank you Shyam.
The above bug was reported for "queryserver.py", however it looks like the script "traceserver.py" is also got affected with the same issue. I tried replacing "$PHOENIX_OPTS" from the script and the "Error:Couldnot find or load main class $PHOENIX_OPTS" is no longer appearing. But, its still throwing the below exception
Error: Could not find or load main class org.apache.phoenix.tracingwebapp.http.Main