hbase master not running in hadoop

1,296 views
Skip to first unread message

veerendra Pipuru

unread,
Oct 6, 2013, 9:46:14 AM10/6/13
to chenn...@googlegroups.com
Hi All,
i am new to hadoop eco system tools.
In  hadoop-1.2.0, i have installed hbase-0.90.4 in  my machine  and zookeeper-3.3.5.
when i see the jobs running by JPS command, i am able to see  the below processes only.

4333 HRegionServer
3479 SecondaryNameNode
3027 NameNode
3787 TaskTracker
4743 Jps
4093 HQuorumPeer
3246 DataNode
3562 JobTracker.


1.export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386 is my hbase-env.sh entry
2.export HBASE_HOME=/home/veerendrapipuru/data/hbase-0.90.4 and export PATH=$PIG_HOME/bin:$HIVE_HOME/bin:$JAVA_HOME/bin:$HADOOP_HOME/bin:$HBASE_HOME/bin:$PATH are my ~/.bashrc entries
3.My hbase-site.xml is
 
<configuration>
<property>
        <!-- This is the location in HDFS that HBase will use to store its files -->
    <name>hbase.rootdir</name>
        <value>hdfs://localhost:54310/hbase</value>
          </property>
            <property>
                <name>hbase.cluster.distributed</name>
                    <value>true</value>
                      </property>
   <property>
       <name>hbase.zookeeper.quorum</name>
    <value>localhost</value>
      </property>
        <property>
            <name>hbase.zookeeper.property.dataDir</name>
                <value>/home/veerendrapipuru/data/zookeeper</value>
                  </property>

</configuration>

Ashwanth Kumar

unread,
Oct 6, 2013, 10:52:46 AM10/6/13
to chenn...@googlegroups.com
What does the HMaster logs say? 


--
You received this message because you are subscribed to the Google Groups "Hadoop Users Group (HUG) Chennai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chennaihug+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

Ashwanth Kumar / ashwanthkumar.in

Senthil Kumar

unread,
Oct 6, 2013, 10:53:29 AM10/6/13
to chenn...@googlegroups.com
Can you please post the hmaster logs??

- Senthil Kumar A

veerendra Pipuru

unread,
Oct 6, 2013, 11:13:46 AM10/6/13
to chenn...@googlegroups.com
13/10/06 20:06:59 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
13/10/06 20:06:59 INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
13/10/06 20:06:59 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
13/10/06 20:06:59 INFO zookeeper.ZooKeeper: Client environment:os.arch=i386
13/10/06 20:06:59 INFO zookeeper.ZooKeeper: Client environment:os.version=3.5.0-40-generic
13/10/06 20:06:59 INFO zookeeper.ZooKeeper: Client environment:user.name=veerendrapipuru
13/10/06 20:06:59 INFO zookeeper.ZooKeeper: Client environment:user.home=/home/veerendrapipuru
13/10/06 20:06:59 INFO zookeeper.ZooKeeper: Client environment:user.dir=/home/veerendrapipuru/data/hbase-0.90.4/conf
13/10/06 20:06:59 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
13/10/06 20:06:59 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181
13/10/06 20:06:59 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
13/10/06 20:06:59 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x1418e2c352f0001, negotiated timeout = 180000
13/10/06 20:06:59 INFO client.HConnectionManager$HConnectionImplementation: ZooKeeper available but no active master location found
13/10/06 20:06:59 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 0 of 1 failed; no more retrying.
org.apache.hadoop.hbase.MasterNotRunningException
    at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:357)
    at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
    at org.apache.hadoop.hbase.master.HMasterCommandLine.stopMaster(HMasterCommandLine.java:163)
    at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
    at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1078)
13/10/06 20:06:59 ERROR master.HMasterCommandLine: Master not running

Senthil Kumar

unread,
Oct 6, 2013, 11:22:19 AM10/6/13
to chenn...@googlegroups.com
Can you post your  /etc/hosts??
If you are using ubuntu, please comment 127.0.1.1 and restart


Senthil Kumar A

Ashwanth Kumar

unread,
Oct 6, 2013, 11:28:14 AM10/6/13
to chenn...@googlegroups.com
Do you have ZK running separately? What does the ZK logs say? 


--
You received this message because you are subscribed to the Google Groups "Hadoop Users Group (HUG) Chennai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chennaihug+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Sb Gowtham

unread,
Oct 6, 2013, 2:24:16 PM10/6/13
to chenn...@googlegroups.com
check after disconnecting your internet it will work 

veerendra Pipuru

unread,
Oct 7, 2013, 1:55:40 AM10/7/13
to chenn...@googlegroups.com
Hi All,
thanks for the replies.

senthil, 
i have done that before.
 /etc/hosts is pointing local host as  127.0.0.1 only.

Ashwanth,
ZK was running under  the process numbers
4333 HRegionServer and 
4093 HQuorumPeer

problem was solved with the below change :

when i have changed the hbase-site.xml's  hbase.rootdir value from  


 <name>hbase.rootdir</name>
        <value>hdfs://localhost:54310/hbase</value>

to 

 <name>hbase.rootdir</name>
        <value>/home/veerendrapipuru/data/hbase-0.90.4</value>

my HMaster started working.
hbase root directory must be pointing to hbase actual location in the machine instead 

Ashwanth Kumar

unread,
Oct 7, 2013, 2:12:52 AM10/7/13
to chenn...@googlegroups.com
Actually that is wrong. It should only point to location where it must store HBase tables (typically folders under hbase.root.dir)

Is your HDFS running on 54310 ? Can you share the hdfs-site + core-site configurations? 


--
You received this message because you are subscribed to the Google Groups "Hadoop Users Group (HUG) Chennai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chennaihug+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Senthil Kumar

unread,
Oct 7, 2013, 2:55:27 AM10/7/13
to chenn...@googlegroups.com, ashwan...@googlemail.com

Veerendra Pipuru

unread,
Oct 8, 2013, 1:43:51 PM10/8/13
to chenn...@googlegroups.com, ashwan...@googlemail.com

Thanks Ashwanth,

Attached are the xml files which you asked for.
yes, and my hadoop is running on 54310 as u asked. please let me know if configurations need to be changed in my config files
hbase-site.xml
core-site.xml

Ashwanth Kumar

unread,
Oct 8, 2013, 2:33:59 PM10/8/13
to Veerendra Pipuru, chenn...@googlegroups.com
No problems with the configurations so far. 

Instead of hdfs://localhost:54310/hbase can you try using hdfs://127.0.0.1:54310/hbase ? This ideally shouldn't work, but if this does. Then you might need to re-look into /etc/hosts again for any misconfiguration. 

lakshminarayan

unread,
Oct 9, 2013, 5:05:23 AM10/9/13
to chenn...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages