Support Questions
Find answers, ask questions, and share your expertise

Error: Could not find or load main class org.apache.phoenix.queryserver.server.QueryServer with Apache Phoenix Queryserver starting

Error: Could not find or load main class org.apache.phoenix.queryserver.server.QueryServer with Apache Phoenix Queryserver starting

Contributor

Hi experts,

I have a setup with apache Hadoop 2.10.0hbase 1.5, and Phoenix 4.15. All working well. However, when I am trying to connect python with Phoenix I need to enable queryserver. Whenever I am trying to start, I am getting the below error and exit. Can someone please help on this?

 

Error: Could not find or load main class org.apache.phoenix.queryserver.server.QueryServer
starting Query Server, logging to /var/log/hbase/phoenix-hbase-queryserver.log
2021-05-18 11:03:45.330986 launching /usr/jdk64/jdk1.8.0_112/bin/java -cp /etc/hbase/conf:/etc/hadoop/conf:/usr/lib/phoenix/bin/../phoenix-4.15.0-HBase-1.5-client.jar:::/etc/hadoop/conf:/usr/lib/hadoop/lib/*:/usr/lib/hadoop/.//*:/usr/lib/hadoop-hdfs/./:/usr/lib/hadoop-hdfs/lib/*:/usr/lib/hadoop-hdfs/.//*:/usr/lib/hadoop-yarn/lib/*:/usr/lib/hadoop-yarn/.//*:/usr/lib/hadoop-mapreduce/lib/*:/usr/lib/hadoop-mapreduce/.//*::mysql-connector-java.jar:/usr/lib/hadoop-mapreduce/*:/usr/lib/tez/*:/usr/lib/tez/lib/*:/etc/tez/conf
-Dproc_phoenixserver -Dlog4j.configuration=file:/usr/lib/phoenix/bin/log4j.properties -Dpsql.root.logger=INFO,DRFA -Dpsql.log.dir=/var/log/hbase -Dpsql.log.file=phoenix-hbase-queryserver.log org.apache.phoenix.queryserver.server.QueryServer
close failed in file object destructor:
IOError: [Errno 9] Bad file descriptor

1 REPLY 1

Re: Error: Could not find or load main class org.apache.phoenix.queryserver.server.QueryServer with Apache Phoenix Queryserver starting

Expert Contributor

Hello @ryu 

 

Thanks for using Cloudera Community. It appears you have raised the same concern via [1] as well. As such, We shall mark this Post as Closed & await your response on the below [1] Post. 

 

- Smarak

 

[1] https://community.cloudera.com/t5/Support-Questions/unable-to-start-phoenix-query-server-via-ambari/...