AnsweredAssumed Answered

Error using java.nio.channels.FileChannel on NFS mounted MapR

Question asked by matroyd on May 9, 2012
Latest reply on May 10, 2012 by matroyd
We have MapR mounted using NFS on a linux box, running a legacy java application that writes data files using java.nio.channels.FileChannel. The application can create directories, files etc. but can't write to the files due to following error:
    java.io.IOException: Permission denied
            at sun.nio.ch.FileChannelImpl.lock0(Native Method)
            at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:842)
            at java.nio.channels.FileChannel.lock(FileChannel.java:860)

Are we allowed to only use FileReader/Writers? If yes, any reason FileChannels do not work?
Thanks, and MapR rocks !!

Outcomes