To change the permissions of a file or directory in HDFS, which command would you use?
Answer
hadoop fs -chmod
Explanation
The command 'hadoop fs -chmod' is used to change the permissions of files or directories in HDFS, similar to the Unix 'chmod' command.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
What is the primary benefit of data locality in Hadoop?
View question →
What does the 'SHOW TABLES' command do in Hive?
View question →
Which type of Flume Channel provides durability by writing events to disk?
View question →
What is a 'transformation' in Spark (e.g., map, filter)?
View question →
Which of the following is an example of an application that can run on YARN?
View question →
What is the command to check the disk usage of files and directories in HDFS?
View question →
QuestionBack to list