ACL's Query - User2 is unable to User1 direcrtory

Hello Durga Sir,

I am try to practice the ACL’s lab in below vid.

I created 2 users user1 and user2 with useradd command in linux
Then created directories for both users & gave them ownsership of their directories in hadoop as.
sudo -u hdfs hadoop fs -chown user1:user1 /user/user1
sudo -u hdfs hadoop fs -chown user2:user2 /user/user2

Gave write permissions to all on aclsdemo as under user1
sudo -u hdfs hadoop fs -chmod 757 /user/user1/aclsdemo

But now when user2 is attempting to put a file named ‘testing’ under above folder, is says permission denied as below. (hdpdn1 is my active NN in this senario)

[user2@hdpdn1 ~]$ hadoop fs -put testing /user/user1/aclsdmemo
put: Permission denied: user=user2, access=WRITE, inode="/user/user1":user1:user1:drwxr-xr-x

But the write permissions are there for all

[user2@hdpdn1 ~]$ hadoop fs -ls testing /user/user1
Found 1 items
drwxr-xrwx - user1 user1 0 2017-04-01 00:46 /user/user1/aclsdemo

Need your help sir…

try hadoop fs -put testing /user/user1/aclsdmemo/testing