Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 50327 invoked from network); 18 Apr 2011 19:48:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Apr 2011 19:48:44 -0000 Received: (qmail 59634 invoked by uid 500); 18 Apr 2011 19:48:44 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 59604 invoked by uid 500); 18 Apr 2011 19:48:44 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 59596 invoked by uid 99); 18 Apr 2011 19:48:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 19:48:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 19:48:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2D203A7E2C for ; Mon, 18 Apr 2011 19:48:06 +0000 (UTC) Date: Mon, 18 Apr 2011 19:48:06 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <1098059574.65338.1303156086181.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <868832297.57679.1302788345760.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-3781) hbase shell cannot start "NoMethodError: undefined method `close' for nil:NilClass" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-3781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021207#comment-13021207 ] stack commented on HBASE-3781: ------------------------------ Oh, you seem to not use the DEV_NULL you've worked out in the patch... on commit I fix this. > 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.92.0 > > Attachments: HBASE-3781-0.90.2.patch > > > 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