hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikael Sitruk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-3781) hbase shell cannot start "NoMethodError: undefined method `close' for nil:NilClass"
Date Thu, 14 Apr 2011 13:39:05 GMT
hbase shell cannot start "NoMethodError: undefined method `close' for nil:NilClass"
-----------------------------------------------------------------------------------

                 Key: HBASE-3781
                 URL: https://issues.apache.org/jira/browse/HBASE-3781
             Project: HBase
          Issue Type: Bug
          Components: shell
    Affects Versions: 0.90.2
         Environment: windows 7, cygwin
            Reporter: Mikael Sitruk


After following the instruction for installing hbase on windows with cygwin, and trying to
run the hbase shell i got the following error
NoMethodError: undefined method `close' for nil:NilClass
  initialize at C:/_servers/db/hbase/V090~1.2//bin/../lib/ruby/irb/hirb.rb:39
       start at C:\_servers\db\hbase\V090~1.2\/bin/hirb.rb:171
      (root) at C:\_servers\db\hbase\V090~1.2\/bin/hirb.rb:183

After a while of investigation it seems that the error comes from the fact that "/dev/null"
is not functioning as expected. When changing to "NUL" (in lib/ruby/irb/hirb.rb line 34),
which is window equivalent, the shell worked ok.
The fix 
change:  f = File.open("/dev/null", "w") to f = File.open("NUL", "w")


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message