ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yusaku Sako <>
Subject Re: proper Ambari permissions
Date Wed, 12 Jul 2017 06:16:13 GMT
Files View accesses HDFS as the current Ambari user that's logged in.
The output below (assuming that's coming from Files view) shows that you were logged in as
"admin" in Ambari and tried to delete files/dirs belonging to "root" with 755 permissions.
This will not work as the "admin" user does not have any superuser permission in HDFS (from
HDFS's perspective, it's just a regular user named "admin")

Here's a workaround that I can think of:
If you want to use Files View to manage all files/dirs in HDFS, you can create a user called
"hdfs" in Ambari, and log into Ambari as that user.
Then when you operate on HDFS files/dirs with Files View.


From: Sumit Mohanty
Reply-To: "<>"
Date: Tuesday, July 11, 2017 at 10:45 PM
To: "<>"
Subject: Re: proper Ambari permissions

Oh! these are files in HDFS.

You can delete them through HDFS command line after logging as the hdfs user. Something like

su hdfs

hdfs dfs -ls /user/
drwxrwx---   - ambari-qa     hdfs          0 2017-07-12 03:37 /user/ambari-qa​
hdfs dfs -rmr /user/ambari-qa

I am not familiar with the usage of File View but looks like creating and logging in as user
"hdfs" should work.

From: Adaryl Wakefield <<>>
Sent: Tuesday, July 11, 2017 9:57 PM
Subject: RE: proper Ambari permissions

Actually they aren’t even all files. I can’t blow away directories either. The files that
I do have are the sample salaries data you can get from doing the file management tutorial
from Hortonworks.

Below is the error I get when I try to delete stuff from the GUI:

permission denied: user=admin, access=WRITE, inode="/user/hadoop/sf-salaries":root:hdfs:drwxr-xr-x

Permission denied: user=admin, access=WRITE, inode="/user/hadoop/sf-salaries-2011-2013/sf-salaries-2011-2013.csv":root:hdfs:drwxr-xr-x

Adaryl "Bob" Wakefield, MBA
Mass Street Analytics, LLC
Twitter: @BobLovesData<>

From: Sumit Mohanty []
Sent: Tuesday, July 11, 2017 11:04 PM
Subject: Re: proper Ambari permissions

​Can you provide example of some of the files?

In general Ambari runs as root unless configured with a custom user.  Some of the files it
manages may be created as the service user (say HDFS data directories are owned by HDFS service


From: Adaryl Wakefield <<>>
Sent: Tuesday, July 11, 2017 8:30 PM
Subject: proper Ambari permissions

When I’m working in Ambari, sometimes I can’t manage files because whatever user I’m
working under doesn’t have permission.

  1.  What account does Ambari use when it is interacting with the various other programs?
  2.  How do I need to set my permissions so that when I’m in Ambari as admin, I’m able
to create and blow away things at will?

Adaryl "Bob" Wakefield, MBA
Mass Street Analytics, LLC
Twitter: @BobLovesData<>

View raw message