AnsweredAssumed Answered

remote java application connecting to MapR via Hcatalog API

Question asked by ooyedipe on Aug 21, 2014
Latest reply on Aug 21, 2014 by kiran_kumar_mavatoor
  Do you have the installations steps that would be required to allow a remote java application connect to a MapR cluster and access tables via the HCatalog API

I read the documentation provided on the mapr website

and I’ve placed the listed jars within the classpath of our java application, but I’m still getting an error:
java.lang.ExceptionInInitializerError: null
        at com.mapr.fs.ShimLoader.load( ~[na:na]
        at org.apache.hadoop.conf.MapRConf.<clinit>( ~[na:na]
        at org.apache.hadoop.conf.Configuration.loadResources( ~[na:na]
        at org.apache.hadoop.conf.Configuration.getProps( ~[na:na]
        at org.apache.hadoop.conf.Configuration.set( ~[na:na]
        at [na:1.6.0_43]
Caused by: java.lang.RuntimeException: Failure loading MapRClient.
        at com.mapr.fs.ShimLoader.injectNativeLoader( ~[na:na]
        at com.mapr.fs.ShimLoader.load( ~[na:na]
        ... 18 common frames omitted
Caused by: /com/mapr/fs/jni/MapRConstants.class is not found
        at com.mapr.fs.ShimLoader.getByteCode( ~[na:na]
        at com.mapr.fs.ShimLoader.injectNativeLoader( ~[na:na]