hadoop 安装

1.centos6 中的portmap 改成了rpcbind

use nfs to store file,and erery node mount to get the files

 
2.修改用户的gid,uid  usermod -g 502 -u 502 hadoop
keep all nodes user "hapdoop" is same uid and gid 
3.masters和slaves区别:
different between masters and slavers

Typically one machine in the cluster is designated as the NameNode and another machine the as JobTracker, exclusively. These are the masters. The rest of the machines in the cluster act as both DataNode and TaskTracker. These are the slaves.

masters 列的是备份的NameNode机器,masters可以为空

4.
5.将masters配置成无密码ssh登陆各节点:将masters上的id_rsa.pub 添加到各个节点的authorized_keys
 setup ssh authorized ,let all slave node access master without password
6.各个节点上的JAVA_HOME的路径设置成hadoop-env.sh里面设定的
 setup env JAVA_HOME,should same to the config in hadoop-env.sh
7.nameNode上启动start-dfs.sh启动HDFS, jobTracker上启动start-mapred.sh启动MapReduce
 start hdfs on namenode:./start-dfs.sh
 start mapreduce on jobTracker:./start-mapred.sh
8.hadoop应用包放在nfs上,各个节点mount到hadoop用户的app目录
 the developed app store on nfs,and echo node mount the app directory
9.启动前格式化dfs: hadoop namenode -format,格式的文件存放在/tmp目录下,不保险最好放到别的目录下,不然下次要重新格式化
 before use hdfs,need to format first:hadoop namenode -format,the formated file are store in /tmp default and the files may be remove ,better to store in other directory
10.jobTracke的Http地址和端口:http://jobtracker:50030
    taskTracke的Http地址和端口:http://slave(1-3):50060
    nameNode的Http地址和端口:http://nameNode:50070
    dataNode的Http地址和端口:http://dataNode:50075
    辅助nameNode的Http地址和端口:http://secondary-nameNode:50090
some http ui address above
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值