Apache Toree内核的默认库jars文件夹位于${SPARK_HOME}/jars目录下,可以在以下代码中找到:
val sparkConf = new SparkConf() .setAppName("Apache Toree") .setMaster("local[*]") // Add the required dependency jars .setJars(Seq( "/path/to/first.jar", "/path/to/second.jar" ))
其中,设置的jars为所需的依赖jar列表,可以包含任何库,例如MySQL或PostgreSQL JDBC驱动程序等。