AnsweredAssumed Answered

Trying to use C libhbase in Mapr and getting /opt/mapr/lib/libMapRClient.so: undefined symbol: JNI_GetCreatedJavaVMs

Question asked by mandoskippy on Apr 6, 2017
Latest reply on Apr 7, 2017 by maprcommunity

I am trying to compile GitHub - mkmoisen/pychbase: A Python Wrapper for the C APIs to HBase  for use with MapR DB. I've set all the library locations etc, and am getting the error below.  I guess I am a complete newbie when it comes to linking, libraries, using C etc... so I am not even sure what an undefined symbol means, so if someone could point me in the right direction, I'd appreciate it. 

 

Some things I've tried

- Switching between Oracle JDK and Open JDK (Both 8)

- Trying MapR 5.2 libraries and MapR 5.1 Libraries. (The Git hub says 5.1 is supported...)

 

All seem to show the same errors. Any help would be appreciated!

 

 

 

 

Traceback

>>> from pychbase import Connection, Table, Batch

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/usr/local/lib/python2.7/dist-packages/pychbase/__init__.py", line 1, in <module>

    from pychbase._pychbase import _connection, _table, HBaseError

ImportError: /opt/mapr/lib/libMapRClient.so: undefined symbol: JNI_GetCreatedJavaVMs

Outcomes