Re: auto-failover does not work

2013-12-02 Thread YouPeng Yang
Hi Thanks for your reply. It works. Formerly, I setup the ssh with a passwd,and before start-dfs.sh or stop-dfs.sh ,it needs to enter password once by enter ssh-agent bash and ssh-add. Now I recreate the rsa without a passwd.Finnaly it work -HA does the automatic-failover.. But I do

Re: auto-failover does not work

2013-12-02 Thread Jitendra Yadav
If you are using hadoop user and you have correct ssh conf then below commands should works without password. Execute from NN2 & NN1 # ssh hadoop@NN1_host & Execute from NN2 & NN1 # ssh hadoop@NN2_host Regards Jitendra On Mon, Dec 2, 2013 at 6:10 PM, YouPeng Yang wrote: > Hi Jitendra > Y

Re: auto-failover does not work

2013-12-02 Thread YouPeng Yang
Hi Jitendra Yes I'm doubt that it need to enter the ssh-agent bash & ssh-add before I ssh the NN from each other.Is it an problem? Regards 2013/12/2 Jitendra Yadav > Are you able to connect both NN hosts using SSH without password? > Make sure you have correct ssh keys in authorized key

Re: auto-failover does not work

2013-12-02 Thread Jitendra Yadav
Are you able to connect both NN hosts using SSH without password? Make sure you have correct ssh keys in authorized key file. Regards Jitendra On Mon, Dec 2, 2013 at 5:50 PM, YouPeng Yang wrote: > Hi Pavan > > > I'm using sshfence > > --core-site.xml- > > > > fs.de

Re: auto-failover does not work

2013-12-02 Thread YouPeng Yang
Hi Pavan I'm using sshfence --core-site.xml- fs.defaultFS hdfs://lklcluster true hadoop.tmp.dir /home/hadoop/tmp2 ---hdfs-site.xml- dfs.namenode.name.dir /home/hadoop/namedir2 dfs.datanode.data.

Re: auto-failover does not work

2013-12-02 Thread Pavan Kumar Polineni
Post your config files and in which method you are following for automatic failover On Mon, Dec 2, 2013 at 5:34 PM, YouPeng Yang wrote: > Hi i > I'm testing the HA auto-failover within hadoop-2.2.0 > > The cluster can be manully failover ,however failed with the automatic > failover. > I set

Re: auto-failover does not work

2013-12-02 Thread Jitendra Yadav
Which fencing method you are using in you configuration? Do you have correct ssh configuration between your hosts? Regards Jitendra On Mon, Dec 2, 2013 at 5:34 PM, YouPeng Yang wrote: > Hi i > I'm testing the HA auto-failover within hadoop-2.2.0 > > The cluster can be manully failover ,how

auto-failover does not work

2013-12-02 Thread YouPeng Yang
Hi i I'm testing the HA auto-failover within hadoop-2.2.0 The cluster can be manully failover ,however failed with the automatic failover. I setup the HA according to the URL http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/HDFSHighAvailabilityWithQJM.html When I test th