我已配置 net.topology.node.switch.mapping.impl
属性。类的值为 com.learning.rackawareness.RackAwareness
. 我已经将这个类打包为jar,并将它放到linux的hadoop路径中 /opt/modules/hadoop-2.7.2/share/hadoop/common/lib
.
然后我用 start-dfs.sh
,namenode失败。
我该把jar放在哪里?
java.lang.runtimeexception:java.lang.runtimeexception:java.lang.classnotfoundexception:class com.learning.rackawareness.rackawareness未在org.apache.hadoop.conf.conf.configuration.getclass(configuration)中找到。java:2227)在org.apache.hadoop.hdfs.server.blockmanagement.datanodemanager。java:208)在org.apache.hadoop.hdfs.server.blockmanagement.blockmanager.(blockmanager。java:268)在org.apache.hadoop.hdfs.server.namenode.fsnamesystem.(fsnamesystem。java:737)在org.apache.hadoop.hdfs.server.namenode.secondarynamenode.initialize(secondarynamenode。java:246)在org.apache.hadoop.hdfs.server.namenode.secondarynamenode.(secondarynamenode。java:192) 在org.apache.hadoop.hdfs.server.namenode.secondarynamenode.main(secondarynamenode。java:671)原因:java.lang.runtimeexception:java.lang.classnotfoundexception:class>com.learning.rackawareness.rackawareness未在org.apache.hadoop.conf.configuration.getclass(配置)中找到。java:2195)在org.apache.hadoop.conf.configuration.getclass(配置。java:2219) ... 6更多原因:java.lang.classnotfoundexception:class>com.learning.rackawareness.rackawareness未在org.apache.hadoop.conf.configuration.getclassbyname(配置)中找到。java:2101)在org.apache.hadoop.conf.configuration.getclass(configuration。java:2193) ... 7更多信息2019-10-07 15:23:41958 info org.apache.hadoop.hdfs.server.namenode.fsnamesystem:正在停止活动状态的服务2019-10-07 15:23:41970 info org.apache.hadoop.hdfs.server.namenode.secondarynamenode:shutdown\u msg:
暂无答案!
目前还没有任何答案,快来回答吧!