可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
Hi i am new to Oozie and i am getting this error E0902: Exception occured: [User: pramod is not allowed to impersonate pramod] when i run the following command
./oozie job -oozie htt p://localhost:11000/oozie/ -config ~/Desktop/map-reduce /job.properties -run.
My hadoop version is 1.0.3 and oozie version is 3.3.2 and running in a pseudo mode
The following is the content of my core-site.xml
hadoop.tmp.dir/home/pramod/hadoop-${user.name}fs.default.namehdfs://localhost:54310hadoop.proxyuser.${user.name}.hosts*hadoop.proxyuser.${user.name}.groups*
Can somebody help
回答1:
回答2:
One thing missed in the discussion above:
In core-site.xml you need to use the user with which oozie is started, as in the user that invoked the command "bin/oozied.sh start". For example: if you have "hadoop.proxyuser.bob.hosts" along with hadoop.proxyuser.bob.groups, then the user 'bob' would be required to start oozie using "bin/oozied.sh start".
回答3:
I don't think you can use variables in the key name - you'll need to hardcode the user name rather than ${user.name}
.
I assume you have an oozie user (which the oozie server is run as), so basically you want to configure as follows to allow the oozie user to impersonate anyone from any host:
hadoop.proxyuser.oozie.hosts*hadoop.proxyuser.oozie.groups*
Make sure you restart your HDFS / MAPREDUCE services for this to take affect