I am trying to connect to Phoenix via Spark / Scala to read and write data as a DataFrame. I follow the example of GitHub , however, when I try the very first example of Download as DataFrame using the data source API, I get the following exception.
An exception in the "main" thread java.lang.NoSuchMethodError: org.apache.hadoop.hbase.client.Put.setWriteToWAL (Z) Lorg / apache / hadoop / hbase / client / Put;
There are a few things that drive me crazy with these examples:
1) The import import org.apache.phoenix.spark._ statement import org.apache.phoenix.spark._ gives me the following exceptions in my code:
can't resolve phoenix character
I have included below jars in my sbt
"org.apache.phoenix" % "phoenix-spark" % "4.4.0.2.4.3.0-227" % Provided, "org.apache.phoenix" % "phoenix-core" % "4.4.0.2.4.3.0-227" % Provided,
2) I get an outdated warning to load a character. 
I figured out this warning, but did not get any links, and I could not find a single example of the proposed method. I cannot find any other good resource that will help you connect to Phoenix. Thank you for your time.
source share