Hadoop deploys a new node. After the deployment is complete, start datanode. The error is as follows:
STARTUP_MSG: Starting DataNode
STARTUP_MSG: host = node-128-99/192.168.1.99
STARTUP_MSG: args = []
STARTUP_MSG: version = 1.1.2
STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.1-r 1440782; compiled by 'hortonfo' on Thu Jan 31 02:06:43 UTC 2013
**************************************** ********************/
17:19:20, 492 INFO org. apache. hadoop. metrics2.impl. MetricsConfig: loaded properties from hadoop-metrics2.properties
17:19:20, 508 INFO org. apache. hadoop. metrics2.impl. MetricsSourceAdapter: MBean for source MetricsSystem, sub = Stats registered.
17:19:20, 509 INFO org. apache. hadoop. metrics2.impl. MetricsSystemImpl: Scheduled snapshot period at 10 second (s ).
17:19:20, 509 INFO org. apache. hadoop. metrics2.impl. MetricsSystemImpl: DataNode metrics system started
17:19:20, 670 INFO org. apache. hadoop. metrics2.impl. MetricsSourceAdapter: MBean for source ugi registered.
17:19:20, 736 WARN org. apache. hadoop. hdfs. server. datanode. DataNode: Invalid directory in dfs. data. dir: can not create directory:/opt/dfs/data
17:19:22, 183 ERROR org. apache. hadoop. hdfs. server. datanode. dataNode: org. apache. hadoop. util. diskChecker $ DiskErrorException: Invalid value for volsFailed: 1, Volumes tolerated: 0
At org. apache. hadoop. hdfs. server. datanode. FSDataset. <init> (FSDataset. java: 974)
At org. apache. hadoop. hdfs. server. datanode. DataNode. startDataNode (DataNode. java: 403)
At org. apache. hadoop. hdfs. server. datanode. DataNode. <init> (DataNode. java: 309)
At org. apache. hadoop. hdfs. server. datanode. DataNode. makeInstance (DataNode. java: 1651)
At org. apache. hadoop. hdfs. server. datanode. DataNode. instantiateDataNode (DataNode. java: 1590)
At org. apache. hadoop. hdfs. server. datanode. DataNode. createDataNode (DataNode. java: 1608)
At org. apache. hadoop. hdfs. server. datanode. DataNode. secureMain (DataNode. java: 1734)
At org. apache. hadoop. hdfs. server. datanode. DataNode. main (DataNode. java: 1751)
17:19:22, 184 INFO org. apache. hadoop. hdfs. server. datanode. DataNode: SHUTDOWN_MSG:
This is a directory permission issue.
Mkdir/opt/dfs/
Chown-R hdfs: hadoop/opt/dfs/
Done.
Failed to start Hadoop datanode reload Solution
Datanode in Hadoop cannot start
Heartbeat mechanism between datanode and NameNode in Hadoop
An error occurred while starting namenode or datanode for HJadoop distributed environment deployment.
Distributed configuration of Hadoop 1.0.0 (one namenode and two datanode)