前端时间按照网上的教程从svn(http://svn.apache.org/repos/asf/hadoop/common/tags/release-2.4.1)上检出了hadoop的源代码,并在linux上打包编译了,之前也简单的用了下打出来的包,没发现问题。现在问题出来了,使用编译后的hadoop包,提示:
- 2014-10-24 08:47:58,109 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: Exception in namenode join
- java.lang.Error: Unresolved compilation problems:
- The import org.apache.hadoop.ha.proto cannot be resolved
- The import org.apache.hadoop.security.proto cannot be resolved
- The import org.apache.hadoop.security.proto cannot be resolved
- The import org.apache.hadoop.ipc.proto cannot be resolved
- The import org.apache.hadoop.tools.proto cannot be resolved
- RefreshAuthorizationPolicyProtocolService cannot be resolved
- RefreshUserMappingsProtocolService cannot be resolved
- RefreshCallQueueProtocolService cannot be resolved
- GetUserMappingsProtocolService cannot be resolved
- HAServiceProtocolService cannot be resolved
-
- at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.<init>(NameNodeRpcServer.java:59)
- at org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:587)
- at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:561)
- at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:724)
- at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:708)
- at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1358)
- at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1424)
- 2014-10-24 08:47:58,115 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
复制代码
意思就是有的模块编译出错,检查检出后的代码发现,确实有问题,有些包是没有的,有些模块少了类,导致了自己编译的hadoop存在问题。
|