Grokbase Groups HBase dev July 2011
FAQ
It happened in latest branch 0.90. but I can't reproduce it.

It seems using api getHRegionInfoOrNull is better or check the input parameter before call getHRegionInfo.

Code:
public static Writable getWritable(final byte [] bytes, final Writable w)
throws IOException {
return getWritable(bytes, 0, bytes.length, w);
}
return getWritable(bytes, 0, bytes.length, w); // It seems input parameter bytes is null

logs:
11/07/15 10:15:42 INFO zookeeper.ClientCnxn: Socket connection established to C4C3.site/157.5.100.3:2181, initiating session
11/07/15 10:15:42 INFO zookeeper.ClientCnxn: Session establishment complete on server C4C3.site/157.5.100.3:2181, sessionid = 0x2312b8e3f700002, negotiated timeout = 180000
[INFO] Create : ufdr111 222!
[INFO] Create : ufdr111 start!
java.lang.NullPointerException
at org.apache.hadoop.hbase.util.Writables.getWritable(Writables.java:75)
at org.apache.hadoop.hbase.util.Writables.getHRegionInfo(Writables.java:119)
at org.apache.hadoop.hbase.client.HBaseAdmin$1.processRow(HBaseAdmin.java:306)
at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:190)
at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:95)
at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:73)
at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:325)
at createTable.main(createTable.java:96)

Search Discussions

  • Stack at Jul 15, 2011 at 5:28 pm
    I agree. Mind making a patch Gao (Lets try and get it into 0.90.4).
    Thanks,
    St.Ack
    On Thu, Jul 14, 2011 at 7:43 PM, Gaojinchao wrote:
    It happened in latest branch 0.90. but I can't reproduce it.

    It seems using api getHRegionInfoOrNull is better or check the input parameter before call getHRegionInfo.

    Code:
    public static Writable getWritable(final byte [] bytes, final Writable w)
    throws IOException {
    return getWritable(bytes, 0, bytes.length, w);
    }
    return getWritable(bytes, 0, bytes.length, w);  // It seems input parameter bytes is null

    logs:
    11/07/15 10:15:42 INFO zookeeper.ClientCnxn: Socket connection established to C4C3.site/157.5.100.3:2181, initiating session
    11/07/15 10:15:42 INFO zookeeper.ClientCnxn: Session establishment complete on server C4C3.site/157.5.100.3:2181, sessionid = 0x2312b8e3f700002, negotiated timeout = 180000
    [INFO] Create : ufdr111 222!
    [INFO] Create : ufdr111 start!
    java.lang.NullPointerException
    at org.apache.hadoop.hbase.util.Writables.getWritable(Writables.java:75)
    at org.apache.hadoop.hbase.util.Writables.getHRegionInfo(Writables.java:119)
    at org.apache.hadoop.hbase.client.HBaseAdmin$1.processRow(HBaseAdmin.java:306)
    at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:190)
    at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:95)
    at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:73)
    at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:325)
    at createTable.main(createTable.java:96)

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieshbase, hadoop
postedJul 15, '11 at 2:44a
activeJul 15, '11 at 5:28p
posts2
users2
websitehbase.apache.org

2 users in discussion

Gaojinchao: 1 post Stack: 1 post

People

Translate

site design / logo © 2022 Grokbase