!MESSAGE An internal error occurred during: "Connecting to DFS hadoop2.7".
!STACK 0
java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.hdfs.DFSConfigKeys
at org.apache.hadoop.hdfs.DFSClient$Conf.(DFSClient.java:509)
at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:638)
at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:619)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:170)
at org.apache.hadoop.eclipse.server.HadoopServer.getDFS(HadoopServer.java:478)
at org.apache.hadoop.eclipse.dfs.DFSPath.getDFS(DFSPath.java:146)
at org.apache.hadoop.eclipse.dfs.DFSFolder.loadDFSFolderChildren(DFSFolder.java:61)
at org.apache.hadoop.eclipse.dfs.DFSFolder$1.run(DFSFolder.java:178)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
不清楚什么原因?求大神解答
这个插件是我个人编译的
步骤如下:
一、资源:
插件源码hadoop2x-eclipse-plugin-master
hadoop-2.7.2
eclipse-luna-4.4
64位系统
二、修改插件内容:D:\hadoop2x-eclipse-plugin-master\src\contrib\eclipse-plugin\ivy\libraries.properties将文件中的jar包版本与hadoop-2.7.2对应,直接ant编译,通过!
三、eclipse安装插件
IP地址与port对应core-site.xml配置
最后DFSlocation连接的时候出错
http://blog.csdn.net/yunlong34574/article/details/21331927
我替换hadoop-2.6.5编译之后,插件可用,没有错误。(ps:不清楚是之前2.7.2配置有错,还是本身版本问题。与hadoop-2.7.2配置唯一的改动是jdk配置为全局变量/etc/profile,之前是针对用户)