Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> undefined method `internal_command' for Shell::Formatter::Console


+
Robin Gowin 2013-04-18, 15:48
Copy link to this message
-
Re: undefined method `internal_command' for Shell::Formatter::Console
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 <[EMAIL PROTECTED]>

> 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
> #<Shell::Formatter::Console:0x15f6ae4d>
>
> 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"
>
+
Robin Gowin 2013-04-18, 16:03
+
Jean-Marc Spaggiari 2013-04-18, 16:17
+
Robin Gowin 2013-04-18, 16:33
+
Jean-Marc Spaggiari 2013-04-25, 13:24
+
Robin Gowin 2013-04-25, 13:34
+
Jean-Marc Spaggiari 2013-04-25, 13:40
+
Robin Gowin 2013-04-25, 15:51
+
Jean-Marc Spaggiari 2013-04-25, 15:59
+
Robin Gowin 2013-04-25, 18:00
+
Jean-Marc Spaggiari 2013-04-25, 19:58
+
Robin Gowin 2013-04-25, 20:37
+
Jean-Marc Spaggiari 2013-04-25, 21:02
+
Robin Gowin 2013-04-26, 13:41
+
Ted Yu 2013-04-18, 16:20
+
Jean-Marc Spaggiari 2013-04-18, 16:23