Re: Hbase Thrift DemoClient.php bug

2013-03-12 Thread Ted Yu
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 yuzhih...@gmail.com wrote:

 Thanks for reporting this.

 Mind opening a jira ?

 On Mar 11, 2013, at 7:13 PM, jung moor...@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
  titleDemoClient/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



Re: Hbase Thrift DemoClient.php bug

2013-03-12 Thread Ted Yu
HBASE-8079 has been logged.

On Tue, Mar 12, 2013 at 9:55 AM, Ted Yu yuzhih...@gmail.com wrote:

 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 yuzhih...@gmail.com wrote:

 Thanks for reporting this.

 Mind opening a jira ?

 On Mar 11, 2013, at 7:13 PM, jung moor...@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
  titleDemoClient/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





Hbase Thrift DemoClient.php bug

2013-03-11 Thread jung
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
titleDemoClient/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


Re: Hbase Thrift DemoClient.php bug

2013-03-11 Thread Ted
Thanks for reporting this. 

Mind opening a jira ?

On Mar 11, 2013, at 7:13 PM, jung moor...@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
 titleDemoClient/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