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

Switch to Plain View
HBase >> mail # user >> Hbase Thrift DemoClient.php bug


+
jung 2013-03-12, 02:13
Copy link to this message
-
Re: Hbase Thrift DemoClient.php bug
Thanks for reporting this.

Mind opening a jira ?

On Mar 11, 2013, at 7:13 PM, jung <[EMAIL PROTECTED]> wrote:

> hiya
>
> installed thrift and hbase. and testing php with hbase.
>
> i tested apache thrift 0.90 and 1.0-dev  with hbase 0.94.2 and hbase
> 0.94.5 's Hbase.thrift
>
> $ php DemoClient.php failed like below
>
> <html>
> <head>
> <title>DemoClient</title>
> </head>
> <body>
> <pre>
> scanning tables...
>  found: cars
>  found: demo_table
>    disabling table: demo_table
>    deleting table: demo_table
>  found: dnstest
>  found: hello_world
> creating table: demo_table
> column families in demo_table:
>  column: entry:, maxVer: 10
>  column: unused:, maxVer: 3
> PHP Warning:  Missing argument 4 for Hbase\HbaseClient::mutateRow(),
> called in /home/hbase/test/www-current/DemoClient.php on line 138 and
> defined in /home/hbase/test/www-current/thrift/packages/Hbase/Hbase.php
> on line 1233
> PHP Notice:  Undefined variable: attributes in
> /home/hbase/test/www-current/thrift/packages/Hbase/Hbase.php on line
> 1235
> PHP Warning:  Missing argument 4 for Hbase\HbaseClient::mutateRow(),
> called in /home/hbase/test/www-current/DemoClient.php on line 147 and
> defined in /home/hbase/test/www-current/thrift/packages/Hbase/Hbase.php
> on line 1233
>
> ---
> DemoClient.php using 3 args
>
> $client->mutateRow( $t, "foo", $mutations )
>
> but mutateRow in gen-php/Hbase.php have a 4 args like below
>
> 40:  public function mutateRow($tableName, $row, $mutations, $attributes);
> 41:  public function mutateRowTs($tableName, $row, $mutations,
> $timestamp, $attributes);
> 42:  public function mutateRows($tableName, $rowBatches, $attributes);
> 43:  public function mutateRowsTs($tableName, $rowBatches, $timestamp,
> $attributes);
> 1233:  public function mutateRow($tableName, $row, $mutations, $attributes)
> 1290:  public function mutateRowTs($tableName, $row, $mutations,
> $timestamp, $attributes)
> 1348:  public function mutateRows($tableName, $rowBatches, $attributes)
> 1404:  public function mutateRowsTs($tableName, $rowBatches,
> $timestamp, $attributes)
>
>
> any ideas?
>
> thanks
+
Ted Yu 2013-03-12, 16:55
+
Ted Yu 2013-03-12, 17:25