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

Brandon Li commented on HDFS-6456:
----------------------------------

We should log the error to indicate there is invalid export table entry. Real 
user can do "showmount" command to find the valid export.

Even with no valid export, shutdown may not be desirable given we may want to 
introduce a new feature in the future to refresh export table without 
restarting NFS gateway. 

> NFS: NFS server should throw error for invalid entry in 
> dfs.nfs.exports.allowed.hosts
> -------------------------------------------------------------------------------------
>
>                 Key: HDFS-6456
>                 URL: https://issues.apache.org/jira/browse/HDFS-6456
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: nfs
>    Affects Versions: 2.2.0
>            Reporter: Yesha Vora
>
> Pass invalid entry in dfs.nfs.exports.allowed.hosts. Use - as separator 
> between hostname and access permission 
> {noformat}
> <property><name>dfs.nfs.exports.allowed.hosts</name><value>host1-rw</value></property>
> {noformat}
> This misconfiguration is not detected by NFS server. It does not print any 
> error message. The host passed in this configuration is also not able to 
> mount nfs. In conclusion, no node can mount the nfs with this value. A format 
> check is required for this property. If the value of this property does not 
> follow the format, an error should be thrown.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to