hadoop 单机模式

2011-06-09 20:10:50,033 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting DataNode
STARTUP_MSG:   host = localhost.localdomain/127.0.0.1
STARTUP_MSG:   args = []
STARTUP_MSG:   version = 0.21.0
STARTUP_MSG:   classpath = /opt/hadoop-0.21.0/bin/../conf:/usr/java/jdk1.6.0_16/lib/tools.jar:/opt/hadoop-0.21.0/bin/..:/opt/hadoop-0.21.0/bin/../hadoop-common-0.21.0.jar:/opt/hadoop-0.21.0/bin/../hadoop-common-test-0.21.0.jar:/opt/hadoop-0.21.0/bin/../hadoop-hdfs-0.21.0.jar:/opt/hadoop-0.21.0/bin/../hadoop-hdfs-0.21.0-sources.jar:/opt/hadoop-0.21.0/bin/../hadoop-hdfs-ant-0.21.0.jar:/opt/hadoop-0.21.0/bin/../hadoop-hdfs-test-0.21.0.jar:/opt/hadoop-0.21.0/bin/../hadoop-hdfs-test-0.21.0-sources.jar:/opt/hadoop-0.21.0/bin/../hadoop-mapred-0.21.0.jar:/opt/hadoop-0.21.0/bin/../hadoop-mapred-0.21.0-sources.jar:/opt/hadoop-0.21.0/bin/../hadoop-mapred-examples-0.21.0.jar:/opt/hadoop-0.21.0/bin/../hadoop-mapred-test-0.21.0.jar:/opt/hadoop-0.21.0/bin/../hadoop-mapred-tools-0.21.0.jar:/opt/hadoop-0.21.0/bin/../lib/ant-1.6.5.jar:/opt/hadoop-0.21.0/bin/../lib/asm-3.2.jar:/opt/hadoop-0.21.0/bin/../lib/aspectjrt-1.6.5.jar:/opt/hadoop-0.21.0/bin/../lib/aspectjtools-1.6.5.jar:/opt/hadoop-0.21.0/bin/../lib/avro-1.3.2.jar:/opt/hadoop-0.21.0/bin/../lib/commons-cli-1.2.jar:/opt/hadoop-0.21.0/bin/../lib/commons-codec-1.4.jar:/opt/hadoop-0.21.0/bin/../lib/commons-el-1.0.jar:/opt/hadoop-0.21.0/bin/../lib/commons-httpclient-3.1.jar:/opt/hadoop-0.21.0/bin/../lib/commons-lang-2.5.jar:/opt/hadoop-0.21.0/bin/../lib/commons-logging-1.1.1.jar:/opt/hadoop-0.21.0/bin/../lib/commons-logging-api-1.1.jar:/opt/hadoop-0.21.0/bin/../lib/commons-net-1.4.1.jar:/opt/hadoop-0.21.0/bin/../lib/core-3.1.1.jar:/opt/hadoop-0.21.0/bin/../lib/ftplet-api-1.0.0.jar:/opt/hadoop-0.21.0/bin/../lib/ftpserver-core-1.0.0.jar:/opt/hadoop-0.21.0/bin/../lib/ftpserver-deprecated-1.0.0-M2.jar:/opt/hadoop-0.21.0/bin/../lib/hsqldb-1.8.0.10.jar:/opt/hadoop-0.21.0/bin/../lib/jackson-core-asl-1.4.2.jar:/opt/hadoop-0.21.0/bin/../lib/jackson-mapper-asl-1.4.2.jar:/opt/hadoop-0.21.0/bin/../lib/jasper-compiler-5.5.12.jar:/opt/hadoop-0.21.0/bin/../lib/jasper-runtime-5.5.12.jar:/opt/hadoop-0.21.0/bin/../lib/jdiff-1.0.9.jar:/opt/hadoop-0.21.0/bin/../lib/jets3t-0.7.1.jar:/opt/hadoop-0.21.0/bin/../lib/jetty-6.1.14.jar:/opt/hadoop-0.21.0/bin/../lib/jetty-util-6.1.14.jar:/opt/hadoop-0.21.0/bin/../lib/jsp-2.1-6.1.14.jar:/opt/hadoop-0.21.0/bin/../lib/jsp-api-2.1-6.1.14.jar:/opt/hadoop-0.21.0/bin/../lib/junit-4.8.1.jar:/opt/hadoop-0.21.0/bin/../lib/kfs-0.3.jar:/opt/hadoop-0.21.0/bin/../lib/log4j-1.2.15.jar:/opt/hadoop-0.21.0/bin/../lib/mina-core-2.0.0-M5.jar:/opt/hadoop-0.21.0/bin/../lib/mockito-all-1.8.2.jar:/opt/hadoop-0.21.0/bin/../lib/oro-2.0.8.jar:/opt/hadoop-0.21.0/bin/../lib/paranamer-2.2.jar:/opt/hadoop-0.21.0/bin/../lib/paranamer-ant-2.2.jar:/opt/hadoop-0.21.0/bin/../lib/paranamer-generator-2.2.jar:/opt/hadoop-0.21.0/bin/../lib/qdox-1.10.1.jar:/opt/hadoop-0.21.0/bin/../lib/servlet-api-2.5-6.1.14.jar:/opt/hadoop-0.21.0/bin/../lib/slf4j-api-1.5.11.jar:/opt/hadoop-0.21.0/bin/../lib/slf4j-log4j12-1.5.11.jar:/opt/hadoop-0.21.0/bin/../lib/xmlenc-0.52.jar:/opt/hadoop-0.21.0/bin/../lib/jsp-2.1/*.jar:/opt/hadoop-0.21.0/hdfs/bin/../conf:/opt/hadoop-0.21.0/hdfs/bin/../hadoop-hdfs-*.jar:/opt/hadoop-0.21.0/hdfs/bin/../lib/*.jar:/opt/hadoop-0.21.0/bin/../mapred/conf:/opt/hadoop-0.21.0/bin/../mapred/hadoop-mapred-*.jar:/opt/hadoop-0.21.0/bin/../mapred/lib/*.jar:/opt/hadoop-0.21.0/hdfs/bin/../hadoop-hdfs-*.jar:/opt/hadoop-0.21.0/hdfs/bin/../lib/*.jar
STARTUP_MSG:   build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.21 -r 985326; compiled by 'tomwhite' on Tue Aug 17 01:02:28 EDT 2010
************************************************************/
2011-06-09 20:10:50,745 INFO org.apache.hadoop.security.Groups: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000
2011-06-09 20:10:51,321 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.lang.NoClassDefFoundError: javax/net/SocketFactory
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1074)
at org.apache.hadoop.net.NetUtils.getSocketFactoryFromProperty(NetUtils.java:115)
at org.apache.hadoop.net.NetUtils.getDefaultSocketFactory(NetUtils.java:99)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:242)
at org.apache.hadoop.ipc.RPC.waitForProxy(RPC.java:183)
at org.apache.hadoop.ipc.RPC.waitForProxy(RPC.java:163)
at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:237)
at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1440)
at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1393)
at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1407)
at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:1552)
Caused by: java.lang.ClassNotFoundException: javax.net.SocketFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 25 more

2011-06-09 20:10:51,339 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at localhost.localdomain/127.0.0.1
************************************************************/



解决办法:

看你的jre/lib/ 下的jsse 的后缀名是 jar 还是 pack ,如果是pack 就 unpack200 jsse.pack jsse.jar  然后  ok了。。。。恭喜你

你可能感兴趣的:(java,apache,.net,hadoop,ant)