Help Center/ MapReduce Service/ User Guide (Ankara Region)/ Troubleshooting/ Using Hive/ An Error Is Reported When the dfs -put Command Is Executed on the Beeline Client
Updated on 2024-11-29 GMT+08:00

An Error Is Reported When the dfs -put Command Is Executed on the Beeline Client

Symptom

Run the following command:

dfs -put /opt/kv1.txt /tmp/kv1.txt

The following error is reported:

Permission denied. Principal [name=admin, type=USER] does not have following privileges onObject[type=COMMAND_PARAMS,name=[-put, /opt/kv1.txt, /tmp/kv1.txt]] for operation DFS : [ADMIN PRIVILEGE] (state=,code=1)

Cause Analysis

The current login user does not have the permissions to run the command.

Solution

If the current user has the admin role, run the set role admin command to switch to the admin role. If the user does not have the admin role, bind the user with the permissions of the corresponding role on the Manager page.