BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / java / #16944同步于 2010/12/19
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Java机器人发帖

ant编译mapreduce

HiiHii
2010/12/19镜像同步2 回复
最近研究hadoop发现在linux下编译hadoop的mapred包会出现编译错误。是一些跟代码有关的编译错误,但是我没有改动过里面的内容,而且他的代码应该不会有问题。我在网上查过相关的编译办法,也没有提及过编译时出现于代码相关的错误的介绍。不知道大家有没有遇到过这种情况.....求解~~~
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
ppooooll机器人#1 · 2010/12/19
多说点信息呗 编译错误谁都遇见过 具体是什么错误,在控制台上有显示吧 可能是你java版本不对,嗯,瞎猜一下 【 在 HiiHii (Hehe) 的大作中提到: 】 : 最近研究hadoop发现在linux下编译hadoop的mapred包会出现编译错误。是一些跟代码有关的编译错误,但是我没有改动过里面的内容,而且他的代码应该不会有问题。我在网上查过相关的编译办法,也没有提及过编译时出现于代码相关的错误的介绍。不知道大家有没有遇到过这�
HiiHii机器人#2 · 2010/12/19
【 在 ppooooll 的大作中提到: 】 : 多说点信息呗 : 编译错误谁都遇见过 : 具体是什么错误,在控制台上有显示吧 : ................... 版本是0.21.0,java是1.6.21 compile-aspects: [echo] 1.6 [echo] Start weaving aspects in place [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/AdminOperationsProtocol.java:33 [error] The annotation @KerberosInfo must define the attribute value [iajc] @KerberosInfo( [iajc] ^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/AdminOperationsProtocol.java:34 [error] The attribute serverPrincipal is undefined for the annotation type KerberosInfo [iajc] serverPrincipal = JTConfig.JT_USER_NAME) [iajc] ^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/InterTrackerProtocol.java:34 [error] The annotation @KerberosInfo must define the attribute value [iajc] @KerberosInfo( [iajc] ^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/InterTrackerProtocol.java:35 [error] The attribute serverPrincipal is undefined for the annotation type KerberosInfo [iajc] serverPrincipal = JTConfig.JT_USER_NAME, [iajc] ^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/InterTrackerProtocol.java:36 [error] The attribute clientPrincipal is undefined for the annotation type KerberosInfo [iajc] clientPrincipal = TTConfig.TT_USER_NAME) [iajc] ^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/JobInProgress.java:487 [error] The method closeAllForUGI(UserGroupInformation) is undefined for the type FileSystem [iajc] FileSystem.closeAllForUGI(UserGroupInformation.getCurrentUser()); [iajc] ^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/JobTracker.java:1466 [error] The method refreshServiceAcl(JobConf, MapReducePolicyProvider) is undefined for the type Server [iajc] this.interTrackerServer.refreshServiceAcl(conf, new MapReducePolicyProvider()); [iajc] ^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/JobTracker.java:4361 [error] The method refreshServiceAcl(JobConf, MapReducePolicyProvider) is undefined for the type Server [iajc] this.interTrackerServer.refreshServiceAcl(conf, new MapReducePolicyProvider()); [iajc] ^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/JobTracker.java:4428 [error] The method refreshSuperUserGroupsConfiguration() is undefined for the type ProxyUsers [iajc] ProxyUsers.refreshSuperUserGroupsConfiguration(); [iajc] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/JobTracker.java:4436 [error] The method getUserToGroupsMappingService(Configuration) in the type Groups is not applicable for the arguments () [iajc] Groups.getUserToGroupsMappingService().refresh(); [iajc] ^^^^^^^^^^^^^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/JobTracker.java:4730 [error] The method getRealAuthenticationMethod(UserGroupInformation) is undefined for the type UserGroupInformation [iajc] .getRealAuthenticationMethod(UserGroupInformation.getCurrentUser()); [iajc] ^^^^^^^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/QueueManager.java:672 [error] The method getAclString() is undefined for the type AccessControlList [iajc] aclsSubmitJobValue = submitJobList.getAclString(); [iajc] ^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/QueueManager.java:677 [error] The method getAclString() is undefined for the type AccessControlList [iajc] aclsAdministerValue = administerJobsList.getAclString(); [iajc] ^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/TaskTracker.java:661 [error] The method refreshServiceAcl(JobConf, PolicyProvider) is undefined for the type Server [iajc] this.taskReportServer.refreshServiceAcl(fConf, policyProvider); [iajc] ^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/TaskTracker.java:2004 [error] The method closeAllForUGI(UserGroupInformation) is undefined for the type FileSystem [iajc] FileSystem.closeAllForUGI(rjob.getUGI()); [iajc] ^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/tools/MRAdmin.java:153 [error] CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY cannot be resolved [iajc] conf.set(CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY, [iajc] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/tools/MRAdmin.java:185 [error] CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY cannot be resolved [iajc] conf.set(CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY, [iajc] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapred/tools/MRAdmin.java:217 [error] CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY cannot be resolved [iajc] conf.set(CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY, [iajc] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapreduce/JobStatus.java:353 [error] The method write(DataOutput) is undefined for the type AccessControlList [iajc] entry.getValue().write(out); [iajc] [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapreduce/JobStatus.java:381 [error] The method readFields(DataInput) is undefined for the type AccessControlList [iajc] acl.readFields(in); [iajc] ^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java:367 [error] The method getAclString() is undefined for the type AccessControlList [iajc] QueueACL.ADMINISTER_JOBS.getAclName()), acl.getAclString()); [iajc] ^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapreduce/JobSubmitter.java:431 [error] The method stringifyToken(Token<DelegationTokenIdentifier>) is undefined for the type DFSClient [iajc] DFSClient.stringifyToken((Token<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier>) token)); [iajc] [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapreduce/jobhistory/JobSubmittedEvent.java:63 [error] The method getAclString() is undefined for the type AccessControlList [iajc] entry.getValue().getAclString())); [iajc] ^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapreduce/protocol/ClientProtocol.java:53 [error] The annotation @KerberosInfo must define the attribute value [iajc] @KerberosInfo( [iajc] ^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapreduce/protocol/ClientProtocol.java:54 [error] The attribute serverPrincipal is undefined for the annotation type KerberosInfo [iajc] serverPrincipal = JTConfig.JT_USER_NAME) [iajc] ^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapreduce/security/TokenCache.java:113 [error] The method getCanonicalServiceName() is undefined for the type FileSystem [iajc] String fsName = fs.getCanonicalServiceName(); [iajc] ^^^^^^^^^^^^^^^^^^ [iajc] /home/hii/mapred/src/java/org/apache/hadoop/mapreduce/security/TokenCache.java:136 [error] The method getDelegationToken(String) is undefined for the type FileSystem [iajc] Token<?> token = fs.getDelegationToken(delegTokenRenewer); [iajc] ^^^^^^^^^^^ [iajc] /home/hii/mapred/src/contrib/mumak/src/java/org/apache/hadoop/mapred/DeterministicCollectionAspects.aj:47 [warning] advice defined in org.apache.hadoop.mapred.DeterministicCollectionAspects has not been applied [Xlint:adviceDidNotMatch] [iajc] [iajc] /home/hii/mapred/src/contrib/mumak/src/java/org/apache/hadoop/mapred/DeterministicCollectionAspects.aj:43 [warning] advice defined in org.apache.hadoop.mapred.DeterministicCollectionAspects has not been applied [Xlint:adviceDidNotMatch] [iajc] [iajc] /home/hii/mapred/src/contrib/mumak/src/java/org/apache/hadoop/mapred/DeterministicCollectionAspects.aj:39 [warning] advice defined in org.apache.hadoop.mapred.DeterministicCollectionAspects has not been applied [Xlint:adviceDidNotMatch] [iajc] [iajc] /home/hii/mapred/src/contrib/mumak/src/java/org/apache/hadoop/mapred/EagerTaskInitializationListenerAspects.aj:41 [warning] advice defined in org.apache.hadoop.mapred.EagerTaskInitializationListenerAspects has not been applied [Xlint:adviceDidNotMatch] [iajc] [iajc] /home/hii/mapred/src/contrib/mumak/src/java/org/apache/hadoop/mapred/JobInitializationPollerAspects.aj:33 [warning] advice defined in org.apache.hadoop.mapred.JobInitializationPollerAspects has not been applied [Xlint:adviceDidNotMatch] [iajc] [iajc] /home/hii/mapred/src/contrib/mumak/src/java/org/apache/hadoop/mapred/EagerTaskInitializationListenerAspects.aj:27 [warning] advice defined in org.apache.hadoop.mapred.EagerTaskInitializationListenerAspects has not been applied [Xlint:adviceDidNotMatch] [iajc] [iajc] [iajc] 27 errors, 6 warnings BUILD FAILED /home/hii/mapred/build.xml:426: The following error occurred while executing this line: /home/hii/mapred/src/contrib/build.xml:30: The following error occurred while executing this line: /home/hii/mapred/src/contrib/mumak/build.xml:74: compile errors: 27