PriviledgedActionException as:man (auth:SIMPLE) cause:java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses. 2014-09-24 12:57:41,567 ERROR [RunService.java:206] - [thread-id:17 thread-name:Thread-6] threadId:17,Excpetion:java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses. at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:121) at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:83) at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:76) at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1186) at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1182) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1332) at org.apache.hadoop.mapreduce.Job.connect(Job.java:1181) at org.apache.hadoop.mapreduce.Job.submit(Job.java:1210) at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1234) at com.pzoom.hadoop.nerd.biz.job.DomainStatsJob.startJob(DomainStatsJob.java:78) at com.pzoom.hadoop.nerd.biz.job.DomainStatsJob.run(DomainStatsJob.java:56) at com.pzoom.hadoop.nerd.thrift.service.RunService.runMapReduce(RunService.java:141) at com.pzoom.hadoop.nerd.thrift.service.RunService.run(RunService.java:191) at java.lang.Thread.run(Thread.java:745)
Hadoop在执行job任务时,有时容易出现这个错误,但是我们在编译的时间并没有发生到什么异常和错误,但是在执行的过程中可能会出现这个初始化异常,一看这个错误,好像是自己配置的地址不对,但是出现这类异常大部分是因为缺少像这样的jar包 :hadoop-mapreduce-client-common
还有一种可能就是你的jar包引入的版本不正确导致的。或者缺少jar包,仔细根据异常去排查,最终都会解决这类错误。
时间: 2024-10-11 06:07:52