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] [Updated] (HBASE-3781) hbase shell cannot start "NoMethodError: undefined method `close' for nil:NilClass"
Date Sat, 16 Apr 2011 23:14:05 GMT

     [ https://issues.apache.org/jira/browse/HBASE-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mikael Sitruk updated HBASE-3781:
---------------------------------

    Fix Version/s: 0.90.2
     Release Note: resolve problem under windows for starting the hbase shell (no close method
error)
           Status: Patch Available  (was: Open)

I presume this is required in 0.90.3 and up too.

> 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
>             Fix For: 0.90.2
>
>
> 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