HBASE-18045 Added default SSH connection timeout in Integration tests (#4450)
This commit is contained in:
parent
6886d02a91
commit
22618dadfe
|
@ -86,7 +86,7 @@ public class HBaseClusterManager extends Configured implements ClusterManager {
|
|||
return;
|
||||
}
|
||||
sshUserName = conf.get("hbase.it.clustermanager.ssh.user", "");
|
||||
String extraSshOptions = conf.get("hbase.it.clustermanager.ssh.opts", "");
|
||||
String extraSshOptions = conf.get("hbase.it.clustermanager.ssh.opts", "-o ConnectTimeout=10");
|
||||
sshOptions = System.getenv("HBASE_SSH_OPTS");
|
||||
if (!extraSshOptions.isEmpty()) {
|
||||
sshOptions = StringUtils.join(new Object[] { sshOptions, extraSshOptions }, " ");
|
||||
|
|
Loading…
Reference in New Issue