CDH5中spark写mysql报“Did not find registered driver with class com.mysql.jdbc.Driver”错误原因
前几天把CDH5.7顺利的装起来了,今天想试下用spark往mysql里面写计算结果,结果老是提示“java.lang.IllegalStateException: Did not find registered driver with class com.mysql.jdbc.Driver”,用了各种方法,包括在spark-submit命令中加入 --jars 、--driver-class
原创
2016-05-19 20:02:16 ·
5851 阅读 ·
0 评论