HPE Ezmeral Software platform
1825775 Members
2045 Online
109687 Solutions
New Discussion

Mismatch found for java and native libraries build version

 
SMP08
Collector

Mismatch found for java and native libraries build version

Am getting the below error when tried to build the project in my local. Below are my configuration used in the pom.xml file. Please help me out to resolve the issue

hbase-server: 1.1.8-mapr-1901
hive-exec: 2.3.6-mapr-2009-r3
spring-batch-core: 4.3.3
spark-sql_2.11: 2.3.1-mapr-1808-r4
hadoop-common, hadoop-mapreduce-client-common: 2.7.0-mapr-1808
scalatest_2.11: 3.0.9

Build is getting failed when tried to execute the unit test on my local machine.

Exception StackTrace:

[INFO] --- scalatest-maven-plugin:2.0.2:test (scala_tests) @ global-sic8-core ---
Discovery starting.
Discovery completed in 940 milliseconds.
Run starting. Expected test count is: 16
AddNeustarSourceTests:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/msrin11/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.6.2/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/msrin11/.m2/repository/org/slf4j/slf4j-log4j12/1.7.10/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'org.apache.logging.log4j.simplelog.StatusLogger.level' to TRACE to show Log4j2 internal initialization logging.
2021-06-25 10:51:09,7111 ERROR JniCommon fc/jni_MapRClient.cc:795 Thread: 26176 Mismatch found for java and native libraries java build version 6.1.0.20180926230239.GA, native build version 6.0.0.20171109191718.GA java patch vserion $Id: mapr-version: 6.1.0.20180926230239.GA 9008f798f53897bea861, native patch version $Id: mapr-version: 6.0.0.20171109191718.GA 2227eb16eb6dc79ffe87
*** RUN ABORTED ***
java.io.IOException: Could not create FileClient
at com.mapr.fs.MapRFileSystem.lookupClient(MapRFileSystem.java:661)
at com.mapr.fs.MapRFileSystem.lookupClient(MapRFileSystem.java:714)
at com.mapr.fs.MapRFileSystem.getMapRFileStatus(MapRFileSystem.java:1424)
at com.mapr.fs.MapRFileSystem.getFileStatus(MapRFileSystem.java:1098)
at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1464)
at org.apache.spark.sql.execution.datasources.DataSource$.org$apache$spark$sql$execution$datasources$DataSource$$checkAndGlobPathIfNecessary(DataSource.scala:714)
at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$15.apply(DataSource.scala:389)
at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$15.apply(DataSource.scala:389)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
...
Cause: java.io.IOException: Could not create FileClient
at com.mapr.fs.MapRClientImpl.<init>(MapRClientImpl.java:139)
at com.mapr.fs.MapRFileSystem.lookupClient(MapRFileSystem.java:655)
at com.mapr.fs.MapRFileSystem.lookupClient(MapRFileSystem.java:714)
at com.mapr.fs.MapRFileSystem.getMapRFileStatus(MapRFileSystem.java:1424)
at com.mapr.fs.MapRFileSystem.getFileStatus(MapRFileSystem.java:1098)
at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1464)
at org.apache.spark.sql.execution.datasources.DataSource$.org$apache$spark$sql$execution$datasources$DataSource$$checkAndGlobPathIfNecessary(DataSource.scala:714)
at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$15.apply(DataSource.scala:389)
at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$15.apply(DataSource.scala:389)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
...

 

 

4 REPLIES 4
Harshkohli
HPE Pro

Re: Mismatch found for java and native libraries build version

When you are saying you are running unit test on your machine, what mapr version you have installed across which you are running this Unit test?

 

I work for HPE
SMP08
Collector

Re: Mismatch found for java and native libraries build version

am using mapr version 

6.1.0-mapr
Harshkohli
HPE Pro

Re: Mismatch found for java and native libraries build version

Can you let me know from where you are resolving the dependancies in pom.xml? Which repo you are referring to?

Is your machine acting like a mapr client which connects to a cluster? What mapr versions you have on your cluster and client? are they the same?

to me it looks like your machine is like a mapr client which is 6.1? This happens when your client and core(cluster nodes) are in different build version

I work for HPE
Harshkohli
HPE Pro

Re: Mismatch found for java and native libraries build version

Can you confirm over the mapr versions as asked by me in the earlier post.

I work for HPE