ERROR security.UserGroupInformation: PriviledgedActionException as:training (auth:SIMPLE) cause:org.apache.hadoop.security.AccessControlException: Permission denied
This is most probably a permission issue. There are two ways to solve it. You can disable permission in hdfs-site.xml
Or either you can give write permission to user 'training' in hadoop. Please accept the answer you found most useful.
First of all Thanks a lot for your response. I have encountered an error with eclipse due to which i am not able to open my .java files. As soon as this error is resolved, i will try the methods provided by you and also will let you know.