hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Install HBase on hadoop-2.2.0
Date Fri, 25 Oct 2013 20:50:51 GMT
The NPE was reported on the third line below (looking at HRegionServer.java
in 0.96 branch):

          Pair<HRegionInfo, ServerName> p = MetaReader.getRegion(
              this.catalogTracker, region.getRegionName());
          if (this.getServerName().equals(p.getSecond())) {

Looks like p might be null.

bq. 2013-10-25 14:16:54,836 [myid:] - INFO  [main:ShutdownHook@87] -
Installed shutdown hook thread: Shutdownhook:regionserver60

Was there more in region server log after the above line ?

Cheers

On Fri, Oct 25, 2013 at 11:24 AM, psynophile <psynophile@gmail.com> wrote:

> I can't get test commands to work with hbase. Could someone help me figure
> this out? Everything seems to be set up correctly, jps reports that hmaster
> is running on the master node, hadoop1, and region servers are running on
> the other nodes, but I get this:
>
> hbase(main):001:0> create 'test', 'cf'
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
>
> [jar:file:/opt/hadoop/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
>
> [jar:file:/opt/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library
> /opt/hadoop/lib/native/libhadoop.so.1.0.0 which might have disabled stack
> guard. The VM will try to fix the stack guard now.
> It's highly recommended that you fix the library with 'execstack -c
> <libfile>', or link it with '-z noexecstack'.
> 2013-10-25 14:17:02,792 [myid:] - WARN  [main:NativeCodeLoader@62] -
> Unable
> to load native-hadoop library for your platform... using builtin-java
> classes where applicable
>
> ERROR: Can't get master address from ZooKeeper; znode data == null
>
>
> Here is my hbase-site.xml:
> <configuration>
>   <property>
>     <name>hbase.zookeeper.quorum</name>
>
>
> <value>hadoop1.local,node1.local,node2.local,node3.local,node4.local</value>
>     <description>The directory shared by RegionServers.
>     </description>
>   </property>
>   <property>
>     <name>hbase.zookeeper.property.dataDir</name>
>     <value>/hadoop/zoo/data</value>
>     <description>Property from ZooKeeper's config zoo.cfg.
>     The directory where the snapshot is stored.
>     </description>
>   </property>
>   <property>
>     <name>hbase.rootdir</name>
>     <value>hdfs://10.11.1.1:9000/hbase</value>
>     <description>The directory shared by RegionServers.
>     </description>
>   </property>
>   <property>
>     <name>hbase.cluster.distributed</name>
>     <value>true</value>
>     <description>The mode the cluster will be in. Possible values are
>       false: standalone and pseudo-distributed setups with managed
> Zookeeper
>       true: fully-distributed with unmanaged Zookeeper Quorum (see
> hbase-env.sh)
>     </description>
>   </property>
> </configuration>
>
> hbase-env.sh:
> [hadoop@hadoop1 hbase]$ cat conf/hbase-env.sh | grep -e CLASS -e ZK
> # Extra Java CLASSPATH elements.  Optional.
> export
>
> HBASE_CLASSPATH=$HBASE_CLASSPATH:/opt/hadoop/zookeeper/conf:/opt/hadoop/zookeeper
> export HBASE_MANAGES_ZK=false
> [hadoop@hadoop1 hbase]$
>
> I have zookeeper set up and running also.
> Here is the log output from master:
>
> tail -200 /opt/hadoop/hbase/logs/hbase-hadoop-master-hadoop1.out
> 2013-10-25 14:12:30,247 [myid:] - WARN
> [master:hadoop1:60000:AssignmentManager@1974] - Failed assignment of
> hbase:meta,,1.1588230740 to node3.local,60020,1382724162208, trying to
> assign elsewhere instead; try=10 of 10
> java.io.IOException: java.io.IOException
>         at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2184)
>         at
> org.apache.hadoop.hbase.ipc.RpcServer$Handler.run(RpcServer.java:1851)
> Caused by: java.lang.NullPointerException
>         at
>
> org.apache.hadoop.hbase.regionserver.HRegionServer.openRegion(HRegionServer.java:3483)
>         at
>
> org.apache.hadoop.hbase.protobuf.generated.AdminProtos$AdminService$2.callBlockingMethod(AdminProtos.java:19795)
>         at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2146)
>         ... 1 more
>
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>         at
>
> org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:106)
>         at
>
> org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:95)
>         at
>
> org.apache.hadoop.hbase.protobuf.ProtobufUtil.getRemoteException(ProtobufUtil.java:235)
>         at
>
> org.apache.hadoop.hbase.master.ServerManager.sendRegionOpen(ServerManager.java:631)
>         at
>
> org.apache.hadoop.hbase.master.AssignmentManager.assign(AssignmentManager.java:1901)
>         at
>
> org.apache.hadoop.hbase.master.AssignmentManager.assign(AssignmentManager.java:1449)
>         at
>
> org.apache.hadoop.hbase.master.AssignmentManager.assign(AssignmentManager.java:1422)
>         at
>
> org.apache.hadoop.hbase.master.AssignmentManager.assignMeta(AssignmentManager.java:2437)
>         at
> org.apache.hadoop.hbase.master.HMaster.assignMeta(HMaster.java:1013)
>         at
>
> org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:866)
>         at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:603)
>         at java.lang.Thread.run(Thread.java:724)
> Caused by:
> org.apache.hadoop.hbase.ipc.RemoteWithExtrasException(java.io.IOException):
> java.io.IOException
>         at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2184)
>         at
> org.apache.hadoop.hbase.ipc.RpcServer$Handler.run(RpcServer.java:1851)
> Caused by: java.lang.NullPointerException
>         at
>
> org.apache.hadoop.hbase.regionserver.HRegionServer.openRegion(HRegionServer.java:3483)
>         at
>
> org.apache.hadoop.hbase.protobuf.generated.AdminProtos$AdminService$2.callBlockingMethod(AdminProtos.java:19795)
>         at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2146)
>         ... 1 more
>
>         at org.apache.hadoop.hbase.ipc.RpcClient.call(RpcClient.java:1446)
>         at
>
> org.apache.hadoop.hbase.ipc.RpcClient.callBlockingMethod(RpcClient.java:1650)
>         at
>
> org.apache.hadoop.hbase.ipc.RpcClient$BlockingRpcChannelImplementation.callBlockingMethod(RpcClient.java:1708)
>         at
>
> org.apache.hadoop.hbase.protobuf.generated.AdminProtos$AdminService$BlockingStub.openRegion(AdminProtos.java:20595)
>         at
>
> org.apache.hadoop.hbase.master.ServerManager.sendRegionOpen(ServerManager.java:628)
>         ... 8 more
> 2013-10-25 14:12:30,248 [myid:] - WARN
> [master:hadoop1:60000:RegionStates@312] - Failed to transition 1588230740
> on
> node3.local,60020,1382724162208, set to FAILED_OPEN
> 2013-10-25 14:12:30,248 [myid:] - INFO
> [master:hadoop1:60000:RegionStates@321] - Transitioned {1588230740
> state=PENDING_OPEN, ts=1382724750239,
> server=node3.local,60020,1382724162208} to {1588230740 state=FAILED_OPEN,
> ts=1382724750248, server=node3.local,60020,1382724162208}
> 2013-10-25 14:12:30,248 [myid:] - INFO
> [master:hadoop1:60000:ServerManager@557] - AssignmentManager hasn't
> finished
> failover cleanup; waiting
> 2013-10-25 14:16:55,130 [myid:] - INFO
> [RpcServer.handler=16,port=60000:ServerManager@369] - Registering
> server=node1.local,60020,1382725013788
> 2013-10-25 14:16:55,136 [myid:] - INFO
> [RpcServer.handler=16,port=60000:Configuration@840] - fs.default.name is
> deprecated. Instead, use fs.defa
>
>
> Thanks!
>
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/Install-HBase-on-hadoop-2-2-0-tp4052188.html
> Sent from the HBase User mailing list archive at Nabble.com.
>

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