[ 
https://issues.apache.org/jira/browse/HDFS-6462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yesha Vora updated HDFS-6462:
-----------------------------

    Description: 
Fsstat fails in secure environment with below error.

Steps to reproduce:
1) Create user named UserB. 
2) Create group named GroupB
3) Add root and UserB users to GroupB
4) Set below properties
{noformat}
===================================
hdfs-site.xml
===================================
 <property>
    <name>dfs.nfs.keytab.file</name>
    <value>/tmp/keytab/UserA.keytab</value>
  </property>
  <property>
    <name>dfs.nfs.kerberos.principal</name>
    <value>us...@example.com</value>
  </property>
==================================
core-site.xml
==================================
<property>
    <name>hadoop.proxyuser.UserA.groups</name>
   <value>GroupB</value>
 </property>
<property>
   <name>hadoop.proxyuser.UserA.hosts</name>
   <value>*</value>
 </property>
{noformat}
4) start nfs server as UserA
5) mount nfs as root user
6) run below command 
{noformat}
[root@host1 ~]# df /tmp/tmp_mnt/
df: `/tmp/tmp_mnt/': Input/output error
df: no file systems processed
{noformat}

  was:
Fsstat fails in secure environment with below error.

{noformat}
[root@host1 ~]# df /tmp/tmp_mnt/
df: `/tmp/tmp_mnt/': Input/output error
df: no file systems processed
{noformat}


> NFS: fsstat request fails with the secure hdfs
> ----------------------------------------------
>
>                 Key: HDFS-6462
>                 URL: https://issues.apache.org/jira/browse/HDFS-6462
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: nfs
>    Affects Versions: 2.2.0
>            Reporter: Yesha Vora
>
> Fsstat fails in secure environment with below error.
> Steps to reproduce:
> 1) Create user named UserB. 
> 2) Create group named GroupB
> 3) Add root and UserB users to GroupB
> 4) Set below properties
> {noformat}
> ===================================
> hdfs-site.xml
> ===================================
>  <property>
>     <name>dfs.nfs.keytab.file</name>
>     <value>/tmp/keytab/UserA.keytab</value>
>   </property>
>   <property>
>     <name>dfs.nfs.kerberos.principal</name>
>     <value>us...@example.com</value>
>   </property>
> ==================================
> core-site.xml
> ==================================
> <property>
>     <name>hadoop.proxyuser.UserA.groups</name>
>    <value>GroupB</value>
>  </property>
> <property>
>    <name>hadoop.proxyuser.UserA.hosts</name>
>    <value>*</value>
>  </property>
> {noformat}
> 4) start nfs server as UserA
> 5) mount nfs as root user
> 6) run below command 
> {noformat}
> [root@host1 ~]# df /tmp/tmp_mnt/
> df: `/tmp/tmp_mnt/': Input/output error
> df: no file systems processed
> {noformat}



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

Reply via email to