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
Hadoop >> mail # user >> HBase MasterNotRunningException


Copy link to this message
-
Re: HBase MasterNotRunningException
Hi Anil,

Please see the below commands which I executed and respective outputs.

on HBase and Hadoop box

[rtit@localhost conf]$ netstat -alnp | grep 2181
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 :::2181                     :::*
 LISTEN      22572/java
tcp        0      0 ::ffff:192.265.47.222:2181  ::ffff:192.265.47.222:60094
ESTABLISHED 22572/java
tcp        0      0 ::ffff:192.265.47.222:2181  ::ffff:192.265.47.222:60117
ESTABLISHED 22572/java
tcp        0      0 ::ffff:192.265.47.222:2181  ::ffff:192.265.47.222:60098
ESTABLISHED 22572/java
tcp        0      0 ::ffff:192.265.47.222:60098 ::ffff:192.265.47.222:2181
 ESTABLISHED 22642/java
tcp        0      0 ::ffff:192.265.47.222:60094 ::ffff:192.265.47.222:2181
 ESTABLISHED 22842/java
tcp        0      0 ::ffff:192.265.47.222:60117 ::ffff:192.265.47.222:2181
 ESTABLISHED 22842/java
tcp        0      0 ::ffff:192.265.47.222:60089 ::ffff:192.265.47.222:2181
 ESTABLISHED 22642/java
tcp        0      0 ::ffff:192.265.47.222:2181  ::ffff:192.265.47.222:60089
ESTABLISHED 22572/java
[rtit@localhost conf]$ telnet localhost 2181
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
[rtit@localhost conf]$
[rtit@localhost conf]$ telnet 192.265.47.222 2181
Trying 192.265.47.222...
Connected to 192.265.47.222.
Escape character is '^]'.
Connection closed by foreign host.
[rtit@localhost conf]$

--> From the remote box
[rtit@RTIT-1 hbasedemos]$ telnet 192.265.47.222 2181
Trying 192.265.47.222...
Connected to 192.265.47.222.
Escape character is '^]'.
Connection closed by foreign host.
[rtit@RTIT-1 hbasedemos]$
On Thu, Aug 30, 2012 at 8:58 PM, anil gupta <[EMAIL PROTECTED]> wrote:

> Then, it might be a issue with port binding. try to do telnet on the port
> to which HBase listens from localhost as well as remote machine.
> Also, try to run the netstat command and see the bindings of service.
>
> ~Anil
>
> On Thu, Aug 30, 2012 at 8:20 AM, Jilani Shaik <[EMAIL PROTECTED]>
> wrote:
>
> > Anil,
> >
> > Already I disabled firewall of linux using iptables service.
> >
> > Thank You,
> > Jilani
> >
> >
> > On Thu, Aug 30, 2012 at 8:35 PM, anil gupta <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hi Jilani,
> > >
> > > It seems like a firewall issue. You will need to open appropriate ports
> > or
> > > disable the firewall on the machine you are running the service.
> > >
> > > HTH,
> > > Anil
> > >
> > > On Thu, Aug 30, 2012 at 7:46 AM, Jilani Shaik <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > I am able to connect to HBase using Java client if the client is on
> the
> > > > same box where Hadoop and HBase are installed. If the client is on
> > other
> > > > box either windows or linux, I am getting the error as below
> > > >
> > > > org.apache.zookeeper.server.NIOServerCnxn: Closed socket connection
> for
> > > > client
> > > >
> > > > Please suggest me how to identify and fix the issue.
> > > >
> > > > Thank You,
> > > > Jilani
> > > >
> > > > On Thu, Aug 30, 2012 at 7:00 PM, Jilani Shaik <[EMAIL PROTECTED]>
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I have installed and configured  Hadoop(hadoop-1.0.3) and
> > > > > HBase(hbase-0.94.1) in a single Fedora linux box, where HBase
> > > > > as pseudo cluster setup.
> > > > >
> > > > > I am able to connect the HBase suing shell from console and able to
> > > > create
> > > > > and scan table. But when I tried to contact the same using java
> > > > application
> > > > > I am not able to connect the HBase.
> > > > >
> > > > > Output of "jps" as follows
> > > > > 16872 HRegionServer
> > > > > 16603 HQuorumPeer
> > > > > 15821 DataNode
> > > > > 16047 JobTracker
> > > > > 16667 HMaster
> > > > > 17984 Jps
> > > > > 15680 NameNode
> > > > > 15959 SecondaryNameNode
> > > > > 16179 TaskTracker
> > > > >
> > > > > The error log for zoo keeper of HBase is as follows
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