You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Bruno Andrade <bm...@eurotux.com> on 2014/01/20 13:11:35 UTC
Hadoop 2 Namenode HA not working properly
Hey,
I have configured a Hadoop v2.2.0 cluster with QJM and Zookeeper for HA
and automatic failover.
But I'm having a problem. If I test the automatic failover, by killing
one of the namenodes, nothing happens. But if I kill the zkfc of that
namenode, then zookeeper elects the other namenode as active.
What can it be the problem?
Thanks.
--
Bruno Andrade <bm...@eurotux.com>
Programador (I&D)
Eurotux Informática, S.A. | www.eurotux.com
(t) +351 253 680 300 (m) +351 936 293 858
Re: Hadoop 2 Namenode HA not working properly
Posted by Bruno Andrade <bm...@eurotux.com>.
Hey,
this is my hdfs-site.xml -> http://pastebin.com/qpELkwH8
this is my core-site.xml:
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://blabla-hadoop</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/hadoop/hadoop/tmp</value>
</property>
</configuration>
I kill only the namenode process and nothing happen, then I killed zkfc
process and the transition happend, the second namenode become active.
Thanks.
On 01/20/2014 06:44 PM, Jing Zhao wrote:
> Hi Bruno,
>
> Could you post your configuration? Also, when you killed one of
> the NN, you mean only killing the NN process or you shutdown the whole
> machine?
>
> Thanks,
> -Jing
>
> On Mon, Jan 20, 2014 at 4:11 AM, Bruno Andrade <bm...@eurotux.com> wrote:
>> Hey,
>>
>> I have configured a Hadoop v2.2.0 cluster with QJM and Zookeeper for HA and
>> automatic failover.
>> But I'm having a problem. If I test the automatic failover, by killing one
>> of the namenodes, nothing happens. But if I kill the zkfc of that namenode,
>> then zookeeper elects the other namenode as active.
>>
>> What can it be the problem?
>>
>> Thanks.
>>
>> --
>> Bruno Andrade <bm...@eurotux.com>
>> Programador (I&D)
>> Eurotux Informática, S.A. | www.eurotux.com
>> (t) +351 253 680 300 (m) +351 936 293 858
--
Bruno Andrade <bm...@eurotux.com>
Programador (I&D)
Eurotux Informática, S.A. | www.eurotux.com
(t) +351 253 680 300 (m) +351 936 293 858
Re: Hadoop 2 Namenode HA not working properly
Posted by Bruno Andrade <bm...@eurotux.com>.
Hey,
this is my hdfs-site.xml -> http://pastebin.com/qpELkwH8
this is my core-site.xml:
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://blabla-hadoop</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/hadoop/hadoop/tmp</value>
</property>
</configuration>
I kill only the namenode process and nothing happen, then I killed zkfc
process and the transition happend, the second namenode become active.
Thanks.
On 01/20/2014 06:44 PM, Jing Zhao wrote:
> Hi Bruno,
>
> Could you post your configuration? Also, when you killed one of
> the NN, you mean only killing the NN process or you shutdown the whole
> machine?
>
> Thanks,
> -Jing
>
> On Mon, Jan 20, 2014 at 4:11 AM, Bruno Andrade <bm...@eurotux.com> wrote:
>> Hey,
>>
>> I have configured a Hadoop v2.2.0 cluster with QJM and Zookeeper for HA and
>> automatic failover.
>> But I'm having a problem. If I test the automatic failover, by killing one
>> of the namenodes, nothing happens. But if I kill the zkfc of that namenode,
>> then zookeeper elects the other namenode as active.
>>
>> What can it be the problem?
>>
>> Thanks.
>>
>> --
>> Bruno Andrade <bm...@eurotux.com>
>> Programador (I&D)
>> Eurotux Informática, S.A. | www.eurotux.com
>> (t) +351 253 680 300 (m) +351 936 293 858
--
Bruno Andrade <bm...@eurotux.com>
Programador (I&D)
Eurotux Informática, S.A. | www.eurotux.com
(t) +351 253 680 300 (m) +351 936 293 858
Re: Hadoop 2 Namenode HA not working properly
Posted by Bruno Andrade <bm...@eurotux.com>.
Hey,
this is my hdfs-site.xml -> http://pastebin.com/qpELkwH8
this is my core-site.xml:
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://blabla-hadoop</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/hadoop/hadoop/tmp</value>
</property>
</configuration>
I kill only the namenode process and nothing happen, then I killed zkfc
process and the transition happend, the second namenode become active.
Thanks.
On 01/20/2014 06:44 PM, Jing Zhao wrote:
> Hi Bruno,
>
> Could you post your configuration? Also, when you killed one of
> the NN, you mean only killing the NN process or you shutdown the whole
> machine?
>
> Thanks,
> -Jing
>
> On Mon, Jan 20, 2014 at 4:11 AM, Bruno Andrade <bm...@eurotux.com> wrote:
>> Hey,
>>
>> I have configured a Hadoop v2.2.0 cluster with QJM and Zookeeper for HA and
>> automatic failover.
>> But I'm having a problem. If I test the automatic failover, by killing one
>> of the namenodes, nothing happens. But if I kill the zkfc of that namenode,
>> then zookeeper elects the other namenode as active.
>>
>> What can it be the problem?
>>
>> Thanks.
>>
>> --
>> Bruno Andrade <bm...@eurotux.com>
>> Programador (I&D)
>> Eurotux Informática, S.A. | www.eurotux.com
>> (t) +351 253 680 300 (m) +351 936 293 858
--
Bruno Andrade <bm...@eurotux.com>
Programador (I&D)
Eurotux Informática, S.A. | www.eurotux.com
(t) +351 253 680 300 (m) +351 936 293 858
Re: Hadoop 2 Namenode HA not working properly
Posted by Bruno Andrade <bm...@eurotux.com>.
Hey,
this is my hdfs-site.xml -> http://pastebin.com/qpELkwH8
this is my core-site.xml:
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://blabla-hadoop</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/hadoop/hadoop/tmp</value>
</property>
</configuration>
I kill only the namenode process and nothing happen, then I killed zkfc
process and the transition happend, the second namenode become active.
Thanks.
On 01/20/2014 06:44 PM, Jing Zhao wrote:
> Hi Bruno,
>
> Could you post your configuration? Also, when you killed one of
> the NN, you mean only killing the NN process or you shutdown the whole
> machine?
>
> Thanks,
> -Jing
>
> On Mon, Jan 20, 2014 at 4:11 AM, Bruno Andrade <bm...@eurotux.com> wrote:
>> Hey,
>>
>> I have configured a Hadoop v2.2.0 cluster with QJM and Zookeeper for HA and
>> automatic failover.
>> But I'm having a problem. If I test the automatic failover, by killing one
>> of the namenodes, nothing happens. But if I kill the zkfc of that namenode,
>> then zookeeper elects the other namenode as active.
>>
>> What can it be the problem?
>>
>> Thanks.
>>
>> --
>> Bruno Andrade <bm...@eurotux.com>
>> Programador (I&D)
>> Eurotux Informática, S.A. | www.eurotux.com
>> (t) +351 253 680 300 (m) +351 936 293 858
--
Bruno Andrade <bm...@eurotux.com>
Programador (I&D)
Eurotux Informática, S.A. | www.eurotux.com
(t) +351 253 680 300 (m) +351 936 293 858
Re: Hadoop 2 Namenode HA not working properly
Posted by Jing Zhao <ji...@hortonworks.com>.
Hi Bruno,
Could you post your configuration? Also, when you killed one of
the NN, you mean only killing the NN process or you shutdown the whole
machine?
Thanks,
-Jing
On Mon, Jan 20, 2014 at 4:11 AM, Bruno Andrade <bm...@eurotux.com> wrote:
> Hey,
>
> I have configured a Hadoop v2.2.0 cluster with QJM and Zookeeper for HA and
> automatic failover.
> But I'm having a problem. If I test the automatic failover, by killing one
> of the namenodes, nothing happens. But if I kill the zkfc of that namenode,
> then zookeeper elects the other namenode as active.
>
> What can it be the problem?
>
> Thanks.
>
> --
> Bruno Andrade <bm...@eurotux.com>
> Programador (I&D)
> Eurotux Informática, S.A. | www.eurotux.com
> (t) +351 253 680 300 (m) +351 936 293 858
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.
Re: Hadoop 2 Namenode HA not working properly
Posted by Jing Zhao <ji...@hortonworks.com>.
Hi Bruno,
Could you post your configuration? Also, when you killed one of
the NN, you mean only killing the NN process or you shutdown the whole
machine?
Thanks,
-Jing
On Mon, Jan 20, 2014 at 4:11 AM, Bruno Andrade <bm...@eurotux.com> wrote:
> Hey,
>
> I have configured a Hadoop v2.2.0 cluster with QJM and Zookeeper for HA and
> automatic failover.
> But I'm having a problem. If I test the automatic failover, by killing one
> of the namenodes, nothing happens. But if I kill the zkfc of that namenode,
> then zookeeper elects the other namenode as active.
>
> What can it be the problem?
>
> Thanks.
>
> --
> Bruno Andrade <bm...@eurotux.com>
> Programador (I&D)
> Eurotux Informática, S.A. | www.eurotux.com
> (t) +351 253 680 300 (m) +351 936 293 858
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.
Re: Hadoop 2 Namenode HA not working properly
Posted by Jing Zhao <ji...@hortonworks.com>.
Hi Bruno,
Could you post your configuration? Also, when you killed one of
the NN, you mean only killing the NN process or you shutdown the whole
machine?
Thanks,
-Jing
On Mon, Jan 20, 2014 at 4:11 AM, Bruno Andrade <bm...@eurotux.com> wrote:
> Hey,
>
> I have configured a Hadoop v2.2.0 cluster with QJM and Zookeeper for HA and
> automatic failover.
> But I'm having a problem. If I test the automatic failover, by killing one
> of the namenodes, nothing happens. But if I kill the zkfc of that namenode,
> then zookeeper elects the other namenode as active.
>
> What can it be the problem?
>
> Thanks.
>
> --
> Bruno Andrade <bm...@eurotux.com>
> Programador (I&D)
> Eurotux Informática, S.A. | www.eurotux.com
> (t) +351 253 680 300 (m) +351 936 293 858
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.
Re: Hadoop 2 Namenode HA not working properly
Posted by Jing Zhao <ji...@hortonworks.com>.
Hi Bruno,
Could you post your configuration? Also, when you killed one of
the NN, you mean only killing the NN process or you shutdown the whole
machine?
Thanks,
-Jing
On Mon, Jan 20, 2014 at 4:11 AM, Bruno Andrade <bm...@eurotux.com> wrote:
> Hey,
>
> I have configured a Hadoop v2.2.0 cluster with QJM and Zookeeper for HA and
> automatic failover.
> But I'm having a problem. If I test the automatic failover, by killing one
> of the namenodes, nothing happens. But if I kill the zkfc of that namenode,
> then zookeeper elects the other namenode as active.
>
> What can it be the problem?
>
> Thanks.
>
> --
> Bruno Andrade <bm...@eurotux.com>
> Programador (I&D)
> Eurotux Informática, S.A. | www.eurotux.com
> (t) +351 253 680 300 (m) +351 936 293 858
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.