Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How do run dfs command as another user?

Solved Go to solution

How do run dfs command as another user?

New Contributor

Suppose my user name is "nicholas" and "nicholas" is already configured as a proxy user. Now, is there a way for "nicholas" to run a dfs command (say mkdir) as another user "foo"?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How do run dfs command as another user?

Rising Star

@szetszwo, you can do this with haodop impersonation by setting the env variable $HADOOP_PROXY_USER=foo

2 REPLIES 2
Highlighted

Re: How do run dfs command as another user?

Rising Star

@szetszwo, you can do this with haodop impersonation by setting the env variable $HADOOP_PROXY_USER=foo

Re: How do run dfs command as another user?

New Contributor

Thanks a lot! Ming and I have tried it. It works well.

Don't have an account?
Coming from Hortonworks? Activate your account here