HDFS-4295. Using port 1023 should be valid when starting Secure DataNode. Contributed by Stephen Chu.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1419855 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c835eba0a9
commit
f38fdbf648
@ -318,6 +318,9 @@ Release 2.0.3-alpha - Unreleased
|
|||||||
HDFS-4292. Sanity check not correct in RemoteBlockReader2.newBlockReader
|
HDFS-4292. Sanity check not correct in RemoteBlockReader2.newBlockReader
|
||||||
(Binglin Chang via todd)
|
(Binglin Chang via todd)
|
||||||
|
|
||||||
|
HDFS-4295. Using port 1023 should be valid when starting Secure DataNode
|
||||||
|
(Stephen Chu via todd)
|
||||||
|
|
||||||
BREAKDOWN OF HDFS-3077 SUBTASKS
|
BREAKDOWN OF HDFS-3077 SUBTASKS
|
||||||
|
|
||||||
HDFS-3077. Quorum-based protocol for reading and writing edit logs.
|
HDFS-3077. Quorum-based protocol for reading and writing edit logs.
|
||||||
|
@ -120,7 +120,7 @@ protected SSLServerSocketFactory createFactory() throws Exception {
|
|||||||
System.err.println("Successfully obtained privileged resources (streaming port = "
|
System.err.println("Successfully obtained privileged resources (streaming port = "
|
||||||
+ ss + " ) (http listener port = " + listener.getConnection() +")");
|
+ ss + " ) (http listener port = " + listener.getConnection() +")");
|
||||||
|
|
||||||
if ((ss.getLocalPort() >= 1023 || listener.getPort() >= 1023) &&
|
if ((ss.getLocalPort() > 1023 || listener.getPort() > 1023) &&
|
||||||
UserGroupInformation.isSecurityEnabled()) {
|
UserGroupInformation.isSecurityEnabled()) {
|
||||||
throw new RuntimeException("Cannot start secure datanode with unprivileged ports");
|
throw new RuntimeException("Cannot start secure datanode with unprivileged ports");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user