返回 登录
0

求教:在win系统下,在cygwin中运行./hadoop namenode –format(貌似格式化没有成功),Hadoop启动不了,怎么办?

datanode日志部分是这样的:
2016-06-16 11:59:46,513 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG:
/**************************************************
STARTUP_MSG: Starting DataNode
STARTUP_MSG: host = HONG
STARTUP_MSG: args = []
STARTUP_MSG: version = 1.2.1
STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.2 -r 1503152; compiled by ‘mattf’ on Mon Jul 22 15:23:09 PDT 2013
STARTUP_MSG: java = 1.8.0_60
**************************************************/
2016-06-16 11:59:46,591 INFO org.apache.hadoop.metrics2.impl.MetricsConfig: loaded properties from hadoop-metrics2.properties
2016-06-16 11:59:46,606 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source MetricsSystem,sub=Stats registered.
2016-06-16 11:59:46,606 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
2016-06-16 11:59:46,606 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: DataNode metrics system started
2016-06-16 11:59:46,653 INFO org.apache.hadoop.metrics2.impl.MetricsSourceAdapter: MBean for source ugi registered.
2016-06-16 11:59:46,653 WARN org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Source name ugi already exists!
2016-06-16 11:59:46,700 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
2016-06-16 11:59:46,700 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Invalid directory in dfs.data.dir: Failed to set permissions of path: \hadoop\sysdata\dfs\data to 0755
2016-06-16 11:59:46,700 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: All directories in dfs.data.dir are invalid.
2016-06-16 11:59:46,700 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Exiting Datanode
2016-06-16 11:59:46,716 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG:
/**************************************************

评论