Is there any way to make a file Immutable in MapR FS like "chattr" do in linux
Hello rakesh enjala. Most of the basic Linux file handling can be achieved on the elements residing on MapR-FS. You simply need to add the MapR cluster as an NFS/FUSE mount anywhere on your nodes and manage the files just the same as you'd in a pure Linux/nonHadoop environment.
Is that what you were looking for?
I am getting below error
chattr +i -R /mapr/maprcluster1/user/rakesh/chattr: Inappropriate ioctl for device while reading flags on /mapr/maprcluster1/user/rakesh/
It's a NFS Mount
It looks like NFS does not have a concept of immutable files.
Just curious - isn't what you're trying to achieve something doable using the regular Linux permission bits? If not, please elaborate a little more on your use case so that I understand this better.
Update: You could probably try considering making use of MapR-FS ACEs (Using ACEs for MapR-FS) if it is what I think it is that you are trying to achieve. Let me know if it helps.
My Use Case:
I need to put some files in MapRFs , those cannot be deleted by anyone even the superusers(like chattr +i ). I think NFS mount doesn't support this.
Did you get a chance to review Using ACEs for MapR-FS to see if that has the features you're looking for?
Retrieving data ...