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 355CA10A35 for ; Thu, 25 Apr 2013 13:34:37 +0000 (UTC) Received: (qmail 15220 invoked by uid 500); 25 Apr 2013 13:34:35 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 15108 invoked by uid 500); 25 Apr 2013 13:34:34 -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 15075 invoked by uid 99); 25 Apr 2013 13:34:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Apr 2013 13:34:34 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of landr100@gmail.com designates 209.85.128.180 as permitted sender) Received: from [209.85.128.180] (HELO mail-ve0-f180.google.com) (209.85.128.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Apr 2013 13:34:29 +0000 Received: by mail-ve0-f180.google.com with SMTP id pb11so1259967veb.39 for ; Thu, 25 Apr 2013 06:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Mr6uTLwZ14OEEjPF63w1uAaXEvMRk7xDpxPUJfQkwZc=; b=amXSFyanOw6Mu5gGdIpH4EyiSIQ/7U+pRjEWCUX+mfuAIdq+H79Ry5F4Y7QXlhSGxg NALGnmNOb+IakPUeItisYT/9xR7xE/+jrN/O9Bc74xYMTXFVJuVaXhwwRLNLP4O321an N0hTBOgaYh1NWShG18Qn7br5RQgzyVC+jYBF5BcWTvPrc7TemetjOK/1wn+/bxnGwyzi lugvn3ukuKw9CsTVQml6UN9EgAP8GdznPDgHtvKuB5tMGUv6zXyRiSNq5re/ldkdk5j5 y6eHRkrcjJpeX+uINih0780DmODMCQZikA4uDcheYk6/Fj8Ae0gmD0mu9hxkPMhoTFz0 cL2Q== MIME-Version: 1.0 X-Received: by 10.52.33.116 with SMTP id q20mr22918487vdi.65.1366896848700; Thu, 25 Apr 2013 06:34:08 -0700 (PDT) Received: by 10.220.172.134 with HTTP; Thu, 25 Apr 2013 06:34:08 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Apr 2013 09:34:08 -0400 Message-ID: Subject: Re: undefined method `internal_command' for Shell::Formatter::Console From: Robin Gowin To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf3079c0dc1c8e7504db2f7900 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3079c0dc1c8e7504db2f7900 Content-Type: text/plain; charset=ISO-8859-1 Hi JM, Thank you for following up! No, the issue still exists. I have temporarily abandoned jruby for this project, and am using curl and REST for the time being. Since it's working properly for you and others, I suspect that it's either a version mismatch or an installation problem or some configuration issue. If you have time, I'm willing to continue debugging. Robin On Thu, Apr 25, 2013 at 9:24 AM, Jean-Marc Spaggiari < jean-marc@spaggiari.org> wrote: > Hi Robin, > > Were you finally able to find the issue? > > JM > > 2013/4/18 Robin Gowin : > > same results with @null (i had earlier tried nil, same thing) > > > > hbase(main):045:0> uu = @hbase.table('robin1', @null) > > => Hbase::Table - robin1 > > hbase(main):046:0> uu.scan(ss) > > NoMethodError: undefined method `internal_command' for nil:NilClass > > > > One thing I'm curious about - might not matter - the output of my > > @hbase.table command looks like this > > > > => Hbase::Table - robin1 > > > > but the output of yours (and what is in the book) looks like this > > > > => # > > > > > > > > > On Thu, Apr 18, 2013 at 12:17 PM, Jean-Marc Spaggiari < > > jean-marc@spaggiari.org> wrote: > > > >> Interesting... > >> > >> I tried the same locally and it's working fine for me. > >> > >> hbase(main):010:0> uu = @hbase.table('TestAcidGuarantees', @formatter) > >> => # >> @table=#> > >> hbase(main):011:0> ss = {COLUMNS => ['A']} > >> => {"COLUMNS"=>["A"]} > >> hbase(main):012:0> uu.scan(ss) > >> => {"test_row_0"=>{"A:col0"=>"timestamp=1366299718358, > >> value=\\x14\\xC2\\xF0\\x0...." > >> > >> I did a cut&paste from what you sent and only changed the table name. > >> > >> Can you try with @null instead of @formatter? > >> > >> JM > >> > >> 2013/4/18 Robin Gowin > >> > >> > Hi Jean-Marc, > >> > > >> > Thanks for your quick reply. Yes I am trying to do something like > that. > >> For > >> > brevity I combined everything into one jruby command. > >> > > >> > My command can be split into two and I get the same error. For > example, > >> > this shows a similar problem using the scan method: > >> > > >> > hbase(main):041:0> uu = @hbase.table('robin1', @formatter) > >> > => Hbase::Table - robin1 > >> > hbase(main):042:0> ss = {COLUMNS => ['cf1']} > >> > => {"COLUMNS"=>["cf1"]} > >> > hbase(main):043:0> uu.scan(ss) > >> > NoMethodError: undefined method `internal_command' for > >> > # > >> > > >> > hbase(main):044:0> scan 'robin1', ss > >> > ROW COLUMN+CELL > >> > > >> > > >> > myrow1 column=cf1:q1, > >> > timestamp=1366046037514, value=value2 > >> > > >> > myrow1 column=cf1:q2, > >> > timestamp=1366046489446, value=value2b > >> > > >> > myrow1 column=cf1:q2b, > >> > timestamp=1366046497799, value=value2bb > >> > > >> > myrow2 column=cf1:q2b, > >> > timestamp=1366046731281, value=value2bbce > >> > > >> > myrow2 column=cf1:q2be, > >> > timestamp=1366046748001, value=value2bbce > >> > > >> > 2 row(s) in 0.0460 seconds > >> > > >> > > >> > > >> > > >> > > >> > On Thu, Apr 18, 2013 at 11:54 AM, Jean-Marc Spaggiari < > >> > jean-marc@spaggiari.org> wrote: > >> > > >> > > Hi Robin, > >> > > > >> > > I'm not sure about your command line > >> > > (@hbase.table('robin1',@formatter).scan({'COLUMNS' => ['cf1']})) > >> > > > >> > > Are you trying do to something like that? scan 'robin1', {COLUMNS > >> > > => ['cf1']} > >> > > > >> > > JM > >> > > > >> > > 2013/4/18 Robin Gowin > >> > > > >> > > > This feels like a stupid mistake I'm making somewhere but I > searched > >> > for > >> > > > quite a while and did not find any evidence that anybody else > >> reported > >> > > this > >> > > > problem. > >> > > > > >> > > > I'm trying to use hbase shell to call the 'scan()' method and I > keep > >> > > > getting the same error message. A regular scan of the table works > >> fine. > >> > > > > >> > > > I'd appreciate any assistance. > >> > > > > >> > > > hbase(main):005:0> scan 'robin1' > >> > > > ROW COLUMN+CELL > >> > > > > >> > > > > >> > > > myrow1 column=cf1:q1, > >> > > > timestamp=1366046037514, value=value2 > >> > > > > >> > > > myrow1 column=cf1:q2, > >> > > > timestamp=1366046489446, value=value2b > >> > > > > >> > > > myrow1 column=cf1:q2b, > >> > > > timestamp=1366046497799, value=value2bb > >> > > > > >> > > > myrow2 column=cf1:q2b, > >> > > > timestamp=1366046731281, value=value2bbce > >> > > > > >> > > > myrow2 column=cf1:q2be, > >> > > > timestamp=1366046748001, value=value2bbce > >> > > > > >> > > > 2 row(s) in 0.1290 seconds > >> > > > > >> > > > hbase(main):007:0> @hbase.table('robin1', > @formatter).scan({'COLUMNS' > >> > => > >> > > > ['cf1']}) > >> > > > NoMethodError: undefined method `internal_command' for > >> > > > # > >> > > > > >> > > > this method appears to exist > >> > > > > >> > > > [cloudera@localhost test]$ grep internal_command > >> > > > /usr/lib/hbase/lib/ruby/shell.rb > >> > > > internal_command(command, :command, *args) > >> > > > def internal_command(command, method_name= :command, *args) > >> > > > > >> > > > > >> > > > info about my environment: > >> > > > > >> > > > [cloudera@localhost test]$ hbase version > >> > > > 13/04/18 11:17:33 INFO util.VersionInfo: HBase 0.94.2-cdh4.2.0 > >> > > > 13/04/18 11:17:33 INFO util.VersionInfo: Subversion > >> > > > > >> > > > > >> > > > >> > > >> > file:///data/1/jenkins/workspace/generic-package-rhel64-6-0/topdir/BUILD/hbase-0.94.2-cdh4.2.0 > >> > > > -r Unknown > >> > > > 13/04/18 11:17:33 INFO util.VersionInfo: Compiled by jenkins on > Fri > >> Feb > >> > > 15 > >> > > > 11:51:18 PST 2013 > >> > > > [cloudera@localhost test]$ java -version > >> > > > java version "1.6.0_31" > >> > > > Java(TM) SE Runtime Environment (build 1.6.0_31-b04) > >> > > > Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode) > >> > > > [cloudera@localhost test]$ hadoop version > >> > > > Hadoop 2.0.0-cdh4.2.0 > >> > > > Subversion > >> > > > > >> > > > > >> > > > >> > > >> > file:///data/1/jenkins/workspace/generic-package-rhel64-6-0/topdir/BUILD/hadoop-2.0.0-cdh4.2.0/src/hadoop-common-project/hadoop-common > >> > > > -r 8bce4bd28a464e0a92950c50ba01a9deb1d85686 > >> > > > Compiled by jenkins on Fri Feb 15 11:13:32 PST 2013 > >> > > > From source with checksum 3eefc211a14ac7b6e764d6ded2eeeb26 > >> > > > [cloudera@localhost test]$ uname -a > >> > > > Linux localhost.localdomain 2.6.32-220.23.1.el6.x86_64 #1 SMP Mon > Jun > >> > 18 > >> > > > 18:58:52 BST 2012 x86_64 x86_64 x86_64 GNU/Linux > >> > > > > >> > > > Robin Gowin > >> > > > > >> > > > PS: I found this email list from the book "HBase In Action" > >> > > > > >> > > > >> > > >> > --20cf3079c0dc1c8e7504db2f7900--