hbase-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/HBASE-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019871#comment-13019871

stack commented on HBASE-3781:

Will your change work on both windows and linux?  Can you suggest a change that will work
for both?  Thanks.

> 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

View raw message