Re: Not able to connect to Phoenix Queryserver from Spark

2017-10-25 Thread Josh Elser
I don't know why running it inside of Spark would cause issues. I would double-check the classpath of your application when running in Spark as well as look at the PQS log (HTTP/500 is a server error). On 10/25/17 6:39 AM, cmbendre wrote: I am trying to connect to Phoenix queryserver from

Not able to connect to Phoenix Queryserver from Spark

2017-10-25 Thread cmbendre
I am trying to connect to Phoenix queryserver from Spark. Following Scala code works perfectly fine when i run it without spark. *import java.sql.{Connection, DriverManager, PreparedStatement, ResultSet, Statement} Class.forName("org.apache.phoenix.queryserver.client.Driver") val connection=