问题
问题:hadoop 启动后slave1中的datanode没有启动,但slave2中的datanode启动,而且查看slave1下的tmp文件夹(~/hadoop-2.8.3/tmp)并没有dfs文件夹。
方法
方法一
在网上找了一些方法,都说要删掉上面的tmp文件夹,使clusterID保持一致,但我的slave1中压根没有这样的文件夹啊。
(hadoop 常见错误)
方法二
后来试着把slave2中的hdfs-site.xml复制到slave1中,如下所示:
原slave1中的hdfs-site.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Lice