I am using a native method in my mapper code.
class Map extends Mapper<LongWritable, Text, LongWritable, Text>{
static{
System.loadLibrary("myjni");
}
public native String getRow(String record, String query);
public void map(...){
//...
}
}
I performed all necessary steps to create JNI library file - .so
. And I also copied this .so
file to hdfs. But still hadoop is not recognizing the path. Its giving an error - no myjni in java.libarary.path.
How to let know mapper the path of native library file. Please help. Thanks.