Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1B53F186 for ; Sat, 6 Apr 2013 07:31:06 +0000 (UTC) Received: (qmail 88235 invoked by uid 500); 6 Apr 2013 07:31:04 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 88020 invoked by uid 500); 6 Apr 2013 07:31:04 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 87983 invoked by uid 99); 6 Apr 2013 07:31:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Apr 2013 07:31:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christoph.pilka@googlemail.com designates 209.85.215.43 as permitted sender) Received: from [209.85.215.43] (HELO mail-la0-f43.google.com) (209.85.215.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Apr 2013 07:30:57 +0000 Received: by mail-la0-f43.google.com with SMTP id ek20so4102264lab.16 for ; Sat, 06 Apr 2013 00:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=gaW3UEWPvY0nTFDcUL6YGMkgWr8R1aKUx3J3Fcl7xrI=; b=uQMR6a/6ozN8PVFR4Q3AlnmKJUIRRpJBCJFM8KS3rQVndA05Rex1y5siIA84lYz7b9 PR8lsiWn0FuqlYr3Y4lYIJ+M7s1zngp3cbYuH0K3y4a3Fuqgw5dPwZI5C8jBlIqRhbjw 04AiOs84lJ9tKESy5OnYh54G4W5zdSTPOqxoM3Bo1F0RMv5VWtk+00jXCsEUBiAI2vKQ HmPcnWFSKm4QedNRHlLOY63ORZaXKshMJnBXlg47XCwsf05J+QdSNOeJxG2E56nq+KbI yvPFB0/FSW3/7HgAWm5195uGsjxDikXDb0XDrMMUiQIod8zwGQtfest1TOApzRx3FlAd eKZw== X-Received: by 10.112.154.132 with SMTP id vo4mr5052029lbb.44.1365233436648; Sat, 06 Apr 2013 00:30:36 -0700 (PDT) Received: from ?IPv6:2a02:fe0:cf12:30:7db8:c27f:b883:7e1? ([2a02:fe0:cf12:30:7db8:c27f:b883:7e1]) by mx.google.com with ESMTPS id ng6sm6997999lab.2.2013.04.06.00.30.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 06 Apr 2013 00:30:35 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: HBase shell does not start From: Christoph Pilka In-Reply-To: Date: Sat, 6 Apr 2013 09:30:17 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <28C31017-68C3-493A-8D38-0387A86D3543@gmail.com> References: <415D23D9-B1EB-42F1-AB80-70D995155DE2@gmail.com> To: user@hbase.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org Hi Jean-Marc et al. you're right, JRUBY_HOME was set to the JRuby environment of the main = project :( All runs fine now. Many thanks for your help! Cheerio, Chris On Apr 6, 2013, at 3:07 AM, Jean-Marc Spaggiari = wrote: > At least now we know it's because of that ;) >=20 > But I agree this should not impact the shell start. When RVM is there, > do you have a classpath already setup with the ruby jars in it? Do you > have $JRUBY_HOME setup? >=20 > 2013/4/5 Christoph Pilka : >> OK, that's strange. I've removed RVM and base shell is started = properly. Hmhm :( >>=20 >> On Apr 6, 2013, at 2:52 AM, Jean-Marc Spaggiari = wrote: >>=20 >>> I just tried and it's working fine: >>> jmspaggi@hbasetest:~/hbase$ wget >>> = http://apache.mirror.rafal.ca/hbase/hbase-0.94.6.1/hbase-0.94.6.1.tar.gz >>> --2013-04-05 20:39:29-- >>> = http://apache.mirror.rafal.ca/hbase/hbase-0.94.6.1/hbase-0.94.6.1.tar.gz >>> R=E9solution de apache.mirror.rafal.ca (apache.mirror.rafal.ca)... >>> 207.210.46.249, 2001:470:1d:3c0:216:3eff:fe3f:746a >>> Connexion vers apache.mirror.rafal.ca >>> (apache.mirror.rafal.ca)|207.210.46.249|:80...connect=E9. >>> requ=EAte HTTP transmise, en attente de la r=E9ponse...200 OK >>> Longueur: 57332359 (55M) [application/x-gzip] >>> Sauvegarde en : =ABhbase-0.94.6.1.tar.gz=BB >>>=20 >>> 100%[=3D=3D=3D=3D=3D=3D>] 57332359 593K/s ds 89s >>>=20 >>> 2013-04-05 20:40:58 (627 KB/s) - =ABhbase-0.94.6.1.tar.gz=BB = sauvegard=E9 >>> [57332359/57332359] >>>=20 >>> jmspaggi@hbasetest:~/hbase$ tar -xzf hbase-0.94.6.1.tar.gz >>> jmspaggi@hbasetest:~/hbase$ cd hbase-0.94.6.1/ >>> jmspaggi@hbasetest:~/hbase/hbase-0.94.6.1$ bin/start-hbase.sh >>> starting master, logging to >>> = /home/jmspaggi/hbase/hbase-0.94.6.1/bin/../logs/hbase-jmspaggi-master-hbas= etest.out >>> jmspaggi@hbasetest:~/hbase/hbase-0.94.6.1$ bin/hbase shell >>> HBase Shell; enter 'help' for list of supported commands. >>> Type "exit" to leave the HBase Shell >>> Version 0.94.6.1, r1464658, Thu Apr 4 10:58:50 PDT 2013 >>>=20 >>> hbase(main):001:0> list >>> TABLE >>> 0 row(s) in 0.5360 seconds >>>=20 >>> hbase(main):002:0> >>>=20 >>> Even when HBase is down it should be working: >>>=20 >>> jmspaggi@hbasetest:~/hbase/hbase-0.94.6.1$ bin/stop-hbase.sh >>> stopping hbase........... >>> jmspaggi@hbasetest:~/hbase/hbase-0.94.6.1$ bin/hbase shell >>> HBase Shell; enter 'help' for list of supported commands. >>> Type "exit" to leave the HBase Shell >>> Version 0.94.6.1, r1464658, Thu Apr 4 10:58:50 PDT 2013 >>>=20 >>> So I don't think your issue is HBase related. >>>=20 >>> Do you have Ruby jars installed somewhere else in your system? >>>=20 >>> JM >>>=20 >>> 2013/4/5 Christoph Pilka : >>>> Hi, >>>>=20 >>>> I get the error when I try to start the shell by a simple = "bin/hbase shell" >>>>=20 >>>> On Apr 6, 2013, at 2:37 AM, Jean-Marc Spaggiari = wrote: >>>>=20 >>>>> Hi Chris, >>>>>=20 >>>>> How are you getting that? >>>>>=20 >>>>> So you installed HBase, have started it, and then tried to launch >>>>> hbase shell? You are getting this error when the shell is = starting? Or >>>>> while executing a specific command? >>>>>=20 >>>>> JM >>>>>=20 >>>>> 2013/4/5 Christoph Pilka : >>>>>> Hi all, >>>>>>=20 >>>>>> Anyone has an idea what's going wrong here? I've downloaded the = HBase 0.94.6.1 tarball, installed HBase on my Mac OS X 10.8 box but get = always the same error launching the hbase shell: >>>>>>=20 >>>>>> NoMethodError: undefined method `getTerminal' for = Java::Jline::Terminal:Module >>>>>> refresh_width at = /usr/local/hbase-0.94.6.1/bin/../bin/../lib/ruby/shell/formatter.rb:34 >>>>>> initialize at = /usr/local/hbase-0.94.6.1/bin/../bin/../lib/ruby/shell/formatter.rb:47 >>>>>> It's the same with the Homebrew prepackaged version of HBase ... >>>>>>=20 >>>>>> I'm running >>>>>>=20 >>>>>> java version "1.7.0_17" >>>>>> Java(TM) SE Runtime Environment (build 1.7.0_17-b02) >>>>>> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode) >>>>>> Many thanks in advance! >>>>>>=20 >>>>>> Cheerio, Chris >>>>=20 >>=20