Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #110949

Re: JAR files into python

From dieter <dieter@handshake.de>
Newsgroups comp.lang.python
Subject Re: JAR files into python
Date 2016-07-02 09:37 +0200
Message-ID <mailman.20.1467445034.2295.python-list@python.org> (permalink)
References <HE1PR07MB1356FAC7052AD696FB8B799EF0250@HE1PR07MB1356.eurprd07.prod.outlook.com> <877fd4ij8c.fsf@handshake.de>

Show all headers | View raw


Joaquin Alzola <Joaquin.Alzola@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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: JAR files into python dieter <dieter@handshake.de> - 2016-07-02 09:37 +0200

csiph-web