accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Turner <ke...@deenlo.com>
Subject Re: JniBasedUnixGroupsMapping.anchorNative()V Error when initializing MiniAccumuloCluster
Date Mon, 15 Jun 2015 21:01:40 GMT
On Mon, Jun 15, 2015 at 4:44 PM, Josh Elser <josh.elser@gmail.com> wrote:

> I had suggested that you rebuild Accumulo, not your project. Unless you
> have an "assemble" profile in your project, of course you would see an
> error that the profile doesn't exist :). Rebuilding your local project does
> not build all of your dependencies.
>
> bq. The root cause of the problem is UnsatisfiedLinkError for
> org.apache.hadoop.security.JniBasedUnixGroupsMapping.anchorNative(). What
> hadoop shared library proved the implementation for that? Also, I though
> the native libs in hadoop were optional?
>
> Hadoop noticed that the native libraries were available which is why it
> tried to invoke them. Looking at 2.7.1-SNAPSHOT code, the line numbers
> matched up with what the stacktrace showed.
>

Ok I see, so maybe one part the hadoop code thought the native libs were
available but another part of the hadoop code could not load a specific
native method.


>
> You said earlier that this was in a "Hadoop job test file". What does that
> mean? That's what I was asking previously about how you are running this. I
> assumed you meant a mapreduce job or similar, but below it looks like
> you're just running the program by hand (or via an IDE). Does your maven
> project use the same version of Hadoop that you have installed on your
> nodes (1.2.2) -- see `mvn dependency:tree`?
>
>
> Jeff N wrote:
>
>> I'm using whichever one Maven pulls when you include Accumulo 1.6.0 as a
>> dependency. Yeah, unfortunately it just says
>>
>> "[WARNING] The requested profile "assemble" could not be activated because
>> it does not exist."
>>
>> And then when I try to start the MiniAccumuloCluster it gives me this:
>>
>> [WARNING]
>> java.lang.reflect.InvocationTargetException
>>         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.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
>>         at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.lang.RuntimeException: Initialize process returned 1.
>> Check
>> the logs in
>> /tmp/AccumuloMiniCluster(1434399112262)7316723201967391324/logs
>> for errors.
>>         at
>>
>> org.apache.accumulo.minicluster.impl.MiniAccumuloClusterImpl.start(MiniAccumuloClusterImpl.java:471)
>>         at
>>
>> org.apache.accumulo.minicluster.MiniAccumuloCluster.start(MiniAccumuloCluster.java:72)
>>         at
>>
>> ICASA.DAVE.Cloud.Store.AccumuloTestConnection.<init>(AccumuloTestConnection.java:124)
>>         at
>>
>> ICASA.DAVE.Cloud.Store.AccumuloTestConnection.getInstance(AccumuloTestConnection.java:56)
>>         at
>>
>> ICASA.DAVE.Cloud.Store.AccumuloStore$AccumuloRowIterable.iterator(AccumuloStore.java:179)
>>         at ICASA.util.types.io.DataClerk.getEntryMap(DataClerk.java:559)
>>         at ICASA.util.types.io.DataClerk.loadObject(DataClerk.java:229)
>>         at
>> ICASA.DAVE.Local.LocalResults.loadOperationResults(LocalResults.java:505)
>>         at
>>
>> ICASA.DAVE.Local.LocalResults.getOutputsForOperation(LocalResults.java:119)
>>         at ICASA.DAVE.Core.Project.buildInputs(Project.java:203)
>>         at
>> ICASA.DAVE.Local.Evaluator.LocalEvaluator.submit(LocalEvaluator.java:163)
>>         at
>> ICASA.DAVE.Core.Project.scheduleOperationForEvaluation(Project.java:150)
>>         at ICASA.DAVE.TestingHadoop.main(TestingHadoop.java:154)
>>         ... 6 more
>>
>> I have a 4 node cluster and all the libhadoop.so's seem to be the same on
>> all machines. If there is anything else I can provide please let me know.
>>
>>
>>
>> -----
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-accumulo.1065345.n5.nabble.com/JniBasedUnixGroupsMapping-anchorNative-V-Error-when-initializing-MiniAccumuloCluster-tp14449p14454.html
>> Sent from the Developers mailing list archive at Nabble.com.
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message