Hdfs problem can not be deleted hdfs data hue created.

When deleted when linux:

rmr: Permission denied: user=root, access=ALL, 
inode="/user/root/.Trash/191128080000/user/hive/warehouse/xxwarehouse.db/xxtemp11/.hive-staging_hive_2019-11-26_23-47-14_048_5163984333965571011-3
/-ext-10001":admin:supergroup:drwxr-xr-x

  

The original file is the user group is a user group admin.

But we do not linux system admin user.

Then it can be executed using hadoop, because bulk reasons, so I am here is to put all files modified to root the owner:

sudo -E -u hadoop /home/hadoop/bin/hadoop fs -chown -R root  /user/root/.Trash/*

  

 

Guess you like

Origin www.cnblogs.com/hark0623/p/11946780.html