accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Elser <josh.el...@gmail.com>
Subject Re: JniBasedUnixGroupsMapping.anchorNative()V Error when initializing MiniAccumuloCluster
Date Mon, 15 Jun 2015 18:51:42 GMT
Might be a compatibility issue with Hadoop 1. 1.6 builds, by default, 
against Hadoop 2.

Can you try rebuilding Accumulo against Hadoop 1.2.2?

`mvn clean package -Dhadoop.profile=1 -DskipTests -Passemble`

Looking at the Hadoop code, though, I'm really not certain. It might 
also be a mismatch of Hadoop native libraries. Very curious.

Jeff N wrote:
> I'm using Accumulo 1.6 jar, Hadoop 1.2.2, and Zookeeper 3.4.5
>
> The issue arises when I attempt to initialize the MiniAccumuloCluster to be
> used in a Hadoop job test file.
>
> Thread "org.apache.accumulo.server.init.Initialize" died
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
> java.lang.RuntimeException: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> 	at org.apache.accumulo.server.init.Initialize.main(Initialize.java:634)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.accumulo.start.Main$1.run(Main.java:141)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> 	at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:131)
> 	at org.apache.hadoop.security.Groups.<init>(Groups.java:55)
> 	at
> org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:182)
> 	at
> org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:235)
> 	at
> org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:214)
> 	at
> org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:669)
> 	at
> org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:571)
> 	at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2590)
> 	at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2582)
> 	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2448)
> 	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:367)
> 	at org.apache.hadoop.fs.Path.getFileSystem(Path.java:287)
> 	at org.apache.accumulo.core.volume.VolumeImpl.<init>(VolumeImpl.java:43)
> 	at
> org.apache.accumulo.core.volume.VolumeConfiguration.create(VolumeConfiguration.java:155)
> 	at
> org.apache.accumulo.server.fs.VolumeManagerImpl.get(VolumeManagerImpl.java:414)
> 	at org.apache.accumulo.server.init.Initialize.main(Initialize.java:614)
> 	... 6 more
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> 	at
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:129)
> 	... 21 more
> Caused by: java.lang.UnsatisfiedLinkError:
> org.apache.hadoop.security.JniBasedUnixGroupsMapping.anchorNative()V
> 	at org.apache.hadoop.security.JniBasedUnixGroupsMapping.anchorNative(Native
> Method)
> 	at
> org.apache.hadoop.security.JniBasedUnixGroupsMapping.<clinit>(JniBasedUnixGroupsMapping.java:49)
> 	at
> org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback.<init>(JniBasedUnixGroupsMappingWithFallback.java:38)
> 	... 26 more
>
> The Internet is less than helpful. Thoughts?
>
> - Jeff N.
>
>
>
> -----
>
>
>
> --
> View this message in context: http://apache-accumulo.1065345.n5.nabble.com/JniBasedUnixGroupsMapping-anchorNative-V-Error-when-initializing-MiniAccumuloCluster-tp14449.html
> Sent from the Developers mailing list archive at Nabble.com.

Mime
View raw message