Configuring the HPE Ezmeral Data Fabric Streams C Client

After installing the HPE Ezmeral Data Fabric Client and before developing applications, you must configure your client C library by setting the library path.

Linux

For Linux installations, add /opt/mapr/lib to the end of LD_LIBRARY_PATH.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mapr/lib 
IMPORTANT
For HPE Ezmeral Data Fabric 6.0.1, the libjvm.so configuration is not required.
For HPE Ezmeral Data Fabric 6.0.0 and earlier, 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> 
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, 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/

Mac

For Mac installations, add /opt/mapr/lib to the end of DYLD_LIBRARY_PATH.
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/mapr/lib
IMPORTANT
For HPE Ezmeral Data Fabric 6.0.1, the libjvm.so configuration is not required.
For HPE Ezmeral Data Fabric 6.0.0 and earlier, 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> 
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, if the libjvm.dylib file is in the following location:
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/server/libjvm.dylib
Then, 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

Windows

NOTE
As of HPE Ezmeral Data Fabric 6.0.1, the HPE Ezmeral Data Fabric C client is available on Windows.

For Windows installations, no additional configuration is required. Link your application and run your programs against the HPE Ezmeral Data Fabric Client dynampic link libraries (dll) located at: C:\opt\mapr\lib. The corresponding librdkafka header is C:\opt\mapr\include\librdkafka.