After installing the MapR Client and before developing applications, you must configure your client C library by setting the library path.
/opt/mapr/lib to the
end of LD_LIBRARY_PATH.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mapr/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mapr/lib:<path_to_libjvm.so_directory> find / -name libjvm* to determine the file location. For
example, if the libjvm.so file is in the following location:
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so Then,
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//opt/mapr/lib to the end
of DYLD_LIBRARY_PATH.
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/mapr/libexport DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/mapr/lib:<path_to_libjvm.dylib_directory> find / -name libjvm* to determine the
file location. For example, if the libjvm.dylib file is in the
following location:
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/server/libjvm.dylibexport DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/mapr/lib:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/serverFor Windows installations, no additional configuration is
required. Link your application and run your programs against the MapR Client
dynampic link libraries (dll) located at: C:\opt\mapr\lib. The
corresponding librdkafka header is C:\opt\mapr\include\librdkafka.