当前位置:操作系统 > Unix/Linux >>

Hadoop的命令笔记

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
 
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,