spark driver not found

前端 未结 1 916
难免孤独
难免孤独 2021-01-23 03:02

I am trying to write dataframe to sqlserver using spark. I am using the method write for dataframewriter to write to sql server. Using DriverManager.getConnection I am able to g

相关标签:
1条回答
  • The issue is that spark is not finding driver jar file. So download jar and place in all worker nodes of spark cluster on the same path and add this path to SPARK_CLASSPATH in spark-env.sh file as follow

    SPARK_CLASSPATH=/home/mysql-connector-java-5.1.6.jar
    

    hope it will help

    0 讨论(0)
提交回复
热议问题