Not able to save the wordcount dataset ..***write permission error for me***

Hi Admin,

I am not able to save the wordcount dataset in below location in HDFS…I am writing this code in gw03…
I am able to pickup the dataset from HDFS but not able to save…
wordCount.saveAsTextfile("/user/training/wordcount10")

Getting the below error:

scala> wordCount.saveAsTextFile("/user/training/mittalwordcount")
org.apache.hadoop.security.AccessControlException: Permission denied: user=mittal_m2, access=WRITE, inode="/user/training/mittalwordcount/_temporary/0":training:hdfs:drwxr-xr-x
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:353)
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:325)

Looks like the write permission is missing for me…username: mittal_m2

Hi Admin,

Could you please fixup the write permission issue for me.

Regards,
Manish.

@Manish_Mittal

Please try wordCount.saveAsTextfile("/user/mittal_m2/wordcount10") instead of wordCount.saveAsTextfile("/user/training/wordcount10") if still this issue is not resolved please reply with the complete code so that I will run the program in our lab. Try to reproduce the error & reply you what is the exact issue.