Configuring the MapR Streams C Client

Before you use the Streams C Client, you must complete the following steps.

  1. For Linux installations: Add the /opt/mapr/lib and the path to the directory that contains libjvm.so to the end of LD_LIBRARY_PATH.
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mapr/lib:<path_to_libjvm.so_directory> 
    Note: The location of the libjvm.so differs based on where you installed Java. You can use find / -name libjvm* to determine the file location.

    For example, the libjvm.so file could be in the following location: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so. In this scenario, you set the library path like this: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mapr/lib:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/

  2. For Mac installations: Add /opt/mapr/lib and the path to the directory that contains libjvm.dylib to the end of DYLD_LIBRARY_PATH.
    export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/mapr/lib:<path_to_libjvm.dylib_directory> 
    Note: The location of the libjvm.dylib differs based on where you installed Java. You can use find / -name libjvm* to determine the file location.

    For example, the libjvm.dylib file could be in the following location: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/server/ libjvm.dylib. In this scenario, you set the library path like this: export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/mapr/lib:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/server