[ 
https://issues.apache.org/jira/browse/HDFS-7386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14208354#comment-14208354
 ] 

Chris Nauroth commented on HDFS-7386:
-------------------------------------

Hi Yongjun.

On further reflection, I think we should not incorporate a Windows check here.  
Sometimes the check for < 1024 is used on the client side to detect the 
behavior of the server side.  If we consider the possibility of a Windows 
client connecting to a Linux server, then the client on Windows could assume 
incorrectly that there are no privileged ports, even though the server on Linux 
does have privileged ports.  As a practical matter, I think this means that 
when secure mode is fully implemented for Windows, there is going to be a 
limitation that the DataNode can't use a port < 1024.  Otherwise, it would 
throw off some of this detection logic.  It's not a bad limitation, just 
something we'll need to be aware of.

> Replace check "port number < 1024" with shared isPrivilegedPort method 
> -----------------------------------------------------------------------
>
>                 Key: HDFS-7386
>                 URL: https://issues.apache.org/jira/browse/HDFS-7386
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Yongjun Zhang
>            Assignee: Yongjun Zhang
>
> Per discussion in HDFS-7382, I'm filing this jira as a follow-up, to replace 
> check "port number < 1024" with shared isPrivilegedPort method.
> Thanks [~cnauroth] for the work on HDFS-7382 and suggestion there.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to