Hi,
I am new bee to Spark and using Spark 1.5.2 version.
I am trying to connect to Oracle DB using Spark API,getting errors :
Steps I followed :
Step 1- I placed the ojdbc6.jar in
/usr/hdp/2.3.4.0-3485/spark/lib/ojdbc6.jar
Step 2- Registered the jar file
Hi Divya,
You need to install the Oracle jdbc driver on the cluster into lib folder.
> On 10/02/2016, at 09:37, Divya Gehlot wrote:
>
> oracle.jdbc.driver.OracleDrive
ASFIK sc.addJar() will add the jars to executor's classpath . The
datasource resolution ( createRelation) happens at driver side and driver
classpath should contain the ojdbc6.jar. You can use
"spark.driver.extraClassPath"
config parameter to set the same.
On Wed, Feb 10, 2016 at 3:08 PM, Jorge