51.6k views
5 votes
You have a distributed file system (DFS) and need to set permissions on the /hive/warehouse directory to allow access to ONLY the bigsql user. Which command would you run?

A. hdfs dfs -chmod 700 /hive/warehouse
B. hdfs dfs -chmod 666 /hive/warehouse
C. hdfs dfs -chmod 770 /hive/warehouse
D. hdfs dfs -chmod 755 /hive/warehouse

User Rudolph
by
8.3k points

1 Answer

0 votes

Final answer:

Command A: `hdfs dfs -chmod 700 /hive/warehouse` is the correct command to set permissions for exclusive access by the bigsql user.

Step-by-step explanation:

To set permissions on the /hive/warehouse directory to allow access exclusively to the bigsql user, you would run command A: hdfs dfs -chmod 700 /hive/warehouse. This command sets the permissions so that only the owner of the directory, which should be the bigsql user, can read, write, and execute (7) in the directory, and no one else has any permissions (00).

User Zbig
by
8.1k points