java - Running "hbase shell" giving error in OSX -


getting following error when trying run hbase shell in osx(version: 10.11.4):

warning: -j-dfile.encoding=utf-8 argument ignored (launched in same vm?)

warning: -j-xx:maxpermsize=1024m argument ignored (launched in same vm?)

warning: -j-xmx4096m argument ignored (launched in same vm?)

typeerror: can't convert pathname string require @ org/jruby/rubykernel.java:1071

require @ file:/usr/local/cellar/hbase/1.2.6/libexec/lib/jruby-complete-1.6.8.jar!/meta inf/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36

(root) @ /usr/local/cellar/hbase/1.2.6/libexec/bin/hirb.rb:118

i installed hbase brew : brew install hbase

as given in solution here, trying set path variables following:

➜  ~ export hbase_home=/usr/local/cellar/hbase/1.2.6/libexec ➜  ~ export path=$hbase_home/bin:$path 

i have jruby-complete-1.6.8.jar in $hbase_home/lib, stated here. still same error continues.

edit 1

➜ rvm list:  rvm rubies     ruby-2.1.2 [ x86_64 ]    ruby-2.2.0 [ x86_64 ] =* ruby-2.2.2 [ x86_64 ]  # => - current # =* - current && default #  * - default   ➜  ruby -v ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]   ➜  ruby /usr/bin/ruby 

guessing wrong in rvm, uninstalled via: rvm remove , rvm uninstall. still error persists.

edit 2

➜  brew doctor please note these warnings used homebrew maintainers debugging if file issue. if use homebrew working fine: please don't worry , ignore them. thanks!  warning: have unlinked kegs in cellar leaving kegs unlinked can lead build-trouble , cause brews depend on kegs fail run once built. run `brew link` on these:   mongodb@2.6  warning: xcode (7.3.1) outdated. please update xcode 8.2.1 (or delete it). xcode can updated app store.   warning: installed formula missing dependencies. should `brew install` missing dependencies:   brew install erlang@19  run `brew missing` more details.  ➜  brew missing rabbitmq: erlang@19 

edit 3

what figured out able run hbase root user, if following:

> sudo su root> export java_home=/library/java/javavirtualmachines/jdk1.8.0_131.jdk/contents/home root> hbase shell        ......it works...... 

so seems, permission issue, due not able run normally.

have tried using oracle's jdk , installation apache page?

http://ftp.ps.pl/pub/apache/hbase/1.3.1/hbase-1.3.1-bin.tar.gz

it works fine in case

> ./start-hbase.sh starting master, logging $home/..../hbase-1.3.1/bin/../logs/hbase-michalo-master-pi.local.out java hotspot(tm) 64-bit server vm warning: ignoring option permsize=128m; support removed in 8.0 java hotspot(tm) 64-bit server vm warning: ignoring option maxpermsize=128m; support removed in 8.0 

and, in shell

> ./hbase shell warn  [main] util.nativecodeloader: unable load native-hadoop library platform... using builtin-java classes applicable hbase shell; enter 'help<return>' list of supported commands. type "exit<return>" leave hbase shell version 1.3.1, r930b9a55528fe45d8edce7af42fef2d35e77677a, thu apr  6 19:36:54 pdt 2017  hbase(main):001:0> 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -