Dec 10th, 2012, 11:47 PM
PriviledgedActionException when running mapreduce job from servlet
I'm trying out spring-data-hadoop and running it as a webapplication hosted on tomcat/ubuntu 12.04. I configured everything and when running the Job from my servlet I get the following exception
SEVERE: PriviledgedActionException as:tomcat7 cause:java.io.IOException: Failed to set permissions of path: /hadoop_ws/mapred/staging/tomcat71391258236/.staging to 0700
I know tomcat7 user doesn't have access to the above directory, but I'm not sure how to pass this exception.
I tried following, but with no luck:
1. started tomcat as the user that have permission to /hadoop_ws directory. I changed TOMCAT7_USER and TOMCAT7_GROUP in /etc/init.d/tomcat7
2. did hadoop dfs -chmod -R 777 /hadoop_ws
3. changed mapreduce.jobtracker.staging.root.dir to different folder that has 777 permission.
none of the above approach worked. All the examples I find in internet is either configuring the mapreduce jobs in xml as in the reference document, or the application is a standalone application which runs as logged-in user.
Any help highly appreciated.
Apache Hadoop 1.0.4
spring-data-hadoop version 1.0.0.RC1
Last edited by arundhaj; Dec 10th, 2012 at 11:49 PM.
Reason: added environment information
Tags for this Thread