JAR files into python

dieter dieter at handshake.de
Sat Jul 2 03:37:07 EDT 2016


Joaquin Alzola <Joaquin.Alzola at lebara.com> writes:
> ...
> The error that it throws is the following one (which is logical because I do not load the jar files):
> py4j.protocol.Py4JJavaError: An error occurred while calling o29.load.
> : java.lang.ClassNotFoundException: Failed to find data source: org.apache.spark.sql.cassandra. Please find packages at http://spark-packages.org
>
> Is there a way to load those jar files into python or the classpath when calling sqlContext.read.format("org.apache.spark.sql.cassandra")?

Apparently, you are using a Python-Java bridge (looks like "pyspark"
is such a thing). I expect that such a bridge provides
ways to make JAR files known to the activated Java runtime.
Consult its documentation.




More information about the Python-list mailing list