From ad74691807c51713bd9071e731d4481ee212567e Mon Sep 17 00:00:00 2001 From: Ray Chiang Date: Mon, 11 Sep 2017 16:52:47 -0700 Subject: [PATCH] HADOOP-14798. Update sshd-core and related mina-core library versions. (rchiang) --- .../hadoop/fs/sftp/TestSFTPFileSystem.java | 16 ++++++++-------- hadoop-project/pom.xml | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java index e8eedd949e0..af48cb6169b 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java @@ -34,16 +34,16 @@ import org.apache.hadoop.fs.LocalFileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.test.GenericTestUtils; -import org.apache.sshd.SshServer; +import org.apache.sshd.server.SshServer; import org.apache.sshd.common.NamedFactory; import org.apache.sshd.server.Command; -import org.apache.sshd.server.PasswordAuthenticator; -import org.apache.sshd.server.UserAuth; -import org.apache.sshd.server.auth.UserAuthPassword; +import org.apache.sshd.server.auth.password.PasswordAuthenticator; +import org.apache.sshd.server.auth.UserAuth; +import org.apache.sshd.server.auth.password.UserAuthPasswordFactory; import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider; import org.apache.sshd.server.session.ServerSession; -import org.apache.sshd.server.sftp.SftpSubsystem; +import org.apache.sshd.server.subsystem.sftp.SftpSubsystemFactory; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Rule; @@ -76,7 +76,7 @@ public class TestSFTPFileSystem { List> userAuthFactories = new ArrayList>(); - userAuthFactories.add(new UserAuthPassword.Factory()); + userAuthFactories.add(new UserAuthPasswordFactory()); sshd.setUserAuthFactories(userAuthFactories); @@ -92,7 +92,7 @@ public class TestSFTPFileSystem { }); sshd.setSubsystemFactories( - Arrays.>asList(new SftpSubsystem.Factory())); + Arrays.>asList(new SftpSubsystemFactory())); sshd.start(); port = sshd.getPort(); @@ -140,7 +140,7 @@ public class TestSFTPFileSystem { if (sshd != null) { try { sshd.stop(true); - } catch (InterruptedException e) { + } catch (IOException e) { // ignore } } diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index a414fcd2a77..24c779c9804 100755 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -824,12 +824,12 @@ org.apache.mina mina-core - 2.0.0-M5 + 2.0.16 org.apache.sshd sshd-core - 0.14.0 + 1.6.0 org.apache.ftpserver