Skip to content

Instantly share code, notes, and snippets.

@iandow
Last active July 24, 2017 23:03
Show Gist options
  • Save iandow/97502c6959bdaa1eb0e5ed030f9e82a0 to your computer and use it in GitHub Desktop.
Save iandow/97502c6959bdaa1eb0e5ed030f9e82a0 to your computer and use it in GitHub Desktop.
maprdb_pyspark_error.txt
mapr@nodea107:~/python-bindings$ PYSPARK_PYTHON=/usr/bin/python3 /opt/mapr/spark/spark-2.1.0/bin/pyspark --py-files dist/maprdb-0.0.1-py3.4.egg
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
17/07/24 22:45:40 WARN Utils: Service 'SparkUI' could not bind on port 4040. Attempting port 4041.
17/07/24 22:45:40 WARN Utils: Service 'SparkUI' could not bind on port 4041. Attempting port 4042.
17/07/24 22:45:40 WARN Utils: Service 'SparkUI' could not bind on port 4042. Attempting port 4043.
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/__ / .__/\_,_/_/ /_/\_\ version 2.1.0-mapr-SNAPSHOT
/_/
Using Python version 3.4.3 (default, Nov 17 2016 01:08:31)
SparkSession available as 'spark'.
>>> import maprdb;
>>> maprdb.
maprdb.Condition( maprdb.__ge__( maprdb.__repr__(
maprdb.Connection( maprdb.__getattribute__( maprdb.__setattr__(
maprdb.Document( maprdb.__gt__( maprdb.__sizeof__(
maprdb.JARS_LIST maprdb.__hash__( maprdb.__spec__
maprdb.Mutation( maprdb.__init__( maprdb.__str__(
maprdb.Table( maprdb.__le__( maprdb.__subclasshook__(
maprdb.__cached__ maprdb.__loader__ maprdb.conditions
maprdb.__class__( maprdb.__lt__( maprdb.connect(
maprdb.__delattr__( maprdb.__name__ maprdb.connection
maprdb.__dict__ maprdb.__ne__( maprdb.document
maprdb.__dir__( maprdb.__new__( maprdb.glob
maprdb.__doc__ maprdb.__package__ maprdb.mutation
maprdb.__eq__( maprdb.__path__ maprdb.os
maprdb.__file__ maprdb.__reduce__( maprdb.tables
maprdb.__format__( maprdb.__reduce_ex__( maprdb.utils
>>> conn = maprdb.connect()
>>> TABLE_PATH = "/mapr/my.cluster.com/tmp/crm_data"
>>> table = conn.get(TABLE_PATH)
log4j:WARN No appenders could be found for logger (com.mapr.baseutils.cldbutils.CLDBRpcCommonUtils).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Traceback (most recent call last):
File "/home/mapr/python-bindings/maprdb/utils.py", line 98, in wrapper
ret = f(*args, **kwargs)
File "/home/mapr/python-bindings/maprdb/connection.py", line 69, in get
j_table = self.MapRDB.getTable(name)
jpype._jexception.DBExceptionPyRaisable: com.mapr.db.exceptions.DBException: <init>() failed.,
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/mapr/python-bindings/maprdb/utils.py", line 101, in wrapper
raise MapRDBError(str(e)) from e
maprdb.utils.MapRDBError: com.mapr.db.exceptions.DBException: <init>() failed.,
>>> 2017-07-24 22:47:42,1533 ERROR JniCommon fs/client/fileclient/cc/jni_MapRClient.cc:641 Thread: 31430 Client initialization failed due to mismatch of libraries. Please make sure that the java library version matches the native build version 6.0.0.44429.BETA and native patch version $Id: mapr-version: 6.0.0.44429.BETA 44429:e7073547c8a7fd5262b96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment