How to add any new library like spark-csv in Apache Spark prebuilt version

后端 未结 6 757
死守一世寂寞
死守一世寂寞 2020-12-12 19:35

I have build the Spark-csv and able to use the same from pyspark shell using the following command

bin/spark-shell --packages com.databricks:spark-csv_2.10:1         


        
6条回答
  •  轮回少年
    2020-12-12 20:27

    Another option is to add the following to your spark-defaults.conf:

    spark.jars.packages com.databricks:spark-csv_2.11:1.2.0
    

提交回复
热议问题