hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Purtell <apurt...@apache.org>
Subject Re: Region server throwing NPE.
Date Tue, 24 Nov 2009 21:12:58 GMT
Are you sure the HBase and Hadoop jars on the client and server sides are the same version?
Any chance another version is on the classpath? 

   - Andy




________________________________
From: prasenjit mukherjee <prasen.bea@gmail.com>
To: hbase-user@hadoop.apache.org
Sent: Tue, November 24, 2009 4:34:27 AM
Subject: Region server throwing NPE.

I am using hadoop-20.1 with hbase-20.1. I am able to create,list,scan
rows/tables via hbase shell.

This is the stacktrace from client side :

09/11/24 17:13:45 WARN client.HConnectionManager$TableServers: Testing
for table existence threw exception
org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to
contact region server null for region , row '', but failed after 10
attempts.
Exceptions:
java.io.IOException: java.io.IOException: java.lang.NullPointerException
    at java.lang.Class.searchMethods(Class.java:2646)
    at java.lang.Class.getMethod0(Class.java:2670)
    at java.lang.Class.getMethod(Class.java:1603)
    at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:643)
    at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)

......10 times.

    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getRegionServerWithRetries(HConnectionManager.java:994)
    at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:54)
    at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:28)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.listTables(HConnectionManager.java:427)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.tableExists(HConnectionManager.java:377)
    at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:113)
    at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:100)
    at org.apache.hama.matrix.AbstractMatrix.create(AbstractMatrix.java:131)
    at org.apache.hama.matrix.AbstractMatrix.tryToCreateTable(AbstractMatrix.java:110)
    at org.apache.hama.matrix.SparseMatrix.<init>(SparseMatrix.java:64)
    at org.apache.hama.matrix.SparseMatrix.random_mapred(SparseMatrix.java:122)
    at org.apache.hama.examples.RandomMatrix.main(RandomMatrix.java:49)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
    at org.apache.hama.examples.ExampleDriver.main(ExampleDriver.java:34)
09/11/24 17:13:45 INFO matrix.AbstractMatrix: Initializing the matrix storage.
java.lang.reflect.UndeclaredThrowableException
    at $Proxy1.getRegionInfo(Unknown Source)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:931)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:573)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:549)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:623)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:582)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:549)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:623)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:586)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:549)
    at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:169)
    at org.apache.hama.matrix.AbstractMatrix.create(AbstractMatrix.java:149)
    at org.apache.hama.matrix.AbstractMatrix.tryToCreateTable(AbstractMatrix.java:110)
    at org.apache.hama.matrix.SparseMatrix.<init>(SparseMatrix.java:64)
    at org.apache.hama.matrix.SparseMatrix.random_mapred(SparseMatrix.java:122)
    at org.apache.hama.examples.RandomMatrix.main(RandomMatrix.java:49)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
    at org.apache.hama.examples.ExampleDriver.main(ExampleDriver.java:34)
Caused by: org.apache.hadoop.ipc.RemoteException: java.io.IOException:
java.lang.NullPointerException
    at java.lang.Class.searchMethods(Class.java:2646)
    at java.lang.Class.getMethod0(Class.java:2670)
    at java.lang.Class.getMethod(Class.java:1603)
    at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:643)
    at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)

    at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:723)
    at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:328)
    ... 23 more
==================================================================================

This is from  the Region Server side :

2009-11-24 16:54:10,202 INFO
org.apache.hadoop.hbase.regionserver.HRegionServer: Worker:
MSG_REGION_OPEN: -ROOT-,,0
2009-11-24 16:54:10,392 INFO
org.apache.hadoop.hbase.regionserver.HRegion: region
-ROOT-,,0/70236052 available; sequence id is 3
2009-11-24 16:54:16,041 INFO
org.apache.hadoop.hbase.regionserver.HRegionServer: MSG_REGION_OPEN:
.META.,,1
2009-11-24 16:54:16,047 INFO
org.apache.hadoop.hbase.regionserver.HRegionServer: Worker:
MSG_REGION_OPEN: .META.,,1
2009-11-24 16:54:16,088 INFO
org.apache.hadoop.hbase.regionserver.HRegion: region
.META.,,1/1028785192 available; sequence id is 0
2009-11-24 17:01:34,846 INFO
org.apache.hadoop.hbase.regionserver.HRegionServer: MSG_REGION_OPEN:
t1,,1259062291780
2009-11-24 17:01:34,846 INFO
org.apache.hadoop.hbase.regionserver.HRegionServer: Worker:
MSG_REGION_OPEN: t1,,1259062291780
2009-11-24 17:01:34,892 INFO
org.apache.hadoop.hbase.regionserver.HRegion: region
t1,,1259062291780/896765772 available; sequence id is 0
2009-11-24 17:03:56,053 INFO
org.apache.hadoop.hbase.regionserver.HRegionServer: compactions no
longer limited
2009-11-24 17:09:51,024 INFO org.apache.hadoop.ipc.HBaseServer: IPC
Server handler 1 on 60020, call null([B@12943ac) from 127.0.1.1:55630:
error: java.io.IOException: java.lang.NullPointerException
java.io.IOException: java.lang.NullPointerException
    at java.lang.Class.searchMethods(Class.java:2646)
    at java.lang.Class.getMethod0(Class.java:2670)
    at java.lang.Class.getMethod(Class.java:1603)
    at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:643)
    at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
2009-11-24 17:09:53,044 INFO org.apache.hadoop.ipc.HBaseServer: IPC
Server handler 2 on 60020, call null([B@189f854) from 127.0.1.1:55630:
error: java.io.IOException: java.lang.NullPointerException
java.io.IOException: java.lang.NullPointerException
    at java.lang.Class.searchMethods(Class.java:2646)
    at java.lang.Class.getMethod0(Class.java:2670)
    at java.lang.Class.getMethod(Class.java:1603)
    at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:643)
    at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
2009-11-24 17:09:55,057 INFO org.apache.hadoop.ipc.HBaseServer: IPC
Server handler 3 on 60020, call null([B@178655) from 127.0.1.1:55630:
error: java.io.IOException: java.lang.NullPointerException
java.io.IOException: java.lang.NullPointerException
    at java.lang.Class.searchMethods(Class.java:2646)
    at java.lang.Class.getMethod0(Class.java:2670)
    at java.lang.Class.getMethod(Class.java:1603)
    at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:643)
    at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
2009-11-24 17:09:57,067 INFO org.apache.hadoop.ipc.HBaseServer: IPC
Server handler 4 on 60020, call null([B@1be4663) from 127.0.1.1:55630:
error: java.io.IOException: java.lang.NullPointerException

Any pointers greatly appreciated.

-Prasen



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