Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> Install HBase on hadoop-2.2.0


Copy link to this message
-
Re: Install HBase on hadoop-2.2.0
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 <[EMAIL PROTECTED]> 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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB