Skip to content

Instantly share code, notes, and snippets.

Last active July 24, 2017 23:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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/"
>>> 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 for more info.
Traceback (most recent call last):
File "/home/mapr/python-bindings/maprdb/", line 98, in wrapper
ret = f(*args, **kwargs)
File "/home/mapr/python-bindings/maprdb/", 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/", 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/ Thread: 31430 Client initialization failed due to mismatch of libraries. Please make sure that the java library version matches the native build version and native patch version $Id: mapr-version: 44429:e7073547c8a7fd5262b96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment