Permission denied error for logged in user for Apache Pig

Writing by 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” Permission denied
at Method)
at org.apache.hadoop.util.RunJar.main(

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

Category: Hadoop,Pig

Shivdev Kalambi's Blog

Shivdev Kalambi is a Software Development Manager, previously a Principal Software Engineer at ArcSight/HP. With over 16 years' experience in software development, he's worked on several technologies and played different roles and contributed to all phases of projects. Non-tech activies include Ping-pong, Rock Climbing and Yoga at PG, Golf, Skiing, Swimming & a beer enthusiast.