You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eli Collins (Created) (JIRA)" <ji...@apache.org> on 2012/01/19 03:18:39 UTC
[jira] [Created] (HADOOP-7983) HA: failover should be able to pass
args to fencers
HA: failover should be able to pass args to fencers
---------------------------------------------------
Key: HADOOP-7983
URL: https://issues.apache.org/jira/browse/HADOOP-7983
Project: Hadoop Common
Issue Type: Sub-task
Components: ha
Affects Versions: HA Branch (HDFS-1623)
Reporter: Eli Collins
Assignee: Eli Collins
Currently fencing method args are passed in the config (eg "sshfence(host1,8022)" indicates to fence the service running on port 8022 on host1. The target service to fence should be determined by the failover (we fence the currently active service) not configured statically.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7983) HA: failover should be able to
pass args to fencers
Posted by "Todd Lipcon (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13196349#comment-13196349 ]
Todd Lipcon commented on HADOOP-7983:
-------------------------------------
+1, looks good. The only suggestion I have is that, rather than always making the host:port the first argument to the fence script, it would be better to use a substitution token. That is to say, the user would configure "myfence.sh $TARGETHOST foo bar" and Hadoop would substitute the target. This would allow use of pre-existing scripts that might have a different ordering of arguments without a wrapper. If you want to do this as a followup, that's fine.
> HA: failover should be able to pass args to fencers
> ---------------------------------------------------
>
> Key: HADOOP-7983
> URL: https://issues.apache.org/jira/browse/HADOOP-7983
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: ha
> Affects Versions: HA Branch (HDFS-1623)
> Reporter: Eli Collins
> Assignee: Eli Collins
> Attachments: hadoop-7983.txt, hadoop-7983.txt
>
>
> Currently fencing method args are passed in the config (eg "sshfence(host1,8022)" indicates to fence the service running on port 8022 on host1. The target service to fence should be determined by the failover (we fence the currently active service) not configured statically.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7983) HA: failover should be able to
pass args to fencers
Posted by "Todd Lipcon (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195348#comment-13195348 ]
Todd Lipcon commented on HADOOP-7983:
-------------------------------------
Looks good, except that it's not clear throughout what a "service name" is. In this case it's a host:ipcport, right? We should be clearer about that -- or actually make the argument be an InetSocketAddress. I think I prefer the latter for explicit typing purposes. Do you think that's possible?
> HA: failover should be able to pass args to fencers
> ---------------------------------------------------
>
> Key: HADOOP-7983
> URL: https://issues.apache.org/jira/browse/HADOOP-7983
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: ha
> Affects Versions: HA Branch (HDFS-1623)
> Reporter: Eli Collins
> Assignee: Eli Collins
> Attachments: hadoop-7983.txt
>
>
> Currently fencing method args are passed in the config (eg "sshfence(host1,8022)" indicates to fence the service running on port 8022 on host1. The target service to fence should be determined by the failover (we fence the currently active service) not configured statically.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7983) HA: failover should be able to pass
args to fencers
Posted by "Eli Collins (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eli Collins updated HADOOP-7983:
--------------------------------
Attachment: hadoop-7983.txt
Patch attached. It depends on HADOOP-7938.
The fencers now get passed the target service as an argument at runtime (instead of not specific or configured statically). For the ssh-based fencer this means that the hostname we ssh to is the one passed to the failover command (HDFS-2808 will allow this to be a logical name but it will get mapped to the service address). It's possible that admins could want to use a separate interface/hostname for ssh'ing than the service address. To handle this we could allow admins to configure node-specific fencing methods or a config that map service addresses to ssh hostnames. I think we can punt on this for now unless it's needed in practice.
> HA: failover should be able to pass args to fencers
> ---------------------------------------------------
>
> Key: HADOOP-7983
> URL: https://issues.apache.org/jira/browse/HADOOP-7983
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: ha
> Affects Versions: HA Branch (HDFS-1623)
> Reporter: Eli Collins
> Assignee: Eli Collins
> Attachments: hadoop-7983.txt
>
>
> Currently fencing method args are passed in the config (eg "sshfence(host1,8022)" indicates to fence the service running on port 8022 on host1. The target service to fence should be determined by the failover (we fence the currently active service) not configured statically.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HADOOP-7983) HA: failover should be able to
pass args to fencers
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13196888#comment-13196888 ]
Hudson commented on HADOOP-7983:
--------------------------------
Integrated in Hadoop-Hdfs-HAbranch-build #64 (See [https://builds.apache.org/job/Hadoop-Hdfs-HAbranch-build/64/])
HADOOP-7983. HA: failover should be able to pass args to fencers. Contributed by Eli Collins
eli : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1238049
Files :
* /hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/CHANGES.HDFS-1623.txt
* /hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/FenceMethod.java
* /hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/NodeFencer.java
* /hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/ShellCommandFencer.java
* /hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/SshFenceByTcpPort.java
* /hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ha/TestNodeFencer.java
* /hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ha/TestShellCommandFencer.java
* /hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/ha/TestSshFenceByTcpPort.java
> HA: failover should be able to pass args to fencers
> ---------------------------------------------------
>
> Key: HADOOP-7983
> URL: https://issues.apache.org/jira/browse/HADOOP-7983
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: ha
> Affects Versions: HA Branch (HDFS-1623)
> Reporter: Eli Collins
> Assignee: Eli Collins
> Attachments: hadoop-7983.txt, hadoop-7983.txt
>
>
> Currently fencing method args are passed in the config (eg "sshfence(host1,8022)" indicates to fence the service running on port 8022 on host1. The target service to fence should be determined by the failover (we fence the currently active service) not configured statically.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HADOOP-7983) HA: failover should be able to pass
args to fencers
Posted by "Eli Collins (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eli Collins updated HADOOP-7983:
--------------------------------
Attachment: hadoop-7983.txt
Yea, given that we have to parse the target service address in the FC to create a HAServiceProtocol we might as well re-use it here. Even if we end up using logical names for services (HDFS-2808) we'll still map those to service addresses at this level.
Updated patch attach. It doesn't depend on HADOOP-7938, it's cleaner to layer that one atop this one.
> HA: failover should be able to pass args to fencers
> ---------------------------------------------------
>
> Key: HADOOP-7983
> URL: https://issues.apache.org/jira/browse/HADOOP-7983
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: ha
> Affects Versions: HA Branch (HDFS-1623)
> Reporter: Eli Collins
> Assignee: Eli Collins
> Attachments: hadoop-7983.txt, hadoop-7983.txt
>
>
> Currently fencing method args are passed in the config (eg "sshfence(host1,8022)" indicates to fence the service running on port 8022 on host1. The target service to fence should be determined by the failover (we fence the currently active service) not configured statically.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (HADOOP-7983) HA: failover should be able to pass
args to fencers
Posted by "Eli Collins (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-7983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eli Collins resolved HADOOP-7983.
---------------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Thanks Todd. I filed HADOOP-8007 and committed.
> HA: failover should be able to pass args to fencers
> ---------------------------------------------------
>
> Key: HADOOP-7983
> URL: https://issues.apache.org/jira/browse/HADOOP-7983
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: ha
> Affects Versions: HA Branch (HDFS-1623)
> Reporter: Eli Collins
> Assignee: Eli Collins
> Attachments: hadoop-7983.txt, hadoop-7983.txt
>
>
> Currently fencing method args are passed in the config (eg "sshfence(host1,8022)" indicates to fence the service running on port 8022 on host1. The target service to fence should be determined by the failover (we fence the currently active service) not configured statically.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira