Permission denied error for logged in user for Apache Pig
Writing by shivdev on Thursday, 25 of September , 2014 at 2:37 pm
When I was starting pig using pig -x local
, I was getting the following error.
Exception in thread “main” java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1006)
at java.io.File.createTempFile(File.java:1989)
at org.apache.hadoop.util.RunJar.main(RunJar.java:119)
Luckily after some searching stackoverflow had the the solution which was that ${hadoop.tmp.dir} didn’t have permissions.
I was trying to run pig as a different user, than the hadoop user.
sudo chown -R user:group /app/hadoop/tmp
Leave a comment
- Add this post to
- Del.icio.us -
- Digg -
- -
- Tweet -
-
-