You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2013/03/12 18:27:17 UTC
[jira] [Created] (HBASE-8079) Mismatch of mutateRow() parameters
between DemoClient.php and gen-php/Hbase.php in 0.94
Ted Yu created HBASE-8079:
-----------------------------
Summary: Mismatch of mutateRow() parameters between DemoClient.php and gen-php/Hbase.php in 0.94
Key: HBASE-8079
URL: https://issues.apache.org/jira/browse/HBASE-8079
Project: HBase
Issue Type: Bug
Affects Versions: 0.94.2
Reporter: Ted Yu
>From user Jung under email thread 'Hbase Thrift DemoClient.php bug'
This appears to be 0.94 specific.
------
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
{code}
<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
{code}
---
DemoClient.php using 3 args
$client->mutateRow( $t, "foo", $mutations )
but mutateRow in gen-php/Hbase.php have a 4 args like below
{code}
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)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira