Details
Description
In getJNIEnv, we go though LIBHDFS_OPTS with strok and count the number of args. Then create an array of options based on that information. But when we actually setup the options we only the first arg. I believe the fix is pasted inline.
Index: src/c++/libhdfs/hdfsJniHelper.c =================================================================== --- src/c++/libhdfs/hdfsJniHelper.c (revision 1124544) +++ src/c++/libhdfs/hdfsJniHelper.c (working copy) @@ -442,6 +442,7 @@ int argNum = 1; for (;argNum < noArgs ; argNum++) { options[argNum].optionString = result; //optHadoopArg; + result = strtok( NULL, jvmArgDelims); } }