www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

cdh4 install for Centos6
那个最美的年代,最好的时光,一路梦想,一路流泪,流的不会是懦弱的泪,而是对奋斗的寄于;
1,repo配置
>>>/etc/yum.repo/wget http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/cloudera-cdh4.repo
或是wget archive.cloudera.com/cdh4/one-click-install/redhat/6/x86_64/cloudera-cdh-4-0.x86_64.rpm
yum --nogpgcheck localinstall cloudera-cdh-4.x86_64.rpm

2,添加Repository key for Centos6
rpm --import http://archive.cloud.com/cdh4/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera

3,yum 安装cdh相关daemons在相关master,slaves上命令,此时未考虑HA;
默认MRv1,MRv2(YARN)未考虑

where to install          install commands

JobTracker:

yum -y install hadoop-0.20-mapreduce-jobtracker;

NameNode:

yum -y install hadoop-hdfs-namenode

SecondaryNameNode:

yum -y install hadoop-hdfs-secondarynamenode

DataNode,TaskTracker:

yum -y install hadoop-0.20-mapreduce-tasktracker hadoop-hdfs-datanode

Client hosts:

yum -y install hadoop-client

MRv1版本yum部署

yum.repos.d]# yum -y install hadoop-0.20-mapreduce-jobtracker hadoop-hdfs-namenode hadoop-hdfs-secondarynamenode hadoop-0.20-mapreduce-tasktracker hadoop-hdfs-datanode hadoop-client

 

MRv2 即 YARN:

Resource Manguager(analogous MRv1 JobTracker):
yum -y install hadoop-yarn-resourcemanager
yum -y install hadoop-hdfs-namenode
yum -y install yarn-nodemanager hadoop-hdfs-datanode hadoop-mapreduce
yum -y install hadoop-mapreduce-historyserver hadoop-yarn-proxyserver


MRv2(YARN)与MRv1 yum Install区别
Resource Manager host
    yum -y install hadoop-yarn-resourcemanager
NameNode host
    yum -y install hadoop-hdfs-namenode
SecondaryName host
    yum -y install hadoop-hdfs-secondarynode
All cluster host except Resource Manager
    yum -y install hadoop-yarn-nodemanager hadoop-hdfs-datanode hadoop-mapreduce

one host in the cluster
    yum -y install hadoop-mapreduce-historyserver hadoop-yarn-proxyserver

可选项:

1,LZO(压缩算法,具体见google)

wget http://archive.cloudera.com/gplextras/redhat/6/x86_64/gplextras/cloudera-gplextras4.repo 到/etc/yum.repo/

   yum -y install hadoop-lzo-cdh4

 

posted on 2014-03-15 16:43  秦瑞It行程实录  阅读(257)  评论(0编辑  收藏  举报
www.cnblogs.com/ruiyqinrui