You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Upendra Yadav <up...@gmail.com> on 2014/02/18 16:05:54 UTC

error on ./hbase shell execution

On execution of  ./hbase shell i am getting below error...
This is new hdfs-hbase installation...


[sas@172.20.8.20~/hbase-0.98.0-hadoop2/bin]$  ./hbase shell
2014-02-18 20:34:36,531 INFO  [main] Configuration.deprecation:
hadoop.native.lib is deprecated. Instead, use io.native.lib.available
java.lang.RuntimeException: java.lang.UnsatisfiedLinkError:
/tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp: failed
to map segment from shared object: Operation not permitted
at com.kenai.jffi.Foreign$InValidInstanceHolder.getForeign(Foreign.java:90)
at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
at com.kenai.jffi.Library.openLibrary(Library.java:151)
at com.kenai.jffi.Library.getCachedInstance(Library.java:125)
at
com.kenai.jaffl.provider.jffi.Library.loadNativeLibraries(Library.java:66)
at com.kenai.jaffl.provider.jffi.Library.getNativeLibraries(Library.java:56)
at com.kenai.jaffl.provider.jffi.Library.getSymbolAddress(Library.java:35)
at com.kenai.jaffl.provider.jffi.Library.findSymbolAddress(Library.java:45)
at
com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:188)
at
com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:110)
at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
at com.kenai.jaffl.Library.loadLibrary(Library.java:76)
at
org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:108)
at
org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider.getLibC(POSIXFactory.java:112)
at org.jruby.ext.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:30)
at org.jruby.ext.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:17)
at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:70)
at org.jruby.ext.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:31)
at org.jruby.ext.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:29)
at org.jruby.ext.posix.LazyPOSIX.posix(LazyPOSIX.java:25)
at org.jruby.ext.posix.LazyPOSIX.isatty(LazyPOSIX.java:159)
at org.jruby.RubyIO.tty_p(RubyIO.java:1897)
at org.jruby.RubyIO$i$0$0$tty_p.call(RubyIO$i$0$0$tty_p.gen:65535)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)
at org.jruby.ast.IfNode.interpret(IfNode.java:111)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:183)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
at org.jruby.ast.VCallNode.interpret(VCallNode.java:86)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
at
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
at org.jruby.RubyClass.newInstance(RubyClass.java:822)
at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)
at
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
at
home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.__file__(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110)
at
home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.load(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb)
at org.jruby.Ruby.runScript(Ruby.java:697)
at org.jruby.Ruby.runScript(Ruby.java:690)
at org.jruby.Ruby.runNormally(Ruby.java:597)
at org.jruby.Ruby.runFromMain(Ruby.java:446)
at org.jruby.Main.doRunFromMain(Main.java:369)
at org.jruby.Main.internalRun(Main.java:258)
at org.jruby.Main.run(Main.java:224)
at org.jruby.Main.run(Main.java:208)
at org.jruby.Main.main(Main.java:188)
Caused by: java.lang.UnsatisfiedLinkError:
/tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp: failed
to map segment from shared object: Operation not permitted
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at com.kenai.jffi.Init.loadFromJar(Init.java:164)
at com.kenai.jffi.Init.load(Init.java:78)
at com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
at com.kenai.jffi.Internals.getErrnoSaveFunction(Internals.java:44)
at
com.kenai.jaffl.provider.jffi.StubCompiler.getErrnoSaveFunction(StubCompiler.java:68)
at com.kenai.jaffl.provider.jffi.StubCompiler.<clinit>(StubCompiler.java:18)
at
com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:146)
... 50 more
Foreign.java:90:in `getForeign': java.lang.RuntimeException:
java.lang.UnsatisfiedLinkError: /tmp/jffi6261999673135703273.tmp:
/tmp/jffi6261999673135703273.tmp: failed to map segment from shared object:
Operation not permitted
from Foreign.java:95:in `getInstance'
from Library.java:151:in `openLibrary'
from Library.java:125:in `getCachedInstance'
from Library.java:66:in `loadNativeLibraries'
from Library.java:56:in `getNativeLibraries'
from Library.java:35:in `getSymbolAddress'
from Library.java:45:in `findSymbolAddress'
from DefaultInvokerFactory.java:51:in `createInvoker'
from Library.java:27:in `getInvoker'
from NativeInvocationHandler.java:90:in `createInvoker'
from NativeInvocationHandler.java:74:in `getInvoker'
from NativeInvocationHandler.java:110:in `invoke'
from null:-1:in `isatty'
from BaseNativePOSIX.java:300:in `isatty'
from LazyPOSIX.java:159:in `isatty'
from RubyIO.java:1897:in `tty_p'
from RubyIO$i$0$0$tty_p.gen:65535:in `call'
from CachingCallSite.java:292:in `cacheAndCall'
from CachingCallSite.java:135:in `call'
from CallNoArgNode.java:63:in `interpret'
from IfNode.java:111:in `interpret'
from NewlineNode.java:104:in `interpret'
from ASTInterpreter.java:74:in `INTERPRET_METHOD'
from InterpretedMethod.java:147:in `call'
from DefaultMethod.java:183:in `call'
from CachingCallSite.java:292:in `cacheAndCall'
from CachingCallSite.java:135:in `call'
from VCallNode.java:86:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from ASTInterpreter.java:74:in `INTERPRET_METHOD'
from InterpretedMethod.java:169:in `call'
from DefaultMethod.java:191:in `call'
from CachingCallSite.java:302:in `cacheAndCall'
from CachingCallSite.java:144:in `callBlock'
from CachingCallSite.java:148:in `call'
from RubyClass.java:822:in `newInstance'
from RubyClass$i$newInstance.gen:65535:in `call'
from JavaMethod.java:249:in `call'
from CachingCallSite.java:292:in `cacheAndCall'
from CachingCallSite.java:135:in `call'
from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
from Ruby.java:697:in `runScript'
from Ruby.java:690:in `runScript'
from Ruby.java:597:in `runNormally'
from Ruby.java:446:in `runFromMain'
from Main.java:369:in `doRunFromMain'
from Main.java:258:in `internalRun'
from Main.java:224:in `run'
from Main.java:208:in `run'
from Main.java:188:in `main'
Caused by:
ClassLoader.java:-2:in `load': java.lang.UnsatisfiedLinkError:
/tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp: failed
to map segment from shared object: Operation not permitted
from ClassLoader.java:1803:in `loadLibrary0'
from ClassLoader.java:1699:in `loadLibrary'
from Runtime.java:770:in `load0'
from System.java:1003:in `load'
from Init.java:164:in `loadFromJar'
from Init.java:78:in `load'
from Foreign.java:49:in `getInstanceHolder'
from Foreign.java:45:in `<clinit>'
from Foreign.java:95:in `getInstance'
from Internals.java:44:in `getErrnoSaveFunction'
from StubCompiler.java:68:in `getErrnoSaveFunction'
from StubCompiler.java:18:in `<clinit>'
from AsmLibraryLoader.java:146:in `generateInterfaceImpl'
from AsmLibraryLoader.java:110:in `loadLibrary'
from Provider.java:31:in `loadLibrary'
from Provider.java:25:in `loadLibrary'
from Library.java:76:in `loadLibrary'
from POSIXFactory.java:108:in `<clinit>'
from POSIXFactory.java:112:in `getLibC'
from BaseNativePOSIX.java:30:in `<init>'
from LinuxPOSIX.java:17:in `<init>'
from POSIXFactory.java:70:in `loadLinuxPOSIX'
from POSIXFactory.java:31:in `loadPOSIX'
from LazyPOSIX.java:29:in `loadPOSIX'
from LazyPOSIX.java:25:in `posix'
from LazyPOSIX.java:159:in `isatty'
from RubyIO.java:1897:in `tty_p'
from RubyIO$i$0$0$tty_p.gen:65535:in `call'
from CachingCallSite.java:292:in `cacheAndCall'
from CachingCallSite.java:135:in `call'
from CallNoArgNode.java:63:in `interpret'
from IfNode.java:111:in `interpret'
from NewlineNode.java:104:in `interpret'
from ASTInterpreter.java:74:in `INTERPRET_METHOD'
from InterpretedMethod.java:147:in `call'
from DefaultMethod.java:183:in `call'
from CachingCallSite.java:292:in `cacheAndCall'
from CachingCallSite.java:135:in `call'
from VCallNode.java:86:in `interpret'
from NewlineNode.java:104:in `interpret'
from BlockNode.java:71:in `interpret'
from ASTInterpreter.java:74:in `INTERPRET_METHOD'
from InterpretedMethod.java:169:in `call'
from DefaultMethod.java:191:in `call'
from CachingCallSite.java:302:in `cacheAndCall'
from CachingCallSite.java:144:in `callBlock'
from CachingCallSite.java:148:in `call'
from RubyClass.java:822:in `newInstance'
from RubyClass$i$newInstance.gen:65535:in `call'
from JavaMethod.java:249:in `call'
from CachingCallSite.java:292:in `cacheAndCall'
from CachingCallSite.java:135:in `call'
from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
from Ruby.java:697:in `runScript'
from Ruby.java:690:in `runScript'
from Ruby.java:597:in `runNormally'
from Ruby.java:446:in `runFromMain'
from Main.java:369:in `doRunFromMain'
from Main.java:258:in `internalRun'
from Main.java:224:in `run'
from Main.java:208:in `run'
from Main.java:188:in `main'

Re: error on ./hbase shell execution

Posted by Upendra Yadav <up...@gmail.com>.
I have bad luck... ENV['TMPDIR']='/home/sas/hbase-0.98.0-hadoop2/tmp/' into
hirb.rb file..

Still not working...

In the last i have no any option and I asked my system-admin team to mount
/tmp without noexec for one of the machine where i will execute ./hbase
shell..

And after that it's working...

Thanks a lot for your kind support - @Jean-Marc Spaggiari and @Ted Yu...

I know this is not a proper solution for our production environment. If you
got any solution about this, then please informed me too...


On Tue, Feb 18, 2014 at 11:46 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Hum.
>
> Not really sure, but maybe you can try to add
> ENV['TMPDIR']='/home/sas/hbase-0.98.0-hadoop2/tmp/' into hirb.rb file?
>
>
> 2014-02-18 13:00 GMT-05:00 Upendra Yadav <up...@gmail.com>:
>
> > After setting TMPDIR still same errors are coming... :(
> >
> >
> > On Tue, Feb 18, 2014 at 10:31 PM, Jean-Marc Spaggiari <
> > jean-marc@spaggiari.org> wrote:
> >
> > > I think it's Ruby using this tmp directory, not HBase.
> > >
> > > Can you try to setup TMPDIR?
> > >
> > > export TMPDIR=/home/sas/hbase-0.98.0-hadoop2/tmp/
> > >
> > >
> > > 2014-02-18 11:54 GMT-05:00 Upendra Yadav <up...@gmail.com>:
> > > >
> > > > do you have any ruby package installed outsite of HBase?
> > > > NO
> > > >
> > > > Also, what's your JDK version?
> > > > java version "1.6.0_24"
> > > > Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> > > > Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
> > > >
> > > > What's the value of you JAVA_HOME variable?
> > > > /home/sas/jdk1.6.0_24
> > > >
> > > > I searched on google and find : /tmp should not mount with noexec.
> > > > but with mount command i got: /dev/mapper/vg000-systmp on /tmp type
> > ext4
> > > > (rw,noexec,nosuid,nodev,noatime)
> > > >
> > > > On this machine i have no root permission so i can't change it.
> > > > And after that i configured hbase.tmp.dir with value :
> > > > /home/sas/hbase-0.98.0-hadoop2/hbase-${user.name}
> > > >
> > > > but still it's not working
> > > >
> > > > other problem:
> > > > and hbase.rootdir have value :
> > > >                 hdfs://172.20.8.20:8020/hbase
> > > >
> > > > but after starting hbase that hbase
> > > directory(/home/sas/hadoop-2.2.0/hbase)
> > > > still empty
> > > >
> > > >
> > > >
> > > > On Tue, Feb 18, 2014 at 8:38 PM, Jean-Marc Spaggiari <
> > > > jean-marc@spaggiari.org> wrote:
> > > >
> > > > > do you have any ruby package installed outsite of HBase? Also,
> what's
> > > your
> > > > > JDK version? What's the value of you JAVA_HOME variable?
> > > > >
> > > > > JM
> > > > >
> > > > >
> > > > > 2014-02-18 10:05 GMT-05:00 Upendra Yadav <up...@gmail.com>:
> > > > >
> > > > > > On execution of  ./hbase shell i am getting below error...
> > > > > > This is new hdfs-hbase installation...
> > > > > >
> > > > > >
> > > > > > [sas@172.20.8.20~/hbase-0.98.0-hadoop2/bin]$  ./hbase shell
> > > > > > 2014-02-18 20:34:36,531 INFO  [main] Configuration.deprecation:
> > > > > > hadoop.native.lib is deprecated. Instead, use
> > io.native.lib.available
> > > > > > java.lang.RuntimeException: java.lang.UnsatisfiedLinkError:
> > > > > > /tmp/jffi6261999673135703273.tmp:
> /tmp/jffi6261999673135703273.tmp:
> > > > > failed
> > > > > > to map segment from shared object: Operation not permitted
> > > > > > at
> > > > >
> > >
> com.kenai.jffi.Foreign$InValidInstanceHolder.getForeign(Foreign.java:90)
> > > > > > at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> > > > > > at com.kenai.jffi.Library.openLibrary(Library.java:151)
> > > > > > at com.kenai.jffi.Library.getCachedInstance(Library.java:125)
> > > > > > at
> > > > > >
> > > > >
> > >
> >
> com.kenai.jaffl.provider.jffi.Library.loadNativeLibraries(Library.java:66)
> > > > > > at
> > > > > >
> > >
> com.kenai.jaffl.provider.jffi.Library.getNativeLibraries(Library.java:56)
> > > > > > at
> > > > >
> > com.kenai.jaffl.provider.jffi.Library.getSymbolAddress(Library.java:35)
> > > > > > at
> > > > >
> > >
> com.kenai.jaffl.provider.jffi.Library.findSymbolAddress(Library.java:45)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:188)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:110)
> > > > > > at
> > > com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
> > > > > > at
> > > com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
> > > > > > at com.kenai.jaffl.Library.loadLibrary(Library.java:76)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:108)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider.getLibC(POSIXFactory.java:112)
> > > > > > at
> > > org.jruby.ext.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:30)
> > > > > > at org.jruby.ext.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:17)
> > > > > > at
> > > org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:70)
> > > > > > at
> org.jruby.ext.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:31)
> > > > > > at org.jruby.ext.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:29)
> > > > > > at org.jruby.ext.posix.LazyPOSIX.posix(LazyPOSIX.java:25)
> > > > > > at org.jruby.ext.posix.LazyPOSIX.isatty(LazyPOSIX.java:159)
> > > > > > at org.jruby.RubyIO.tty_p(RubyIO.java:1897)
> > > > > > at
> org.jruby.RubyIO$i$0$0$tty_p.call(RubyIO$i$0$0$tty_p.gen:65535)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > > > > at
> > > > > >
> > >
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > > > > at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)
> > > > > > at org.jruby.ast.IfNode.interpret(IfNode.java:111)
> > > > > > at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> > > > > > at
> > > > > >
> > > > >
> > >
> >
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:183)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > > > > at
> > > > > >
> > >
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > > > > at org.jruby.ast.VCallNode.interpret(VCallNode.java:86)
> > > > > > at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> > > > > > at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
> > > > > > at
> > > > > >
> > > > >
> > >
> >
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
> > > > > > at
> > > > > >
> > >
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
> > > > > > at org.jruby.RubyClass.newInstance(RubyClass.java:822)
> > > > > > at
> > > > > >
> > >
> org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > > > > at
> > > > > >
> > >
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.__file__(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.load(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb)
> > > > > > at org.jruby.Ruby.runScript(Ruby.java:697)
> > > > > > at org.jruby.Ruby.runScript(Ruby.java:690)
> > > > > > at org.jruby.Ruby.runNormally(Ruby.java:597)
> > > > > > at org.jruby.Ruby.runFromMain(Ruby.java:446)
> > > > > > at org.jruby.Main.doRunFromMain(Main.java:369)
> > > > > > at org.jruby.Main.internalRun(Main.java:258)
> > > > > > at org.jruby.Main.run(Main.java:224)
> > > > > > at org.jruby.Main.run(Main.java:208)
> > > > > > at org.jruby.Main.main(Main.java:188)
> > > > > > Caused by: java.lang.UnsatisfiedLinkError:
> > > > > > /tmp/jffi6261999673135703273.tmp:
> /tmp/jffi6261999673135703273.tmp:
> > > > > failed
> > > > > > to map segment from shared object: Operation not permitted
> > > > > > at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> > > > > > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
> > > > > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
> > > > > > at java.lang.Runtime.load0(Runtime.java:770)
> > > > > > at java.lang.System.load(System.java:1003)
> > > > > > at com.kenai.jffi.Init.loadFromJar(Init.java:164)
> > > > > > at com.kenai.jffi.Init.load(Init.java:78)
> > > > > > at
> > > > >
> > >
> com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
> > > > > > at
> com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
> > > > > > at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> > > > > > at
> com.kenai.jffi.Internals.getErrnoSaveFunction(Internals.java:44)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> com.kenai.jaffl.provider.jffi.StubCompiler.getErrnoSaveFunction(StubCompiler.java:68)
> > > > > > at
> > > > > >
> > >
> com.kenai.jaffl.provider.jffi.StubCompiler.<clinit>(StubCompiler.java:18)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> >
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:146)
> > > > > > ... 50 more
> > > > > > Foreign.java:90:in `getForeign': java.lang.RuntimeException:
> > > > > > java.lang.UnsatisfiedLinkError: /tmp/jffi6261999673135703273.tmp:
> > > > > > /tmp/jffi6261999673135703273.tmp: failed to map segment from
> shared
> > > > > object:
> > > > > > Operation not permitted
> > > > > > from Foreign.java:95:in `getInstance'
> > > > > > from Library.java:151:in `openLibrary'
> > > > > > from Library.java:125:in `getCachedInstance'
> > > > > > from Library.java:66:in `loadNativeLibraries'
> > > > > > from Library.java:56:in `getNativeLibraries'
> > > > > > from Library.java:35:in `getSymbolAddress'
> > > > > > from Library.java:45:in `findSymbolAddress'
> > > > > > from DefaultInvokerFactory.java:51:in `createInvoker'
> > > > > > from Library.java:27:in `getInvoker'
> > > > > > from NativeInvocationHandler.java:90:in `createInvoker'
> > > > > > from NativeInvocationHandler.java:74:in `getInvoker'
> > > > > > from NativeInvocationHandler.java:110:in `invoke'
> > > > > > from null:-1:in `isatty'
> > > > > > from BaseNativePOSIX.java:300:in `isatty'
> > > > > > from LazyPOSIX.java:159:in `isatty'
> > > > > > from RubyIO.java:1897:in `tty_p'
> > > > > > from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> > > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > > from CachingCallSite.java:135:in `call'
> > > > > > from CallNoArgNode.java:63:in `interpret'
> > > > > > from IfNode.java:111:in `interpret'
> > > > > > from NewlineNode.java:104:in `interpret'
> > > > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > > > from InterpretedMethod.java:147:in `call'
> > > > > > from DefaultMethod.java:183:in `call'
> > > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > > from CachingCallSite.java:135:in `call'
> > > > > > from VCallNode.java:86:in `interpret'
> > > > > > from NewlineNode.java:104:in `interpret'
> > > > > > from BlockNode.java:71:in `interpret'
> > > > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > > > from InterpretedMethod.java:169:in `call'
> > > > > > from DefaultMethod.java:191:in `call'
> > > > > > from CachingCallSite.java:302:in `cacheAndCall'
> > > > > > from CachingCallSite.java:144:in `callBlock'
> > > > > > from CachingCallSite.java:148:in `call'
> > > > > > from RubyClass.java:822:in `newInstance'
> > > > > > from RubyClass$i$newInstance.gen:65535:in `call'
> > > > > > from JavaMethod.java:249:in `call'
> > > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > > from CachingCallSite.java:135:in `call'
> > > > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> > > > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> > > > > > from Ruby.java:697:in `runScript'
> > > > > > from Ruby.java:690:in `runScript'
> > > > > > from Ruby.java:597:in `runNormally'
> > > > > > from Ruby.java:446:in `runFromMain'
> > > > > > from Main.java:369:in `doRunFromMain'
> > > > > > from Main.java:258:in `internalRun'
> > > > > > from Main.java:224:in `run'
> > > > > > from Main.java:208:in `run'
> > > > > > from Main.java:188:in `main'
> > > > > > Caused by:
> > > > > > ClassLoader.java:-2:in `load': java.lang.UnsatisfiedLinkError:
> > > > > > /tmp/jffi6261999673135703273.tmp:
> /tmp/jffi6261999673135703273.tmp:
> > > > > failed
> > > > > > to map segment from shared object: Operation not permitted
> > > > > > from ClassLoader.java:1803:in `loadLibrary0'
> > > > > > from ClassLoader.java:1699:in `loadLibrary'
> > > > > > from Runtime.java:770:in `load0'
> > > > > > from System.java:1003:in `load'
> > > > > > from Init.java:164:in `loadFromJar'
> > > > > > from Init.java:78:in `load'
> > > > > > from Foreign.java:49:in `getInstanceHolder'
> > > > > > from Foreign.java:45:in `<clinit>'
> > > > > > from Foreign.java:95:in `getInstance'
> > > > > > from Internals.java:44:in `getErrnoSaveFunction'
> > > > > > from StubCompiler.java:68:in `getErrnoSaveFunction'
> > > > > > from StubCompiler.java:18:in `<clinit>'
> > > > > > from AsmLibraryLoader.java:146:in `generateInterfaceImpl'
> > > > > > from AsmLibraryLoader.java:110:in `loadLibrary'
> > > > > > from Provider.java:31:in `loadLibrary'
> > > > > > from Provider.java:25:in `loadLibrary'
> > > > > > from Library.java:76:in `loadLibrary'
> > > > > > from POSIXFactory.java:108:in `<clinit>'
> > > > > > from POSIXFactory.java:112:in `getLibC'
> > > > > > from BaseNativePOSIX.java:30:in `<init>'
> > > > > > from LinuxPOSIX.java:17:in `<init>'
> > > > > > from POSIXFactory.java:70:in `loadLinuxPOSIX'
> > > > > > from POSIXFactory.java:31:in `loadPOSIX'
> > > > > > from LazyPOSIX.java:29:in `loadPOSIX'
> > > > > > from LazyPOSIX.java:25:in `posix'
> > > > > > from LazyPOSIX.java:159:in `isatty'
> > > > > > from RubyIO.java:1897:in `tty_p'
> > > > > > from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> > > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > > from CachingCallSite.java:135:in `call'
> > > > > > from CallNoArgNode.java:63:in `interpret'
> > > > > > from IfNode.java:111:in `interpret'
> > > > > > from NewlineNode.java:104:in `interpret'
> > > > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > > > from InterpretedMethod.java:147:in `call'
> > > > > > from DefaultMethod.java:183:in `call'
> > > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > > from CachingCallSite.java:135:in `call'
> > > > > > from VCallNode.java:86:in `interpret'
> > > > > > from NewlineNode.java:104:in `interpret'
> > > > > > from BlockNode.java:71:in `interpret'
> > > > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > > > from InterpretedMethod.java:169:in `call'
> > > > > > from DefaultMethod.java:191:in `call'
> > > > > > from CachingCallSite.java:302:in `cacheAndCall'
> > > > > > from CachingCallSite.java:144:in `callBlock'
> > > > > > from CachingCallSite.java:148:in `call'
> > > > > > from RubyClass.java:822:in `newInstance'
> > > > > > from RubyClass$i$newInstance.gen:65535:in `call'
> > > > > > from JavaMethod.java:249:in `call'
> > > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > > from CachingCallSite.java:135:in `call'
> > > > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> > > > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> > > > > > from Ruby.java:697:in `runScript'
> > > > > > from Ruby.java:690:in `runScript'
> > > > > > from Ruby.java:597:in `runNormally'
> > > > > > from Ruby.java:446:in `runFromMain'
> > > > > > from Main.java:369:in `doRunFromMain'
> > > > > > from Main.java:258:in `internalRun'
> > > > > > from Main.java:224:in `run'
> > > > > > from Main.java:208:in `run'
> > > > > > from Main.java:188:in `main'
> > > > > >
> > > > >
> > >
> >
>

Re: error on ./hbase shell execution

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Hum.

Not really sure, but maybe you can try to add
ENV['TMPDIR']='/home/sas/hbase-0.98.0-hadoop2/tmp/' into hirb.rb file?


2014-02-18 13:00 GMT-05:00 Upendra Yadav <up...@gmail.com>:

> After setting TMPDIR still same errors are coming... :(
>
>
> On Tue, Feb 18, 2014 at 10:31 PM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > I think it's Ruby using this tmp directory, not HBase.
> >
> > Can you try to setup TMPDIR?
> >
> > export TMPDIR=/home/sas/hbase-0.98.0-hadoop2/tmp/
> >
> >
> > 2014-02-18 11:54 GMT-05:00 Upendra Yadav <up...@gmail.com>:
> > >
> > > do you have any ruby package installed outsite of HBase?
> > > NO
> > >
> > > Also, what's your JDK version?
> > > java version "1.6.0_24"
> > > Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> > > Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
> > >
> > > What's the value of you JAVA_HOME variable?
> > > /home/sas/jdk1.6.0_24
> > >
> > > I searched on google and find : /tmp should not mount with noexec.
> > > but with mount command i got: /dev/mapper/vg000-systmp on /tmp type
> ext4
> > > (rw,noexec,nosuid,nodev,noatime)
> > >
> > > On this machine i have no root permission so i can't change it.
> > > And after that i configured hbase.tmp.dir with value :
> > > /home/sas/hbase-0.98.0-hadoop2/hbase-${user.name}
> > >
> > > but still it's not working
> > >
> > > other problem:
> > > and hbase.rootdir have value :
> > >                 hdfs://172.20.8.20:8020/hbase
> > >
> > > but after starting hbase that hbase
> > directory(/home/sas/hadoop-2.2.0/hbase)
> > > still empty
> > >
> > >
> > >
> > > On Tue, Feb 18, 2014 at 8:38 PM, Jean-Marc Spaggiari <
> > > jean-marc@spaggiari.org> wrote:
> > >
> > > > do you have any ruby package installed outsite of HBase? Also, what's
> > your
> > > > JDK version? What's the value of you JAVA_HOME variable?
> > > >
> > > > JM
> > > >
> > > >
> > > > 2014-02-18 10:05 GMT-05:00 Upendra Yadav <up...@gmail.com>:
> > > >
> > > > > On execution of  ./hbase shell i am getting below error...
> > > > > This is new hdfs-hbase installation...
> > > > >
> > > > >
> > > > > [sas@172.20.8.20~/hbase-0.98.0-hadoop2/bin]$  ./hbase shell
> > > > > 2014-02-18 20:34:36,531 INFO  [main] Configuration.deprecation:
> > > > > hadoop.native.lib is deprecated. Instead, use
> io.native.lib.available
> > > > > java.lang.RuntimeException: java.lang.UnsatisfiedLinkError:
> > > > > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> > > > failed
> > > > > to map segment from shared object: Operation not permitted
> > > > > at
> > > >
> > com.kenai.jffi.Foreign$InValidInstanceHolder.getForeign(Foreign.java:90)
> > > > > at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> > > > > at com.kenai.jffi.Library.openLibrary(Library.java:151)
> > > > > at com.kenai.jffi.Library.getCachedInstance(Library.java:125)
> > > > > at
> > > > >
> > > >
> >
> com.kenai.jaffl.provider.jffi.Library.loadNativeLibraries(Library.java:66)
> > > > > at
> > > > >
> > com.kenai.jaffl.provider.jffi.Library.getNativeLibraries(Library.java:56)
> > > > > at
> > > >
> com.kenai.jaffl.provider.jffi.Library.getSymbolAddress(Library.java:35)
> > > > > at
> > > >
> > com.kenai.jaffl.provider.jffi.Library.findSymbolAddress(Library.java:45)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:188)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:110)
> > > > > at
> > com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
> > > > > at
> > com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
> > > > > at com.kenai.jaffl.Library.loadLibrary(Library.java:76)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:108)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider.getLibC(POSIXFactory.java:112)
> > > > > at
> > org.jruby.ext.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:30)
> > > > > at org.jruby.ext.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:17)
> > > > > at
> > org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:70)
> > > > > at org.jruby.ext.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:31)
> > > > > at org.jruby.ext.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:29)
> > > > > at org.jruby.ext.posix.LazyPOSIX.posix(LazyPOSIX.java:25)
> > > > > at org.jruby.ext.posix.LazyPOSIX.isatty(LazyPOSIX.java:159)
> > > > > at org.jruby.RubyIO.tty_p(RubyIO.java:1897)
> > > > > at org.jruby.RubyIO$i$0$0$tty_p.call(RubyIO$i$0$0$tty_p.gen:65535)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > > > at
> > > > >
> > org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > > > at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)
> > > > > at org.jruby.ast.IfNode.interpret(IfNode.java:111)
> > > > > at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> > > > > at
> > > > >
> > > >
> >
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:183)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > > > at
> > > > >
> > org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > > > at org.jruby.ast.VCallNode.interpret(VCallNode.java:86)
> > > > > at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> > > > > at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
> > > > > at
> > > > >
> > > >
> >
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
> > > > > at
> > > > >
> > org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
> > > > > at org.jruby.RubyClass.newInstance(RubyClass.java:822)
> > > > > at
> > > > >
> > org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > > > at
> > > > >
> > org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.__file__(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.load(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb)
> > > > > at org.jruby.Ruby.runScript(Ruby.java:697)
> > > > > at org.jruby.Ruby.runScript(Ruby.java:690)
> > > > > at org.jruby.Ruby.runNormally(Ruby.java:597)
> > > > > at org.jruby.Ruby.runFromMain(Ruby.java:446)
> > > > > at org.jruby.Main.doRunFromMain(Main.java:369)
> > > > > at org.jruby.Main.internalRun(Main.java:258)
> > > > > at org.jruby.Main.run(Main.java:224)
> > > > > at org.jruby.Main.run(Main.java:208)
> > > > > at org.jruby.Main.main(Main.java:188)
> > > > > Caused by: java.lang.UnsatisfiedLinkError:
> > > > > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> > > > failed
> > > > > to map segment from shared object: Operation not permitted
> > > > > at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> > > > > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
> > > > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
> > > > > at java.lang.Runtime.load0(Runtime.java:770)
> > > > > at java.lang.System.load(System.java:1003)
> > > > > at com.kenai.jffi.Init.loadFromJar(Init.java:164)
> > > > > at com.kenai.jffi.Init.load(Init.java:78)
> > > > > at
> > > >
> > com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
> > > > > at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
> > > > > at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> > > > > at com.kenai.jffi.Internals.getErrnoSaveFunction(Internals.java:44)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> com.kenai.jaffl.provider.jffi.StubCompiler.getErrnoSaveFunction(StubCompiler.java:68)
> > > > > at
> > > > >
> > com.kenai.jaffl.provider.jffi.StubCompiler.<clinit>(StubCompiler.java:18)
> > > > > at
> > > > >
> > > > >
> > > >
> >
> >
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:146)
> > > > > ... 50 more
> > > > > Foreign.java:90:in `getForeign': java.lang.RuntimeException:
> > > > > java.lang.UnsatisfiedLinkError: /tmp/jffi6261999673135703273.tmp:
> > > > > /tmp/jffi6261999673135703273.tmp: failed to map segment from shared
> > > > object:
> > > > > Operation not permitted
> > > > > from Foreign.java:95:in `getInstance'
> > > > > from Library.java:151:in `openLibrary'
> > > > > from Library.java:125:in `getCachedInstance'
> > > > > from Library.java:66:in `loadNativeLibraries'
> > > > > from Library.java:56:in `getNativeLibraries'
> > > > > from Library.java:35:in `getSymbolAddress'
> > > > > from Library.java:45:in `findSymbolAddress'
> > > > > from DefaultInvokerFactory.java:51:in `createInvoker'
> > > > > from Library.java:27:in `getInvoker'
> > > > > from NativeInvocationHandler.java:90:in `createInvoker'
> > > > > from NativeInvocationHandler.java:74:in `getInvoker'
> > > > > from NativeInvocationHandler.java:110:in `invoke'
> > > > > from null:-1:in `isatty'
> > > > > from BaseNativePOSIX.java:300:in `isatty'
> > > > > from LazyPOSIX.java:159:in `isatty'
> > > > > from RubyIO.java:1897:in `tty_p'
> > > > > from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > from CachingCallSite.java:135:in `call'
> > > > > from CallNoArgNode.java:63:in `interpret'
> > > > > from IfNode.java:111:in `interpret'
> > > > > from NewlineNode.java:104:in `interpret'
> > > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > > from InterpretedMethod.java:147:in `call'
> > > > > from DefaultMethod.java:183:in `call'
> > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > from CachingCallSite.java:135:in `call'
> > > > > from VCallNode.java:86:in `interpret'
> > > > > from NewlineNode.java:104:in `interpret'
> > > > > from BlockNode.java:71:in `interpret'
> > > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > > from InterpretedMethod.java:169:in `call'
> > > > > from DefaultMethod.java:191:in `call'
> > > > > from CachingCallSite.java:302:in `cacheAndCall'
> > > > > from CachingCallSite.java:144:in `callBlock'
> > > > > from CachingCallSite.java:148:in `call'
> > > > > from RubyClass.java:822:in `newInstance'
> > > > > from RubyClass$i$newInstance.gen:65535:in `call'
> > > > > from JavaMethod.java:249:in `call'
> > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > from CachingCallSite.java:135:in `call'
> > > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> > > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> > > > > from Ruby.java:697:in `runScript'
> > > > > from Ruby.java:690:in `runScript'
> > > > > from Ruby.java:597:in `runNormally'
> > > > > from Ruby.java:446:in `runFromMain'
> > > > > from Main.java:369:in `doRunFromMain'
> > > > > from Main.java:258:in `internalRun'
> > > > > from Main.java:224:in `run'
> > > > > from Main.java:208:in `run'
> > > > > from Main.java:188:in `main'
> > > > > Caused by:
> > > > > ClassLoader.java:-2:in `load': java.lang.UnsatisfiedLinkError:
> > > > > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> > > > failed
> > > > > to map segment from shared object: Operation not permitted
> > > > > from ClassLoader.java:1803:in `loadLibrary0'
> > > > > from ClassLoader.java:1699:in `loadLibrary'
> > > > > from Runtime.java:770:in `load0'
> > > > > from System.java:1003:in `load'
> > > > > from Init.java:164:in `loadFromJar'
> > > > > from Init.java:78:in `load'
> > > > > from Foreign.java:49:in `getInstanceHolder'
> > > > > from Foreign.java:45:in `<clinit>'
> > > > > from Foreign.java:95:in `getInstance'
> > > > > from Internals.java:44:in `getErrnoSaveFunction'
> > > > > from StubCompiler.java:68:in `getErrnoSaveFunction'
> > > > > from StubCompiler.java:18:in `<clinit>'
> > > > > from AsmLibraryLoader.java:146:in `generateInterfaceImpl'
> > > > > from AsmLibraryLoader.java:110:in `loadLibrary'
> > > > > from Provider.java:31:in `loadLibrary'
> > > > > from Provider.java:25:in `loadLibrary'
> > > > > from Library.java:76:in `loadLibrary'
> > > > > from POSIXFactory.java:108:in `<clinit>'
> > > > > from POSIXFactory.java:112:in `getLibC'
> > > > > from BaseNativePOSIX.java:30:in `<init>'
> > > > > from LinuxPOSIX.java:17:in `<init>'
> > > > > from POSIXFactory.java:70:in `loadLinuxPOSIX'
> > > > > from POSIXFactory.java:31:in `loadPOSIX'
> > > > > from LazyPOSIX.java:29:in `loadPOSIX'
> > > > > from LazyPOSIX.java:25:in `posix'
> > > > > from LazyPOSIX.java:159:in `isatty'
> > > > > from RubyIO.java:1897:in `tty_p'
> > > > > from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > from CachingCallSite.java:135:in `call'
> > > > > from CallNoArgNode.java:63:in `interpret'
> > > > > from IfNode.java:111:in `interpret'
> > > > > from NewlineNode.java:104:in `interpret'
> > > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > > from InterpretedMethod.java:147:in `call'
> > > > > from DefaultMethod.java:183:in `call'
> > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > from CachingCallSite.java:135:in `call'
> > > > > from VCallNode.java:86:in `interpret'
> > > > > from NewlineNode.java:104:in `interpret'
> > > > > from BlockNode.java:71:in `interpret'
> > > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > > from InterpretedMethod.java:169:in `call'
> > > > > from DefaultMethod.java:191:in `call'
> > > > > from CachingCallSite.java:302:in `cacheAndCall'
> > > > > from CachingCallSite.java:144:in `callBlock'
> > > > > from CachingCallSite.java:148:in `call'
> > > > > from RubyClass.java:822:in `newInstance'
> > > > > from RubyClass$i$newInstance.gen:65535:in `call'
> > > > > from JavaMethod.java:249:in `call'
> > > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > > from CachingCallSite.java:135:in `call'
> > > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> > > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> > > > > from Ruby.java:697:in `runScript'
> > > > > from Ruby.java:690:in `runScript'
> > > > > from Ruby.java:597:in `runNormally'
> > > > > from Ruby.java:446:in `runFromMain'
> > > > > from Main.java:369:in `doRunFromMain'
> > > > > from Main.java:258:in `internalRun'
> > > > > from Main.java:224:in `run'
> > > > > from Main.java:208:in `run'
> > > > > from Main.java:188:in `main'
> > > > >
> > > >
> >
>

Re: error on ./hbase shell execution

Posted by Upendra Yadav <up...@gmail.com>.
After setting TMPDIR still same errors are coming... :(


On Tue, Feb 18, 2014 at 10:31 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> I think it's Ruby using this tmp directory, not HBase.
>
> Can you try to setup TMPDIR?
>
> export TMPDIR=/home/sas/hbase-0.98.0-hadoop2/tmp/
>
>
> 2014-02-18 11:54 GMT-05:00 Upendra Yadav <up...@gmail.com>:
> >
> > do you have any ruby package installed outsite of HBase?
> > NO
> >
> > Also, what's your JDK version?
> > java version "1.6.0_24"
> > Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> > Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
> >
> > What's the value of you JAVA_HOME variable?
> > /home/sas/jdk1.6.0_24
> >
> > I searched on google and find : /tmp should not mount with noexec.
> > but with mount command i got: /dev/mapper/vg000-systmp on /tmp type ext4
> > (rw,noexec,nosuid,nodev,noatime)
> >
> > On this machine i have no root permission so i can't change it.
> > And after that i configured hbase.tmp.dir with value :
> > /home/sas/hbase-0.98.0-hadoop2/hbase-${user.name}
> >
> > but still it's not working
> >
> > other problem:
> > and hbase.rootdir have value :
> >                 hdfs://172.20.8.20:8020/hbase
> >
> > but after starting hbase that hbase
> directory(/home/sas/hadoop-2.2.0/hbase)
> > still empty
> >
> >
> >
> > On Tue, Feb 18, 2014 at 8:38 PM, Jean-Marc Spaggiari <
> > jean-marc@spaggiari.org> wrote:
> >
> > > do you have any ruby package installed outsite of HBase? Also, what's
> your
> > > JDK version? What's the value of you JAVA_HOME variable?
> > >
> > > JM
> > >
> > >
> > > 2014-02-18 10:05 GMT-05:00 Upendra Yadav <up...@gmail.com>:
> > >
> > > > On execution of  ./hbase shell i am getting below error...
> > > > This is new hdfs-hbase installation...
> > > >
> > > >
> > > > [sas@172.20.8.20~/hbase-0.98.0-hadoop2/bin]$  ./hbase shell
> > > > 2014-02-18 20:34:36,531 INFO  [main] Configuration.deprecation:
> > > > hadoop.native.lib is deprecated. Instead, use io.native.lib.available
> > > > java.lang.RuntimeException: java.lang.UnsatisfiedLinkError:
> > > > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> > > failed
> > > > to map segment from shared object: Operation not permitted
> > > > at
> > >
> com.kenai.jffi.Foreign$InValidInstanceHolder.getForeign(Foreign.java:90)
> > > > at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> > > > at com.kenai.jffi.Library.openLibrary(Library.java:151)
> > > > at com.kenai.jffi.Library.getCachedInstance(Library.java:125)
> > > > at
> > > >
> > >
> com.kenai.jaffl.provider.jffi.Library.loadNativeLibraries(Library.java:66)
> > > > at
> > > >
> com.kenai.jaffl.provider.jffi.Library.getNativeLibraries(Library.java:56)
> > > > at
> > > com.kenai.jaffl.provider.jffi.Library.getSymbolAddress(Library.java:35)
> > > > at
> > >
> com.kenai.jaffl.provider.jffi.Library.findSymbolAddress(Library.java:45)
> > > > at
> > > >
> > > >
> > >
>
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:188)
> > > > at
> > > >
> > > >
> > >
>
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:110)
> > > > at
> com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
> > > > at
> com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
> > > > at com.kenai.jaffl.Library.loadLibrary(Library.java:76)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:108)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider.getLibC(POSIXFactory.java:112)
> > > > at
> org.jruby.ext.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:30)
> > > > at org.jruby.ext.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:17)
> > > > at
> org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:70)
> > > > at org.jruby.ext.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:31)
> > > > at org.jruby.ext.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:29)
> > > > at org.jruby.ext.posix.LazyPOSIX.posix(LazyPOSIX.java:25)
> > > > at org.jruby.ext.posix.LazyPOSIX.isatty(LazyPOSIX.java:159)
> > > > at org.jruby.RubyIO.tty_p(RubyIO.java:1897)
> > > > at org.jruby.RubyIO$i$0$0$tty_p.call(RubyIO$i$0$0$tty_p.gen:65535)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > > at
> > > >
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > > at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)
> > > > at org.jruby.ast.IfNode.interpret(IfNode.java:111)
> > > > at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> > > > at
> > > >
> > >
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:183)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > > at
> > > >
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > > at org.jruby.ast.VCallNode.interpret(VCallNode.java:86)
> > > > at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> > > > at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
> > > > at
> > > >
> > >
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
> > > > at
> > > >
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
> > > > at org.jruby.RubyClass.newInstance(RubyClass.java:822)
> > > > at
> > > >
> org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)
> > > > at
> > > >
> > > >
> > >
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > > at
> > > >
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > > at
> > > >
> > > >
> > >
>
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.__file__(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110)
> > > > at
> > > >
> > > >
> > >
>
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.load(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb)
> > > > at org.jruby.Ruby.runScript(Ruby.java:697)
> > > > at org.jruby.Ruby.runScript(Ruby.java:690)
> > > > at org.jruby.Ruby.runNormally(Ruby.java:597)
> > > > at org.jruby.Ruby.runFromMain(Ruby.java:446)
> > > > at org.jruby.Main.doRunFromMain(Main.java:369)
> > > > at org.jruby.Main.internalRun(Main.java:258)
> > > > at org.jruby.Main.run(Main.java:224)
> > > > at org.jruby.Main.run(Main.java:208)
> > > > at org.jruby.Main.main(Main.java:188)
> > > > Caused by: java.lang.UnsatisfiedLinkError:
> > > > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> > > failed
> > > > to map segment from shared object: Operation not permitted
> > > > at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> > > > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
> > > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
> > > > at java.lang.Runtime.load0(Runtime.java:770)
> > > > at java.lang.System.load(System.java:1003)
> > > > at com.kenai.jffi.Init.loadFromJar(Init.java:164)
> > > > at com.kenai.jffi.Init.load(Init.java:78)
> > > > at
> > >
> com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
> > > > at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
> > > > at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> > > > at com.kenai.jffi.Internals.getErrnoSaveFunction(Internals.java:44)
> > > > at
> > > >
> > > >
> > >
>
> com.kenai.jaffl.provider.jffi.StubCompiler.getErrnoSaveFunction(StubCompiler.java:68)
> > > > at
> > > >
> com.kenai.jaffl.provider.jffi.StubCompiler.<clinit>(StubCompiler.java:18)
> > > > at
> > > >
> > > >
> > >
>
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:146)
> > > > ... 50 more
> > > > Foreign.java:90:in `getForeign': java.lang.RuntimeException:
> > > > java.lang.UnsatisfiedLinkError: /tmp/jffi6261999673135703273.tmp:
> > > > /tmp/jffi6261999673135703273.tmp: failed to map segment from shared
> > > object:
> > > > Operation not permitted
> > > > from Foreign.java:95:in `getInstance'
> > > > from Library.java:151:in `openLibrary'
> > > > from Library.java:125:in `getCachedInstance'
> > > > from Library.java:66:in `loadNativeLibraries'
> > > > from Library.java:56:in `getNativeLibraries'
> > > > from Library.java:35:in `getSymbolAddress'
> > > > from Library.java:45:in `findSymbolAddress'
> > > > from DefaultInvokerFactory.java:51:in `createInvoker'
> > > > from Library.java:27:in `getInvoker'
> > > > from NativeInvocationHandler.java:90:in `createInvoker'
> > > > from NativeInvocationHandler.java:74:in `getInvoker'
> > > > from NativeInvocationHandler.java:110:in `invoke'
> > > > from null:-1:in `isatty'
> > > > from BaseNativePOSIX.java:300:in `isatty'
> > > > from LazyPOSIX.java:159:in `isatty'
> > > > from RubyIO.java:1897:in `tty_p'
> > > > from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > from CachingCallSite.java:135:in `call'
> > > > from CallNoArgNode.java:63:in `interpret'
> > > > from IfNode.java:111:in `interpret'
> > > > from NewlineNode.java:104:in `interpret'
> > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > from InterpretedMethod.java:147:in `call'
> > > > from DefaultMethod.java:183:in `call'
> > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > from CachingCallSite.java:135:in `call'
> > > > from VCallNode.java:86:in `interpret'
> > > > from NewlineNode.java:104:in `interpret'
> > > > from BlockNode.java:71:in `interpret'
> > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > from InterpretedMethod.java:169:in `call'
> > > > from DefaultMethod.java:191:in `call'
> > > > from CachingCallSite.java:302:in `cacheAndCall'
> > > > from CachingCallSite.java:144:in `callBlock'
> > > > from CachingCallSite.java:148:in `call'
> > > > from RubyClass.java:822:in `newInstance'
> > > > from RubyClass$i$newInstance.gen:65535:in `call'
> > > > from JavaMethod.java:249:in `call'
> > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > from CachingCallSite.java:135:in `call'
> > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> > > > from Ruby.java:697:in `runScript'
> > > > from Ruby.java:690:in `runScript'
> > > > from Ruby.java:597:in `runNormally'
> > > > from Ruby.java:446:in `runFromMain'
> > > > from Main.java:369:in `doRunFromMain'
> > > > from Main.java:258:in `internalRun'
> > > > from Main.java:224:in `run'
> > > > from Main.java:208:in `run'
> > > > from Main.java:188:in `main'
> > > > Caused by:
> > > > ClassLoader.java:-2:in `load': java.lang.UnsatisfiedLinkError:
> > > > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> > > failed
> > > > to map segment from shared object: Operation not permitted
> > > > from ClassLoader.java:1803:in `loadLibrary0'
> > > > from ClassLoader.java:1699:in `loadLibrary'
> > > > from Runtime.java:770:in `load0'
> > > > from System.java:1003:in `load'
> > > > from Init.java:164:in `loadFromJar'
> > > > from Init.java:78:in `load'
> > > > from Foreign.java:49:in `getInstanceHolder'
> > > > from Foreign.java:45:in `<clinit>'
> > > > from Foreign.java:95:in `getInstance'
> > > > from Internals.java:44:in `getErrnoSaveFunction'
> > > > from StubCompiler.java:68:in `getErrnoSaveFunction'
> > > > from StubCompiler.java:18:in `<clinit>'
> > > > from AsmLibraryLoader.java:146:in `generateInterfaceImpl'
> > > > from AsmLibraryLoader.java:110:in `loadLibrary'
> > > > from Provider.java:31:in `loadLibrary'
> > > > from Provider.java:25:in `loadLibrary'
> > > > from Library.java:76:in `loadLibrary'
> > > > from POSIXFactory.java:108:in `<clinit>'
> > > > from POSIXFactory.java:112:in `getLibC'
> > > > from BaseNativePOSIX.java:30:in `<init>'
> > > > from LinuxPOSIX.java:17:in `<init>'
> > > > from POSIXFactory.java:70:in `loadLinuxPOSIX'
> > > > from POSIXFactory.java:31:in `loadPOSIX'
> > > > from LazyPOSIX.java:29:in `loadPOSIX'
> > > > from LazyPOSIX.java:25:in `posix'
> > > > from LazyPOSIX.java:159:in `isatty'
> > > > from RubyIO.java:1897:in `tty_p'
> > > > from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > from CachingCallSite.java:135:in `call'
> > > > from CallNoArgNode.java:63:in `interpret'
> > > > from IfNode.java:111:in `interpret'
> > > > from NewlineNode.java:104:in `interpret'
> > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > from InterpretedMethod.java:147:in `call'
> > > > from DefaultMethod.java:183:in `call'
> > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > from CachingCallSite.java:135:in `call'
> > > > from VCallNode.java:86:in `interpret'
> > > > from NewlineNode.java:104:in `interpret'
> > > > from BlockNode.java:71:in `interpret'
> > > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > > from InterpretedMethod.java:169:in `call'
> > > > from DefaultMethod.java:191:in `call'
> > > > from CachingCallSite.java:302:in `cacheAndCall'
> > > > from CachingCallSite.java:144:in `callBlock'
> > > > from CachingCallSite.java:148:in `call'
> > > > from RubyClass.java:822:in `newInstance'
> > > > from RubyClass$i$newInstance.gen:65535:in `call'
> > > > from JavaMethod.java:249:in `call'
> > > > from CachingCallSite.java:292:in `cacheAndCall'
> > > > from CachingCallSite.java:135:in `call'
> > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> > > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> > > > from Ruby.java:697:in `runScript'
> > > > from Ruby.java:690:in `runScript'
> > > > from Ruby.java:597:in `runNormally'
> > > > from Ruby.java:446:in `runFromMain'
> > > > from Main.java:369:in `doRunFromMain'
> > > > from Main.java:258:in `internalRun'
> > > > from Main.java:224:in `run'
> > > > from Main.java:208:in `run'
> > > > from Main.java:188:in `main'
> > > >
> > >
>

Re: error on ./hbase shell execution

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
I think it's Ruby using this tmp directory, not HBase.

Can you try to setup TMPDIR?

export TMPDIR=/home/sas/hbase-0.98.0-hadoop2/tmp/


2014-02-18 11:54 GMT-05:00 Upendra Yadav <up...@gmail.com>:
>
> do you have any ruby package installed outsite of HBase?
> NO
>
> Also, what's your JDK version?
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>
> What's the value of you JAVA_HOME variable?
> /home/sas/jdk1.6.0_24
>
> I searched on google and find : /tmp should not mount with noexec.
> but with mount command i got: /dev/mapper/vg000-systmp on /tmp type ext4
> (rw,noexec,nosuid,nodev,noatime)
>
> On this machine i have no root permission so i can't change it.
> And after that i configured hbase.tmp.dir with value :
> /home/sas/hbase-0.98.0-hadoop2/hbase-${user.name}
>
> but still it's not working
>
> other problem:
> and hbase.rootdir have value :
>                 hdfs://172.20.8.20:8020/hbase
>
> but after starting hbase that hbase
directory(/home/sas/hadoop-2.2.0/hbase)
> still empty
>
>
>
> On Tue, Feb 18, 2014 at 8:38 PM, Jean-Marc Spaggiari <
> jean-marc@spaggiari.org> wrote:
>
> > do you have any ruby package installed outsite of HBase? Also, what's
your
> > JDK version? What's the value of you JAVA_HOME variable?
> >
> > JM
> >
> >
> > 2014-02-18 10:05 GMT-05:00 Upendra Yadav <up...@gmail.com>:
> >
> > > On execution of  ./hbase shell i am getting below error...
> > > This is new hdfs-hbase installation...
> > >
> > >
> > > [sas@172.20.8.20~/hbase-0.98.0-hadoop2/bin]$  ./hbase shell
> > > 2014-02-18 20:34:36,531 INFO  [main] Configuration.deprecation:
> > > hadoop.native.lib is deprecated. Instead, use io.native.lib.available
> > > java.lang.RuntimeException: java.lang.UnsatisfiedLinkError:
> > > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> > failed
> > > to map segment from shared object: Operation not permitted
> > > at
> > com.kenai.jffi.Foreign$InValidInstanceHolder.getForeign(Foreign.java:90)
> > > at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> > > at com.kenai.jffi.Library.openLibrary(Library.java:151)
> > > at com.kenai.jffi.Library.getCachedInstance(Library.java:125)
> > > at
> > >
> >
com.kenai.jaffl.provider.jffi.Library.loadNativeLibraries(Library.java:66)
> > > at
> > >
com.kenai.jaffl.provider.jffi.Library.getNativeLibraries(Library.java:56)
> > > at
> > com.kenai.jaffl.provider.jffi.Library.getSymbolAddress(Library.java:35)
> > > at
> > com.kenai.jaffl.provider.jffi.Library.findSymbolAddress(Library.java:45)
> > > at
> > >
> > >
> >
com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:188)
> > > at
> > >
> > >
> >
com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:110)
> > > at
com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
> > > at
com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
> > > at com.kenai.jaffl.Library.loadLibrary(Library.java:76)
> > > at
> > >
> > >
> >
org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:108)
> > > at
> > >
> > >
> >
org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider.getLibC(POSIXFactory.java:112)
> > > at org.jruby.ext.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:30)
> > > at org.jruby.ext.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:17)
> > > at
org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:70)
> > > at org.jruby.ext.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:31)
> > > at org.jruby.ext.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:29)
> > > at org.jruby.ext.posix.LazyPOSIX.posix(LazyPOSIX.java:25)
> > > at org.jruby.ext.posix.LazyPOSIX.isatty(LazyPOSIX.java:159)
> > > at org.jruby.RubyIO.tty_p(RubyIO.java:1897)
> > > at org.jruby.RubyIO$i$0$0$tty_p.call(RubyIO$i$0$0$tty_p.gen:65535)
> > > at
> > >
> > >
> >
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > at
> > >
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)
> > > at org.jruby.ast.IfNode.interpret(IfNode.java:111)
> > > at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> > > at
> > >
> >
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> > > at
> > >
> > >
> >
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
> > > at
> > >
> > >
> >
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:183)
> > > at
> > >
> > >
> >
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > at
> > >
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > at org.jruby.ast.VCallNode.interpret(VCallNode.java:86)
> > > at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> > > at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
> > > at
> > >
> >
org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> > > at
> > >
> > >
> >
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
> > > at
> > >
> > >
> >
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
> > > at
> > >
> > >
> >
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
> > > at
> > >
> > >
> >
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
> > > at
> > >
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
> > > at org.jruby.RubyClass.newInstance(RubyClass.java:822)
> > > at
> > >
org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
> > > at
> > >
> > >
> >
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)
> > > at
> > >
> > >
> >
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > > at
> > >
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > > at
> > >
> > >
> >
home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.__file__(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110)
> > > at
> > >
> > >
> >
home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.load(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb)
> > > at org.jruby.Ruby.runScript(Ruby.java:697)
> > > at org.jruby.Ruby.runScript(Ruby.java:690)
> > > at org.jruby.Ruby.runNormally(Ruby.java:597)
> > > at org.jruby.Ruby.runFromMain(Ruby.java:446)
> > > at org.jruby.Main.doRunFromMain(Main.java:369)
> > > at org.jruby.Main.internalRun(Main.java:258)
> > > at org.jruby.Main.run(Main.java:224)
> > > at org.jruby.Main.run(Main.java:208)
> > > at org.jruby.Main.main(Main.java:188)
> > > Caused by: java.lang.UnsatisfiedLinkError:
> > > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> > failed
> > > to map segment from shared object: Operation not permitted
> > > at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> > > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
> > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
> > > at java.lang.Runtime.load0(Runtime.java:770)
> > > at java.lang.System.load(System.java:1003)
> > > at com.kenai.jffi.Init.loadFromJar(Init.java:164)
> > > at com.kenai.jffi.Init.load(Init.java:78)
> > > at
> > com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
> > > at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
> > > at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> > > at com.kenai.jffi.Internals.getErrnoSaveFunction(Internals.java:44)
> > > at
> > >
> > >
> >
com.kenai.jaffl.provider.jffi.StubCompiler.getErrnoSaveFunction(StubCompiler.java:68)
> > > at
> > >
com.kenai.jaffl.provider.jffi.StubCompiler.<clinit>(StubCompiler.java:18)
> > > at
> > >
> > >
> >
com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:146)
> > > ... 50 more
> > > Foreign.java:90:in `getForeign': java.lang.RuntimeException:
> > > java.lang.UnsatisfiedLinkError: /tmp/jffi6261999673135703273.tmp:
> > > /tmp/jffi6261999673135703273.tmp: failed to map segment from shared
> > object:
> > > Operation not permitted
> > > from Foreign.java:95:in `getInstance'
> > > from Library.java:151:in `openLibrary'
> > > from Library.java:125:in `getCachedInstance'
> > > from Library.java:66:in `loadNativeLibraries'
> > > from Library.java:56:in `getNativeLibraries'
> > > from Library.java:35:in `getSymbolAddress'
> > > from Library.java:45:in `findSymbolAddress'
> > > from DefaultInvokerFactory.java:51:in `createInvoker'
> > > from Library.java:27:in `getInvoker'
> > > from NativeInvocationHandler.java:90:in `createInvoker'
> > > from NativeInvocationHandler.java:74:in `getInvoker'
> > > from NativeInvocationHandler.java:110:in `invoke'
> > > from null:-1:in `isatty'
> > > from BaseNativePOSIX.java:300:in `isatty'
> > > from LazyPOSIX.java:159:in `isatty'
> > > from RubyIO.java:1897:in `tty_p'
> > > from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> > > from CachingCallSite.java:292:in `cacheAndCall'
> > > from CachingCallSite.java:135:in `call'
> > > from CallNoArgNode.java:63:in `interpret'
> > > from IfNode.java:111:in `interpret'
> > > from NewlineNode.java:104:in `interpret'
> > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > from InterpretedMethod.java:147:in `call'
> > > from DefaultMethod.java:183:in `call'
> > > from CachingCallSite.java:292:in `cacheAndCall'
> > > from CachingCallSite.java:135:in `call'
> > > from VCallNode.java:86:in `interpret'
> > > from NewlineNode.java:104:in `interpret'
> > > from BlockNode.java:71:in `interpret'
> > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > from InterpretedMethod.java:169:in `call'
> > > from DefaultMethod.java:191:in `call'
> > > from CachingCallSite.java:302:in `cacheAndCall'
> > > from CachingCallSite.java:144:in `callBlock'
> > > from CachingCallSite.java:148:in `call'
> > > from RubyClass.java:822:in `newInstance'
> > > from RubyClass$i$newInstance.gen:65535:in `call'
> > > from JavaMethod.java:249:in `call'
> > > from CachingCallSite.java:292:in `cacheAndCall'
> > > from CachingCallSite.java:135:in `call'
> > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> > > from Ruby.java:697:in `runScript'
> > > from Ruby.java:690:in `runScript'
> > > from Ruby.java:597:in `runNormally'
> > > from Ruby.java:446:in `runFromMain'
> > > from Main.java:369:in `doRunFromMain'
> > > from Main.java:258:in `internalRun'
> > > from Main.java:224:in `run'
> > > from Main.java:208:in `run'
> > > from Main.java:188:in `main'
> > > Caused by:
> > > ClassLoader.java:-2:in `load': java.lang.UnsatisfiedLinkError:
> > > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> > failed
> > > to map segment from shared object: Operation not permitted
> > > from ClassLoader.java:1803:in `loadLibrary0'
> > > from ClassLoader.java:1699:in `loadLibrary'
> > > from Runtime.java:770:in `load0'
> > > from System.java:1003:in `load'
> > > from Init.java:164:in `loadFromJar'
> > > from Init.java:78:in `load'
> > > from Foreign.java:49:in `getInstanceHolder'
> > > from Foreign.java:45:in `<clinit>'
> > > from Foreign.java:95:in `getInstance'
> > > from Internals.java:44:in `getErrnoSaveFunction'
> > > from StubCompiler.java:68:in `getErrnoSaveFunction'
> > > from StubCompiler.java:18:in `<clinit>'
> > > from AsmLibraryLoader.java:146:in `generateInterfaceImpl'
> > > from AsmLibraryLoader.java:110:in `loadLibrary'
> > > from Provider.java:31:in `loadLibrary'
> > > from Provider.java:25:in `loadLibrary'
> > > from Library.java:76:in `loadLibrary'
> > > from POSIXFactory.java:108:in `<clinit>'
> > > from POSIXFactory.java:112:in `getLibC'
> > > from BaseNativePOSIX.java:30:in `<init>'
> > > from LinuxPOSIX.java:17:in `<init>'
> > > from POSIXFactory.java:70:in `loadLinuxPOSIX'
> > > from POSIXFactory.java:31:in `loadPOSIX'
> > > from LazyPOSIX.java:29:in `loadPOSIX'
> > > from LazyPOSIX.java:25:in `posix'
> > > from LazyPOSIX.java:159:in `isatty'
> > > from RubyIO.java:1897:in `tty_p'
> > > from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> > > from CachingCallSite.java:292:in `cacheAndCall'
> > > from CachingCallSite.java:135:in `call'
> > > from CallNoArgNode.java:63:in `interpret'
> > > from IfNode.java:111:in `interpret'
> > > from NewlineNode.java:104:in `interpret'
> > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > from InterpretedMethod.java:147:in `call'
> > > from DefaultMethod.java:183:in `call'
> > > from CachingCallSite.java:292:in `cacheAndCall'
> > > from CachingCallSite.java:135:in `call'
> > > from VCallNode.java:86:in `interpret'
> > > from NewlineNode.java:104:in `interpret'
> > > from BlockNode.java:71:in `interpret'
> > > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > > from InterpretedMethod.java:169:in `call'
> > > from DefaultMethod.java:191:in `call'
> > > from CachingCallSite.java:302:in `cacheAndCall'
> > > from CachingCallSite.java:144:in `callBlock'
> > > from CachingCallSite.java:148:in `call'
> > > from RubyClass.java:822:in `newInstance'
> > > from RubyClass$i$newInstance.gen:65535:in `call'
> > > from JavaMethod.java:249:in `call'
> > > from CachingCallSite.java:292:in `cacheAndCall'
> > > from CachingCallSite.java:135:in `call'
> > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> > > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> > > from Ruby.java:697:in `runScript'
> > > from Ruby.java:690:in `runScript'
> > > from Ruby.java:597:in `runNormally'
> > > from Ruby.java:446:in `runFromMain'
> > > from Main.java:369:in `doRunFromMain'
> > > from Main.java:258:in `internalRun'
> > > from Main.java:224:in `run'
> > > from Main.java:208:in `run'
> > > from Main.java:188:in `main'
> > >
> >

Re: error on ./hbase shell execution

Posted by Upendra Yadav <up...@gmail.com>.
do you have any ruby package installed outsite of HBase?
NO

Also, what's your JDK version?
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

What's the value of you JAVA_HOME variable?
/home/sas/jdk1.6.0_24

I searched on google and find : /tmp should not mount with noexec.
but with mount command i got: /dev/mapper/vg000-systmp on /tmp type ext4
(rw,noexec,nosuid,nodev,noatime)

On this machine i have no root permission so i can't change it.
And after that i configured hbase.tmp.dir with value :
/home/sas/hbase-0.98.0-hadoop2/hbase-${user.name}

but still it's not working

other problem:
and hbase.rootdir have value :
                hdfs://172.20.8.20:8020/hbase

but after starting hbase that hbase directory(/home/sas/hadoop-2.2.0/hbase)
still empty



On Tue, Feb 18, 2014 at 8:38 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> do you have any ruby package installed outsite of HBase? Also, what's your
> JDK version? What's the value of you JAVA_HOME variable?
>
> JM
>
>
> 2014-02-18 10:05 GMT-05:00 Upendra Yadav <up...@gmail.com>:
>
> > On execution of  ./hbase shell i am getting below error...
> > This is new hdfs-hbase installation...
> >
> >
> > [sas@172.20.8.20~/hbase-0.98.0-hadoop2/bin]$  ./hbase shell
> > 2014-02-18 20:34:36,531 INFO  [main] Configuration.deprecation:
> > hadoop.native.lib is deprecated. Instead, use io.native.lib.available
> > java.lang.RuntimeException: java.lang.UnsatisfiedLinkError:
> > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> failed
> > to map segment from shared object: Operation not permitted
> > at
> com.kenai.jffi.Foreign$InValidInstanceHolder.getForeign(Foreign.java:90)
> > at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> > at com.kenai.jffi.Library.openLibrary(Library.java:151)
> > at com.kenai.jffi.Library.getCachedInstance(Library.java:125)
> > at
> >
> com.kenai.jaffl.provider.jffi.Library.loadNativeLibraries(Library.java:66)
> > at
> > com.kenai.jaffl.provider.jffi.Library.getNativeLibraries(Library.java:56)
> > at
> com.kenai.jaffl.provider.jffi.Library.getSymbolAddress(Library.java:35)
> > at
> com.kenai.jaffl.provider.jffi.Library.findSymbolAddress(Library.java:45)
> > at
> >
> >
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:188)
> > at
> >
> >
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:110)
> > at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
> > at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
> > at com.kenai.jaffl.Library.loadLibrary(Library.java:76)
> > at
> >
> >
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:108)
> > at
> >
> >
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider.getLibC(POSIXFactory.java:112)
> > at org.jruby.ext.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:30)
> > at org.jruby.ext.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:17)
> > at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:70)
> > at org.jruby.ext.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:31)
> > at org.jruby.ext.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:29)
> > at org.jruby.ext.posix.LazyPOSIX.posix(LazyPOSIX.java:25)
> > at org.jruby.ext.posix.LazyPOSIX.isatty(LazyPOSIX.java:159)
> > at org.jruby.RubyIO.tty_p(RubyIO.java:1897)
> > at org.jruby.RubyIO$i$0$0$tty_p.call(RubyIO$i$0$0$tty_p.gen:65535)
> > at
> >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > at
> > org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)
> > at org.jruby.ast.IfNode.interpret(IfNode.java:111)
> > at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> > at
> >
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> > at
> >
> >
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
> > at
> >
> >
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:183)
> > at
> >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > at
> > org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > at org.jruby.ast.VCallNode.interpret(VCallNode.java:86)
> > at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> > at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
> > at
> >
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> > at
> >
> >
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
> > at
> >
> >
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
> > at
> >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
> > at
> >
> >
> org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
> > at
> > org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
> > at org.jruby.RubyClass.newInstance(RubyClass.java:822)
> > at
> > org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
> > at
> >
> >
> org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)
> > at
> >
> >
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> > at
> > org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> > at
> >
> >
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.__file__(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110)
> > at
> >
> >
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.load(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb)
> > at org.jruby.Ruby.runScript(Ruby.java:697)
> > at org.jruby.Ruby.runScript(Ruby.java:690)
> > at org.jruby.Ruby.runNormally(Ruby.java:597)
> > at org.jruby.Ruby.runFromMain(Ruby.java:446)
> > at org.jruby.Main.doRunFromMain(Main.java:369)
> > at org.jruby.Main.internalRun(Main.java:258)
> > at org.jruby.Main.run(Main.java:224)
> > at org.jruby.Main.run(Main.java:208)
> > at org.jruby.Main.main(Main.java:188)
> > Caused by: java.lang.UnsatisfiedLinkError:
> > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> failed
> > to map segment from shared object: Operation not permitted
> > at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
> > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
> > at java.lang.Runtime.load0(Runtime.java:770)
> > at java.lang.System.load(System.java:1003)
> > at com.kenai.jffi.Init.loadFromJar(Init.java:164)
> > at com.kenai.jffi.Init.load(Init.java:78)
> > at
> com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
> > at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
> > at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> > at com.kenai.jffi.Internals.getErrnoSaveFunction(Internals.java:44)
> > at
> >
> >
> com.kenai.jaffl.provider.jffi.StubCompiler.getErrnoSaveFunction(StubCompiler.java:68)
> > at
> > com.kenai.jaffl.provider.jffi.StubCompiler.<clinit>(StubCompiler.java:18)
> > at
> >
> >
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:146)
> > ... 50 more
> > Foreign.java:90:in `getForeign': java.lang.RuntimeException:
> > java.lang.UnsatisfiedLinkError: /tmp/jffi6261999673135703273.tmp:
> > /tmp/jffi6261999673135703273.tmp: failed to map segment from shared
> object:
> > Operation not permitted
> > from Foreign.java:95:in `getInstance'
> > from Library.java:151:in `openLibrary'
> > from Library.java:125:in `getCachedInstance'
> > from Library.java:66:in `loadNativeLibraries'
> > from Library.java:56:in `getNativeLibraries'
> > from Library.java:35:in `getSymbolAddress'
> > from Library.java:45:in `findSymbolAddress'
> > from DefaultInvokerFactory.java:51:in `createInvoker'
> > from Library.java:27:in `getInvoker'
> > from NativeInvocationHandler.java:90:in `createInvoker'
> > from NativeInvocationHandler.java:74:in `getInvoker'
> > from NativeInvocationHandler.java:110:in `invoke'
> > from null:-1:in `isatty'
> > from BaseNativePOSIX.java:300:in `isatty'
> > from LazyPOSIX.java:159:in `isatty'
> > from RubyIO.java:1897:in `tty_p'
> > from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> > from CachingCallSite.java:292:in `cacheAndCall'
> > from CachingCallSite.java:135:in `call'
> > from CallNoArgNode.java:63:in `interpret'
> > from IfNode.java:111:in `interpret'
> > from NewlineNode.java:104:in `interpret'
> > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > from InterpretedMethod.java:147:in `call'
> > from DefaultMethod.java:183:in `call'
> > from CachingCallSite.java:292:in `cacheAndCall'
> > from CachingCallSite.java:135:in `call'
> > from VCallNode.java:86:in `interpret'
> > from NewlineNode.java:104:in `interpret'
> > from BlockNode.java:71:in `interpret'
> > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > from InterpretedMethod.java:169:in `call'
> > from DefaultMethod.java:191:in `call'
> > from CachingCallSite.java:302:in `cacheAndCall'
> > from CachingCallSite.java:144:in `callBlock'
> > from CachingCallSite.java:148:in `call'
> > from RubyClass.java:822:in `newInstance'
> > from RubyClass$i$newInstance.gen:65535:in `call'
> > from JavaMethod.java:249:in `call'
> > from CachingCallSite.java:292:in `cacheAndCall'
> > from CachingCallSite.java:135:in `call'
> > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> > from Ruby.java:697:in `runScript'
> > from Ruby.java:690:in `runScript'
> > from Ruby.java:597:in `runNormally'
> > from Ruby.java:446:in `runFromMain'
> > from Main.java:369:in `doRunFromMain'
> > from Main.java:258:in `internalRun'
> > from Main.java:224:in `run'
> > from Main.java:208:in `run'
> > from Main.java:188:in `main'
> > Caused by:
> > ClassLoader.java:-2:in `load': java.lang.UnsatisfiedLinkError:
> > /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp:
> failed
> > to map segment from shared object: Operation not permitted
> > from ClassLoader.java:1803:in `loadLibrary0'
> > from ClassLoader.java:1699:in `loadLibrary'
> > from Runtime.java:770:in `load0'
> > from System.java:1003:in `load'
> > from Init.java:164:in `loadFromJar'
> > from Init.java:78:in `load'
> > from Foreign.java:49:in `getInstanceHolder'
> > from Foreign.java:45:in `<clinit>'
> > from Foreign.java:95:in `getInstance'
> > from Internals.java:44:in `getErrnoSaveFunction'
> > from StubCompiler.java:68:in `getErrnoSaveFunction'
> > from StubCompiler.java:18:in `<clinit>'
> > from AsmLibraryLoader.java:146:in `generateInterfaceImpl'
> > from AsmLibraryLoader.java:110:in `loadLibrary'
> > from Provider.java:31:in `loadLibrary'
> > from Provider.java:25:in `loadLibrary'
> > from Library.java:76:in `loadLibrary'
> > from POSIXFactory.java:108:in `<clinit>'
> > from POSIXFactory.java:112:in `getLibC'
> > from BaseNativePOSIX.java:30:in `<init>'
> > from LinuxPOSIX.java:17:in `<init>'
> > from POSIXFactory.java:70:in `loadLinuxPOSIX'
> > from POSIXFactory.java:31:in `loadPOSIX'
> > from LazyPOSIX.java:29:in `loadPOSIX'
> > from LazyPOSIX.java:25:in `posix'
> > from LazyPOSIX.java:159:in `isatty'
> > from RubyIO.java:1897:in `tty_p'
> > from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> > from CachingCallSite.java:292:in `cacheAndCall'
> > from CachingCallSite.java:135:in `call'
> > from CallNoArgNode.java:63:in `interpret'
> > from IfNode.java:111:in `interpret'
> > from NewlineNode.java:104:in `interpret'
> > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > from InterpretedMethod.java:147:in `call'
> > from DefaultMethod.java:183:in `call'
> > from CachingCallSite.java:292:in `cacheAndCall'
> > from CachingCallSite.java:135:in `call'
> > from VCallNode.java:86:in `interpret'
> > from NewlineNode.java:104:in `interpret'
> > from BlockNode.java:71:in `interpret'
> > from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> > from InterpretedMethod.java:169:in `call'
> > from DefaultMethod.java:191:in `call'
> > from CachingCallSite.java:302:in `cacheAndCall'
> > from CachingCallSite.java:144:in `callBlock'
> > from CachingCallSite.java:148:in `call'
> > from RubyClass.java:822:in `newInstance'
> > from RubyClass$i$newInstance.gen:65535:in `call'
> > from JavaMethod.java:249:in `call'
> > from CachingCallSite.java:292:in `cacheAndCall'
> > from CachingCallSite.java:135:in `call'
> > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> > from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> > from Ruby.java:697:in `runScript'
> > from Ruby.java:690:in `runScript'
> > from Ruby.java:597:in `runNormally'
> > from Ruby.java:446:in `runFromMain'
> > from Main.java:369:in `doRunFromMain'
> > from Main.java:258:in `internalRun'
> > from Main.java:224:in `run'
> > from Main.java:208:in `run'
> > from Main.java:188:in `main'
> >
>

Re: error on ./hbase shell execution

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
do you have any ruby package installed outsite of HBase? Also, what's your
JDK version? What's the value of you JAVA_HOME variable?

JM


2014-02-18 10:05 GMT-05:00 Upendra Yadav <up...@gmail.com>:

> On execution of  ./hbase shell i am getting below error...
> This is new hdfs-hbase installation...
>
>
> [sas@172.20.8.20~/hbase-0.98.0-hadoop2/bin]$  ./hbase shell
> 2014-02-18 20:34:36,531 INFO  [main] Configuration.deprecation:
> hadoop.native.lib is deprecated. Instead, use io.native.lib.available
> java.lang.RuntimeException: java.lang.UnsatisfiedLinkError:
> /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp: failed
> to map segment from shared object: Operation not permitted
> at com.kenai.jffi.Foreign$InValidInstanceHolder.getForeign(Foreign.java:90)
> at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> at com.kenai.jffi.Library.openLibrary(Library.java:151)
> at com.kenai.jffi.Library.getCachedInstance(Library.java:125)
> at
> com.kenai.jaffl.provider.jffi.Library.loadNativeLibraries(Library.java:66)
> at
> com.kenai.jaffl.provider.jffi.Library.getNativeLibraries(Library.java:56)
> at com.kenai.jaffl.provider.jffi.Library.getSymbolAddress(Library.java:35)
> at com.kenai.jaffl.provider.jffi.Library.findSymbolAddress(Library.java:45)
> at
>
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:188)
> at
>
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:110)
> at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
> at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
> at com.kenai.jaffl.Library.loadLibrary(Library.java:76)
> at
>
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:108)
> at
>
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider.getLibC(POSIXFactory.java:112)
> at org.jruby.ext.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:30)
> at org.jruby.ext.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:17)
> at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:70)
> at org.jruby.ext.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:31)
> at org.jruby.ext.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:29)
> at org.jruby.ext.posix.LazyPOSIX.posix(LazyPOSIX.java:25)
> at org.jruby.ext.posix.LazyPOSIX.isatty(LazyPOSIX.java:159)
> at org.jruby.RubyIO.tty_p(RubyIO.java:1897)
> at org.jruby.RubyIO$i$0$0$tty_p.call(RubyIO$i$0$0$tty_p.gen:65535)
> at
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> at
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)
> at org.jruby.ast.IfNode.interpret(IfNode.java:111)
> at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> at
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> at
>
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
> at
>
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:183)
> at
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> at
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> at org.jruby.ast.VCallNode.interpret(VCallNode.java:86)
> at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
> at
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> at
>
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
> at
>
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
> at
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
> at
>
> org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
> at
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
> at org.jruby.RubyClass.newInstance(RubyClass.java:822)
> at
> org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
> at
>
> org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)
> at
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> at
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> at
>
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.__file__(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110)
> at
>
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.load(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb)
> at org.jruby.Ruby.runScript(Ruby.java:697)
> at org.jruby.Ruby.runScript(Ruby.java:690)
> at org.jruby.Ruby.runNormally(Ruby.java:597)
> at org.jruby.Ruby.runFromMain(Ruby.java:446)
> at org.jruby.Main.doRunFromMain(Main.java:369)
> at org.jruby.Main.internalRun(Main.java:258)
> at org.jruby.Main.run(Main.java:224)
> at org.jruby.Main.run(Main.java:208)
> at org.jruby.Main.main(Main.java:188)
> Caused by: java.lang.UnsatisfiedLinkError:
> /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp: failed
> to map segment from shared object: Operation not permitted
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
> at java.lang.Runtime.load0(Runtime.java:770)
> at java.lang.System.load(System.java:1003)
> at com.kenai.jffi.Init.loadFromJar(Init.java:164)
> at com.kenai.jffi.Init.load(Init.java:78)
> at com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
> at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
> at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> at com.kenai.jffi.Internals.getErrnoSaveFunction(Internals.java:44)
> at
>
> com.kenai.jaffl.provider.jffi.StubCompiler.getErrnoSaveFunction(StubCompiler.java:68)
> at
> com.kenai.jaffl.provider.jffi.StubCompiler.<clinit>(StubCompiler.java:18)
> at
>
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:146)
> ... 50 more
> Foreign.java:90:in `getForeign': java.lang.RuntimeException:
> java.lang.UnsatisfiedLinkError: /tmp/jffi6261999673135703273.tmp:
> /tmp/jffi6261999673135703273.tmp: failed to map segment from shared object:
> Operation not permitted
> from Foreign.java:95:in `getInstance'
> from Library.java:151:in `openLibrary'
> from Library.java:125:in `getCachedInstance'
> from Library.java:66:in `loadNativeLibraries'
> from Library.java:56:in `getNativeLibraries'
> from Library.java:35:in `getSymbolAddress'
> from Library.java:45:in `findSymbolAddress'
> from DefaultInvokerFactory.java:51:in `createInvoker'
> from Library.java:27:in `getInvoker'
> from NativeInvocationHandler.java:90:in `createInvoker'
> from NativeInvocationHandler.java:74:in `getInvoker'
> from NativeInvocationHandler.java:110:in `invoke'
> from null:-1:in `isatty'
> from BaseNativePOSIX.java:300:in `isatty'
> from LazyPOSIX.java:159:in `isatty'
> from RubyIO.java:1897:in `tty_p'
> from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from CallNoArgNode.java:63:in `interpret'
> from IfNode.java:111:in `interpret'
> from NewlineNode.java:104:in `interpret'
> from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> from InterpretedMethod.java:147:in `call'
> from DefaultMethod.java:183:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from VCallNode.java:86:in `interpret'
> from NewlineNode.java:104:in `interpret'
> from BlockNode.java:71:in `interpret'
> from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> from InterpretedMethod.java:169:in `call'
> from DefaultMethod.java:191:in `call'
> from CachingCallSite.java:302:in `cacheAndCall'
> from CachingCallSite.java:144:in `callBlock'
> from CachingCallSite.java:148:in `call'
> from RubyClass.java:822:in `newInstance'
> from RubyClass$i$newInstance.gen:65535:in `call'
> from JavaMethod.java:249:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> from Ruby.java:697:in `runScript'
> from Ruby.java:690:in `runScript'
> from Ruby.java:597:in `runNormally'
> from Ruby.java:446:in `runFromMain'
> from Main.java:369:in `doRunFromMain'
> from Main.java:258:in `internalRun'
> from Main.java:224:in `run'
> from Main.java:208:in `run'
> from Main.java:188:in `main'
> Caused by:
> ClassLoader.java:-2:in `load': java.lang.UnsatisfiedLinkError:
> /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp: failed
> to map segment from shared object: Operation not permitted
> from ClassLoader.java:1803:in `loadLibrary0'
> from ClassLoader.java:1699:in `loadLibrary'
> from Runtime.java:770:in `load0'
> from System.java:1003:in `load'
> from Init.java:164:in `loadFromJar'
> from Init.java:78:in `load'
> from Foreign.java:49:in `getInstanceHolder'
> from Foreign.java:45:in `<clinit>'
> from Foreign.java:95:in `getInstance'
> from Internals.java:44:in `getErrnoSaveFunction'
> from StubCompiler.java:68:in `getErrnoSaveFunction'
> from StubCompiler.java:18:in `<clinit>'
> from AsmLibraryLoader.java:146:in `generateInterfaceImpl'
> from AsmLibraryLoader.java:110:in `loadLibrary'
> from Provider.java:31:in `loadLibrary'
> from Provider.java:25:in `loadLibrary'
> from Library.java:76:in `loadLibrary'
> from POSIXFactory.java:108:in `<clinit>'
> from POSIXFactory.java:112:in `getLibC'
> from BaseNativePOSIX.java:30:in `<init>'
> from LinuxPOSIX.java:17:in `<init>'
> from POSIXFactory.java:70:in `loadLinuxPOSIX'
> from POSIXFactory.java:31:in `loadPOSIX'
> from LazyPOSIX.java:29:in `loadPOSIX'
> from LazyPOSIX.java:25:in `posix'
> from LazyPOSIX.java:159:in `isatty'
> from RubyIO.java:1897:in `tty_p'
> from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from CallNoArgNode.java:63:in `interpret'
> from IfNode.java:111:in `interpret'
> from NewlineNode.java:104:in `interpret'
> from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> from InterpretedMethod.java:147:in `call'
> from DefaultMethod.java:183:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from VCallNode.java:86:in `interpret'
> from NewlineNode.java:104:in `interpret'
> from BlockNode.java:71:in `interpret'
> from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> from InterpretedMethod.java:169:in `call'
> from DefaultMethod.java:191:in `call'
> from CachingCallSite.java:302:in `cacheAndCall'
> from CachingCallSite.java:144:in `callBlock'
> from CachingCallSite.java:148:in `call'
> from RubyClass.java:822:in `newInstance'
> from RubyClass$i$newInstance.gen:65535:in `call'
> from JavaMethod.java:249:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> from Ruby.java:697:in `runScript'
> from Ruby.java:690:in `runScript'
> from Ruby.java:597:in `runNormally'
> from Ruby.java:446:in `runFromMain'
> from Main.java:369:in `doRunFromMain'
> from Main.java:258:in `internalRun'
> from Main.java:224:in `run'
> from Main.java:208:in `run'
> from Main.java:188:in `main'
>

Re: error on ./hbase shell execution

Posted by Ted Yu <yu...@gmail.com>.
See reply from Pete in this post:
https://groups.google.com/forum/#!topic/logstash-users/7dS2quZt_98


On Tue, Feb 18, 2014 at 9:05 AM, Upendra Yadav <up...@gmail.com>wrote:

> On execution of  ./hbase shell i am getting below error...
> This is new hdfs-hbase installation...
>
>
> [sas@172.20.8.20~/hbase-0.98.0-hadoop2/bin]$  ./hbase shell
> 2014-02-18 20:34:36,531 INFO  [main] Configuration.deprecation:
> hadoop.native.lib is deprecated. Instead, use io.native.lib.available
> java.lang.RuntimeException: java.lang.UnsatisfiedLinkError:
> /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp: failed
> to map segment from shared object: Operation not permitted
> at com.kenai.jffi.Foreign$InValidInstanceHolder.getForeign(Foreign.java:90)
> at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> at com.kenai.jffi.Library.openLibrary(Library.java:151)
> at com.kenai.jffi.Library.getCachedInstance(Library.java:125)
> at
> com.kenai.jaffl.provider.jffi.Library.loadNativeLibraries(Library.java:66)
> at
> com.kenai.jaffl.provider.jffi.Library.getNativeLibraries(Library.java:56)
> at com.kenai.jaffl.provider.jffi.Library.getSymbolAddress(Library.java:35)
> at com.kenai.jaffl.provider.jffi.Library.findSymbolAddress(Library.java:45)
> at
>
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:188)
> at
>
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:110)
> at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
> at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
> at com.kenai.jaffl.Library.loadLibrary(Library.java:76)
> at
>
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider$SingletonHolder.<clinit>(POSIXFactory.java:108)
> at
>
> org.jruby.ext.posix.POSIXFactory$LinuxLibCProvider.getLibC(POSIXFactory.java:112)
> at org.jruby.ext.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:30)
> at org.jruby.ext.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:17)
> at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:70)
> at org.jruby.ext.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:31)
> at org.jruby.ext.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:29)
> at org.jruby.ext.posix.LazyPOSIX.posix(LazyPOSIX.java:25)
> at org.jruby.ext.posix.LazyPOSIX.isatty(LazyPOSIX.java:159)
> at org.jruby.RubyIO.tty_p(RubyIO.java:1897)
> at org.jruby.RubyIO$i$0$0$tty_p.call(RubyIO$i$0$0$tty_p.gen:65535)
> at
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> at
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)
> at org.jruby.ast.IfNode.interpret(IfNode.java:111)
> at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> at
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> at
>
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
> at
>
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:183)
> at
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> at
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> at org.jruby.ast.VCallNode.interpret(VCallNode.java:86)
> at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
> at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
> at
> org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
> at
>
> org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
> at
>
> org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
> at
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
> at
>
> org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
> at
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148)
> at org.jruby.RubyClass.newInstance(RubyClass.java:822)
> at
> org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
> at
>
> org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.call(JavaMethod.java:249)
> at
>
> org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
> at
> org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
> at
>
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.__file__(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110)
> at
>
> home.sas.hbase_minus_0_dot_98_dot_0_minus_hadoop2.bin.hirb.load(/home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb)
> at org.jruby.Ruby.runScript(Ruby.java:697)
> at org.jruby.Ruby.runScript(Ruby.java:690)
> at org.jruby.Ruby.runNormally(Ruby.java:597)
> at org.jruby.Ruby.runFromMain(Ruby.java:446)
> at org.jruby.Main.doRunFromMain(Main.java:369)
> at org.jruby.Main.internalRun(Main.java:258)
> at org.jruby.Main.run(Main.java:224)
> at org.jruby.Main.run(Main.java:208)
> at org.jruby.Main.main(Main.java:188)
> Caused by: java.lang.UnsatisfiedLinkError:
> /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp: failed
> to map segment from shared object: Operation not permitted
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
> at java.lang.Runtime.load0(Runtime.java:770)
> at java.lang.System.load(System.java:1003)
> at com.kenai.jffi.Init.loadFromJar(Init.java:164)
> at com.kenai.jffi.Init.load(Init.java:78)
> at com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Foreign.java:49)
> at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Foreign.java:45)
> at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
> at com.kenai.jffi.Internals.getErrnoSaveFunction(Internals.java:44)
> at
>
> com.kenai.jaffl.provider.jffi.StubCompiler.getErrnoSaveFunction(StubCompiler.java:68)
> at
> com.kenai.jaffl.provider.jffi.StubCompiler.<clinit>(StubCompiler.java:18)
> at
>
> com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:146)
> ... 50 more
> Foreign.java:90:in `getForeign': java.lang.RuntimeException:
> java.lang.UnsatisfiedLinkError: /tmp/jffi6261999673135703273.tmp:
> /tmp/jffi6261999673135703273.tmp: failed to map segment from shared object:
> Operation not permitted
> from Foreign.java:95:in `getInstance'
> from Library.java:151:in `openLibrary'
> from Library.java:125:in `getCachedInstance'
> from Library.java:66:in `loadNativeLibraries'
> from Library.java:56:in `getNativeLibraries'
> from Library.java:35:in `getSymbolAddress'
> from Library.java:45:in `findSymbolAddress'
> from DefaultInvokerFactory.java:51:in `createInvoker'
> from Library.java:27:in `getInvoker'
> from NativeInvocationHandler.java:90:in `createInvoker'
> from NativeInvocationHandler.java:74:in `getInvoker'
> from NativeInvocationHandler.java:110:in `invoke'
> from null:-1:in `isatty'
> from BaseNativePOSIX.java:300:in `isatty'
> from LazyPOSIX.java:159:in `isatty'
> from RubyIO.java:1897:in `tty_p'
> from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from CallNoArgNode.java:63:in `interpret'
> from IfNode.java:111:in `interpret'
> from NewlineNode.java:104:in `interpret'
> from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> from InterpretedMethod.java:147:in `call'
> from DefaultMethod.java:183:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from VCallNode.java:86:in `interpret'
> from NewlineNode.java:104:in `interpret'
> from BlockNode.java:71:in `interpret'
> from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> from InterpretedMethod.java:169:in `call'
> from DefaultMethod.java:191:in `call'
> from CachingCallSite.java:302:in `cacheAndCall'
> from CachingCallSite.java:144:in `callBlock'
> from CachingCallSite.java:148:in `call'
> from RubyClass.java:822:in `newInstance'
> from RubyClass$i$newInstance.gen:65535:in `call'
> from JavaMethod.java:249:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> from Ruby.java:697:in `runScript'
> from Ruby.java:690:in `runScript'
> from Ruby.java:597:in `runNormally'
> from Ruby.java:446:in `runFromMain'
> from Main.java:369:in `doRunFromMain'
> from Main.java:258:in `internalRun'
> from Main.java:224:in `run'
> from Main.java:208:in `run'
> from Main.java:188:in `main'
> Caused by:
> ClassLoader.java:-2:in `load': java.lang.UnsatisfiedLinkError:
> /tmp/jffi6261999673135703273.tmp: /tmp/jffi6261999673135703273.tmp: failed
> to map segment from shared object: Operation not permitted
> from ClassLoader.java:1803:in `loadLibrary0'
> from ClassLoader.java:1699:in `loadLibrary'
> from Runtime.java:770:in `load0'
> from System.java:1003:in `load'
> from Init.java:164:in `loadFromJar'
> from Init.java:78:in `load'
> from Foreign.java:49:in `getInstanceHolder'
> from Foreign.java:45:in `<clinit>'
> from Foreign.java:95:in `getInstance'
> from Internals.java:44:in `getErrnoSaveFunction'
> from StubCompiler.java:68:in `getErrnoSaveFunction'
> from StubCompiler.java:18:in `<clinit>'
> from AsmLibraryLoader.java:146:in `generateInterfaceImpl'
> from AsmLibraryLoader.java:110:in `loadLibrary'
> from Provider.java:31:in `loadLibrary'
> from Provider.java:25:in `loadLibrary'
> from Library.java:76:in `loadLibrary'
> from POSIXFactory.java:108:in `<clinit>'
> from POSIXFactory.java:112:in `getLibC'
> from BaseNativePOSIX.java:30:in `<init>'
> from LinuxPOSIX.java:17:in `<init>'
> from POSIXFactory.java:70:in `loadLinuxPOSIX'
> from POSIXFactory.java:31:in `loadPOSIX'
> from LazyPOSIX.java:29:in `loadPOSIX'
> from LazyPOSIX.java:25:in `posix'
> from LazyPOSIX.java:159:in `isatty'
> from RubyIO.java:1897:in `tty_p'
> from RubyIO$i$0$0$tty_p.gen:65535:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from CallNoArgNode.java:63:in `interpret'
> from IfNode.java:111:in `interpret'
> from NewlineNode.java:104:in `interpret'
> from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> from InterpretedMethod.java:147:in `call'
> from DefaultMethod.java:183:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from VCallNode.java:86:in `interpret'
> from NewlineNode.java:104:in `interpret'
> from BlockNode.java:71:in `interpret'
> from ASTInterpreter.java:74:in `INTERPRET_METHOD'
> from InterpretedMethod.java:169:in `call'
> from DefaultMethod.java:191:in `call'
> from CachingCallSite.java:302:in `cacheAndCall'
> from CachingCallSite.java:144:in `callBlock'
> from CachingCallSite.java:148:in `call'
> from RubyClass.java:822:in `newInstance'
> from RubyClass$i$newInstance.gen:65535:in `call'
> from JavaMethod.java:249:in `call'
> from CachingCallSite.java:292:in `cacheAndCall'
> from CachingCallSite.java:135:in `call'
> from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:110:in `__file__'
> from /home/sas/hbase-0.98.0-hadoop2/bin/hirb.rb:-1:in `load'
> from Ruby.java:697:in `runScript'
> from Ruby.java:690:in `runScript'
> from Ruby.java:597:in `runNormally'
> from Ruby.java:446:in `runFromMain'
> from Main.java:369:in `doRunFromMain'
> from Main.java:258:in `internalRun'
> from Main.java:224:in `run'
> from Main.java:208:in `run'
> from Main.java:188:in `main'
>