scala> val jd = spark.read.format("jdbc").option("url","jdbc:oracle:thin:@192.168.163.134:1521:orcl").option("dbtable","scott.emp").option("user","scott").option("password","tiger").load
异常信息:
初步怀疑是jar 包问题:
更换驱动包 重新启动spark-shell,SUCCESS!
网上还有其他解决方案,小弟不才,仅供参考