我需要使用 spark submit 将 com.csv spark 包动态加载到我的应用程序中,它可以工作
spark-submit --class "DataLoaderApp" --master yarn
--deploy-mode client
--packages com.databricks:spark-csv_2.11:1.4.0 target/scala-2.10/ra-etl_2.10-1.0.0.jar LOAD GGSN /data-sources/DXE_Ver/1_4/MTN_Abuja/GGSN/20160221/GGSN_0_20160221074731.dat
但是当我使用
spark-submit --class "DataLoaderApp" --master yarn
--deploy-mode client
target/scala-2.10/ra-etl_2.10-1.0.0.jar LOAD GGSN /data-sources/DXE_Ver/1_4/MTN_Abuja/GGSN/20160221/GGSN_0_20160221074731.dat
对于以下配置,它不起作用...
val conf = new SparkConf()
.setAppName("Data Loader Application")
.set("spark.jar.packages","com.databricks:spark-csv_2.11:1.4.0")