HBASE-6685 Thrift DemoClient.pl got NullPointerException
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1379007 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0930a60681
commit
3bbca25d38
|
@ -141,7 +141,6 @@ $client->mutateRow ( $demo_table, $key, $mutations );
|
|||
|
||||
# this row name is valid utf8
|
||||
$key = "foo";
|
||||
# $mutations = [ Hbase::Mutation->new ( column => "entry:$key", value => $valid ) ];
|
||||
# This is another way to use the Mutation class
|
||||
my $mutation = Hbase::Mutation->new ();
|
||||
$mutation->{column} = "entry:$key";
|
||||
|
@ -151,7 +150,7 @@ $client->mutateRow ( $demo_table, $key, $mutations );
|
|||
|
||||
# non-utf8 is not allowed in row names
|
||||
eval {
|
||||
$mutations = [ Hbase::Mutation->new ( column => "entry:$key", value => $invalid ) ];
|
||||
$mutations = [ Hbase::Mutation->new ( { column => "entry:$key", value => $invalid } ) ];
|
||||
# this can throw a TApplicationException (HASH) error
|
||||
$client->mutateRow ($demo_table, $key, $mutations);
|
||||
die ("shouldn't get here!");
|
||||
|
|
Loading…
Reference in New Issue