It seems like the recommended approach is to do this:

Build your hbase with against a particular version of hadoop with maven
using the -Dhadoop-two.version=<some_hadoop_version>

Then set your HBASE_LIRBRARY_PATH= $HADOOP_HOME/lib/native/Linux-amd64-64

You could run into problems if you are upgrading your hadoop server
binaries without updating your hbase client hadoop dependencies.  If
there are any JNI changes in the hadoop code
this would make the hadoop jars and jni code incompatible.

Or you compile against whatever version but ensure that whatever
hadoop client dependencies you pick up for hbase  is from the
$HADOOP_HOME directory at runtime?

Is there a recommended approach, because although there is no formal
API guarantee between the JARs and JNI code but they are tightly
coupled.

Thanks

rahul

Reply via email to