hadoop off error resolved

View a file, / home / hadoop / tmp / dfs / name / current directory
two, 1.stop hadoop all services;
2. reformatting namenode to: hadoop root directory: hadoop namenode -format finished reformatting like
reformatting after to change the file directory permissions
hadoop fs -chmod -R 777 / tmp
three, hadoop configuration very troublesome, there is always a variety of wonderful problem, before to copy the configuration on a physical machine to a virtual machine on error resourcemanager not start, then the configuration files are deleted again knock again, just fine, so far no solution. Also to be slowly research.
hive error ERROR Unable to move file /tmp/root/hive.log.2019-08-02 to /tmp/root/hive.log.2019-08-02 : java.nio.file.NoSuchFileException / tmp / root / hive .log.2019-08-02 -> /tmp/root/hive.log.2019-08-02
four, hadoop-daemons.sh start datanode datanode start all nodes
datanode hadoop-daemon.sh start datanode start a single node
datanode down machine delete
method 1. enter tmp / dfs, modify VERSION file to the nameNode in version folder contents inside modified and master the same.
2. A method delete tmp / dfs, can then format hdfs (./hdfs namenode -format) regenerate a tmp file in the directory dfs
------------------ ---
the DFS under site.xml configuration file tmp directory

Guess you like

Origin www.cnblogs.com/Mr--zhao/p/11311001.html