Re: Getting Exception in thread "main" java.lang.ClassNotFoundException: Failed to find data source: org.apache.phoenix.spark. Please find packages at http://spark-packages.org Exception

2017-03-16 Thread Josh Mahonin
Hi Sateesh, It seems you are missing the import which gives Spark visibility into the "org.apache.phoenix.spark". From the documentation page: *import org.apache.phoenix.spark._* I'm not entirely sure how this works in Java, however. You might have some luck with: *import static

Re: Getting Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/phoenix/jdbc/PhoenixDriver Exception

2017-03-16 Thread NaHeon Kim
Hi, I think you need to include phoenix-client jar, instead of phoenix-spark.jar. :-) 2017-03-16 16:44 GMT+09:00 Sateesh Karuturi : > Hello folks.., > > i am trying to run sample phoenix spark application, while i am trying to > run i am getting following exception:

Getting Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/phoenix/jdbc/PhoenixDriver Exception

2017-03-16 Thread Sateesh Karuturi
Hello folks.., i am trying to run sample phoenix spark application, while i am trying to run i am getting following exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/phoenix/jdbc/PhoenixDriver Here is my sample code: package com.inndata.spark.sparkphoenix;