hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Hbase Thrift DemoClient.php bug
Date Tue, 12 Mar 2013 16:55:00 GMT
I checked trunk code - parameter count matches.

Looks like this is a problem in 0.94 only

On Mon, Mar 11, 2013 at 8:19 PM, Ted <yuzhihong@gmail.com> wrote:

> Thanks for reporting this.
>
> Mind opening a jira ?
>
> On Mar 11, 2013, at 7:13 PM, jung <moorang@gmail.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message