You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org> on 2011/03/28 18:35:05 UTC
[jira] [Commented] (HADOOP-7210) Chown command is not working from
FSShell.
[ https://issues.apache.org/jira/browse/HADOOP-7210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012127#comment-13012127 ]
Uma Maheswara Rao G commented on HADOOP-7210:
---------------------------------------------
Based on the passed arguments, it is creating the Handlers. when argument is -chown, it is creating ChownHandler.
{code}
else if (cmd.equals("-chown")) {
handler = new ChownHandler(argv[startIndex++]);
{code}
But here the problem is, it is not populating owner, group values in this constructor. just it is calling supper. It is not populating the group, owner.
{code}
protected ChownHandler(String cmd) { //for chgrp
super(cmd);
}
{code}
Since it is not populating, setOwner will not be invoked on fileSystem.So permissions will not change.
{code}
if (newOwner != null || newGroup != null) {
try {
srcFs.setOwner(file.getPath(), newOwner, newGroup);
{code}
> Chown command is not working from FSShell.
> ------------------------------------------
>
> Key: HADOOP-7210
> URL: https://issues.apache.org/jira/browse/HADOOP-7210
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Environment: Linux
> Reporter: Uma Maheswara Rao G
> Assignee: Uma Maheswara Rao G
>
> chown command is not invoking the setOwner on FileSystem.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira