Change the owner and group of a file in Hadoop.

Big Data Hadoop

Hi Guys,

I have some files in HDFS Cluster. I want to change the owner of the files. How can I do that?

1
Answers

Replies

The Chown command can be used to change the owner and group a file in Hadoop. This command is similar to the Chown command in the shell. If the owner of the group is known or specified, then only the owner of the group will be changed or modified using this command. The owner and the group name will be represented in alphabets, digits, characters and is case sensitive as well. The syntax is represented below:


$ hadoop fs -chown [-R] [OWNER][:[GROUP]] PATH

 
 

If you want to unleash your potential in this competitive field, please visit the Big Data Hadoop course page for more information, where you can find the Big Data Hadoop tutorials and Big Data Hadoop frequently asked interview questions and answers as well.

 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.