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


Groups > comp.lang.python > #110949 > unrolled thread

Re: JAR files into python

Started bydieter <dieter@handshake.de>
First post2016-07-02 09:37 +0200
Last post2016-07-02 09:37 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#110949 — Re: JAR files into python

Fromdieter <dieter@handshake.de>
Date2016-07-02 09:37 +0200
SubjectRe: JAR files into python
Message-ID<mailman.20.1467445034.2295.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web