Hadoop 的命令笔记

bin/hadoop jar /home/***/secure_hadoop_project.jar package.OldInfoMerge /merges/old.txt /merges/tmp1  &


查看根目录的列表
bin/hadoop fs -lsr  /  


单节点启动


5)重启namenode
sudo -u hdfs /usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf/ stop namenode
sudo -u hdfs /usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf/ start namenode




重启jobtracker,在主节点(jobtracker)执行:
sudo -u mapred /usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf/ stop jobtracker
sudo -u mapred /usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf/ start jobtracker


重启动datanode

sudo -u hdfs /usr/lib/hadoop/bin/hadoop-daemon.sh --config /etc/hadoop/conf/ start datanode


删除job 

bin/hadoop job -kill #jobid 

你可能感兴趣的:(Hadoop 的命令笔记)