Thank you for your response, however, I'm afraid I still can't get it to
work, this is my code:

    jar_path = '/home/mj/apps/spark_jars/spark-csv_2.11-1.0.3.jar'
    spark_config =
SparkConf().setMaster('local').setAppName('data_frame_test').set("spark.jars",
jar_path)
    sc = SparkContext(conf=spark_config)

I'm still getting this error:

ailed to load class for data source: com.databricks.spark.csv
        at scala.sys.package$.error(package.scala:27)
        at
org.apache.spark.sql.sources.ResolvedDataSource$.lookupDataSource(ddl.scala:194)
        at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:205)
        at org.apache.spark.sql.SQLContext.load(SQLContext.scala:697)
        at org.apache.spark.sql.SQLContext.load(SQLContext.scala:685)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:231)
        at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:379)
        at py4j.Gateway.invoke(Gateway.java:259)
        at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133)
        at py4j.commands.CallCommand.execute(CallCommand.java:79)
        at py4j.GatewayConnection.run(GatewayConnection.java:207)
        at java.lang.Thread.run(Thread.java:745)




--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/How-to-add-jars-to-standalone-pyspark-program-tp22685p22784.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to