安装Cloudera Manager 5
来源:互联网 发布:2017淘宝开店年龄要求 编辑:程序博客网 时间:2024/05/16 06:00
一、搭建CM的本地Yum软件源
CM在线文档中大致讲解了如何搭建本地Yum,参见:Creating and Using a Local Package Repository ,由于兼顾到不同的操作系统和CM版本,描述的不够细致,下面就 CentOS-6.5-x86_64 和 CM5.0.2 版本的本地Yum软件源的搭建步骤进行描述。
1、准备工作
关闭防火墙:
- [root@localhost soft]# service iptables stop
- iptables: Setting chains to policy ACCEPT: filter [ OK ]
- iptables: Flushing firewall rules: [ OK ]
- iptables: Unloading modules: [ OK ]
- [root@localhost soft]#
永久关闭防火墙,可以使用:chkconfig iptables off
关闭selinux:
- 修改:/etc/selinux/config
- SELINUX=disabled
- 修改后,重启机器。
2、安装Apache httpd web服务器
检查是否存在httpd服务:
- [root@localhost soft]# service httpd status
如果不存在,则用下面的命令安装:
- yum install httpd
CentOS6默认安装了httpd,启动:
- [root@localhost soft]# service httpd start
- Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
- [ OK ]
- [root@localhost soft]#
上面的提示信息不用理会。将httpd加入到启动列表:chkconfig httpd on
httpd常用命令如下,供参考:- 启动命令:service httpd start
- 关闭命令:service httpd stop
- 重启命令:service httpd restart
- 查看状态:service httpd status
3、下载CM资源包
到CM资源页面:http://archive-primary.cloudera.com/cm5/repo-as-tarball/5.0.2/ 下载资源包,对应CentOS的资源包为:
- cm5.0.2-centos6.tar.gz 11-Jun-2014 18:12 517M
这是压缩包,解压后包含CM安装过程中需要的RPM文件,除了 postgresql 数据库安装文件。
4、发布CM资源文件
解压资源包:
- [root@localhost cloudera]# pwd
- /home/soft/cloudera
- [root@localhost cloudera]# ll
- total 529076
- -rw-r--r--. 1 root root 541768507 Jun 14 09:14 cm5.0.2-centos6.tar.gz
- [root@localhost cloudera]# tar -zxvf cm5.0.2-centos6.tar.gz
- cm/
- cm/cloudera-manager.repo
- cm/5
- cm/5.0.2/
- cm/5.0.2/mirrors
- cm/5.0.2/repodata/
- cm/5.0.2/repodata/other.xml.gz.asc
- cm/5.0.2/repodata/filelists.xml.gz
- cm/5.0.2/repodata/primary.xml.gz.asc
- cm/5.0.2/repodata/repomd.xml
- cm/5.0.2/repodata/other.xml.gz
- cm/5.0.2/repodata/repomd.xml.asc
- cm/5.0.2/repodata/primary.xml.gz
- cm/5.0.2/repodata/filelists.xml.gz.asc
- cm/5.0.2/RPMS/
- cm/5.0.2/RPMS/x86_64/
- cm/5.0.2/RPMS/x86_64/cloudera-manager-daemons-5.0.2-1.cm502.p0.297.el6.x86_64.rpm
- cm/5.0.2/RPMS/x86_64/enterprise-debuginfo-5.0.2-1.cm502.p0.297.el6.x86_64.rpm
- cm/5.0.2/RPMS/x86_64/cloudera-manager-server-db-2-5.0.2-1.cm502.p0.297.el6.x86_64.rpm
- cm/5.0.2/RPMS/x86_64/cloudera-manager-server-5.0.2-1.cm502.p0.297.el6.x86_64.rpm
- cm/5.0.2/RPMS/x86_64/cloudera-manager-agent-5.0.2-1.cm502.p0.297.el6.x86_64.rpm
- cm/5.0.2/RPMS/x86_64/oracle-j2sdk1.7-1.7.0+update45-1.x86_64.rpm
- cm/5.0.2/RPMS/x86_64/jdk-6u31-linux-amd64.rpm
- cm/5.0.2/RPMS/noarch/
- cm/RPM-GPG-KEY-cloudera
- [root@localhost cloudera]# ll
- total 529080
- drwxrwxr-x. 3 1106 592 4096 Jun 11 11:08 cm
- -rw-r--r--. 1 root root 541768507 Jun 14 09:14 cm5.0.2-centos6.tar.gz
- [root@localhost cloudera]#
移动解压后的cm文件夹到Web目录,并设置权限:
- [root@localhost html]# pwd
- /var/www/html
- [root@localhost html]# mkdir -p cm5/redhat/6/x86_64
- [root@localhost html]# cd cm5/redhat/6/x86_64
- [root@localhost x86_64]# mv /home/soft/cloudera/cm .
- [root@localhost x86_64]# chmod -R ugo+rX cm
至此,局域网内的CM资源文件已经发布完成,下面的修改在客户端进行,也就是安装CM的机器,当然,存放CM资源文件的机器也可以安装CM。
二、离线安装Cloudera Manager 5
1、安装postgresql
在离线安装CM时,有时会报如下的错误:
- Resolving Dependencies
- --> Running transaction check
- ---> Package cloudera-manager-server-db-2.x86_64 0:5.0.2-1.cm502.p0.297.el6 will be installed
- --> Processing Dependency: postgresql-server >= 8.4 for package: cloudera-manager-server-db-2-5.0.2-1.cm502.p0.297.el6.x86_64
- --> Finished Dependency Resolution
- Error: Package: cloudera-manager-server-db-2-5.0.2-1.cm502.p0.297.el6.x86_64 (cloudera-manager)
- Requires: postgresql-server >= 8.4
- You could try using --skip-broken to work around the problem
- You could try running: rpm -Va --nofiles --nodigest
检查是否安装了postgresql:
- [root@localhost postgresql84]# rpm -qa|grep postgres
下面以rpm方式安装postgresql,先到 http://yum.postgresql.org/8.4/redhat/rhel-6-x86_64/repoview/ 上下载postgresql8.4的包,需要下载三个包:
- [root@localhost postgresql84]# ll
- total 4532
- -rw-r--r-- 1 root root 898392 Jun 15 01:10 postgresql84-8.4.21-1PGDG.rhel6.x86_64.rpm
- -rw-r--r-- 1 root root 180396 Jun 15 01:10 postgresql84-libs-8.4.21-1PGDG.rhel6.x86_64.rpm
- -rw-r--r-- 1 root root 3552400 Jun 15 01:10 postgresql84-server-8.4.21-1PGDG.rhel6.x86_64.rpm
- [root@localhost postgresql84]#
- [root@localhost postgresql84]# rpm -ivh postgresql84-libs-8.4.21-1PGDG.rhel6.x86_64.rpm
- warning: postgresql84-libs-8.4.21-1PGDG.rhel6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY
- Preparing... ########################################### [100%]
- 1:postgresql84-libs ########################################### [100%]
- [root@localhost postgresql84]# rpm -ivh postgresql84-8.4.21-1PGDG.rhel6.x86_64.rpm
- warning: postgresql84-8.4.21-1PGDG.rhel6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY
- Preparing... ########################################### [100%]
- 1:postgresql84 ########################################### [100%]
- [root@localhost postgresql84]# rpm -ivh postgresql84-server-8.4.21-1PGDG.rhel6.x86_64.rpm
- warning: postgresql84-server-8.4.21-1PGDG.rhel6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY
- Preparing... ########################################### [100%]
- 1:postgresql84-server ########################################### [100%]
- [root@localhost postgresql84]#
postgresql包含许多不同的包,包括第三方类库,通常安装最重要的包即可(能满足大部分应用需求)。这些包如下:
postgresql - 客户端类库及二进制文件
postgresql-server - 核心的数据库服务器
postgresql-contrib - 附加的供应组件
postgresql-devel - 用户C语言开发的类库和头文件
pgadmin3 - 数据库图像化管理工具第三版
2、修改客户端配置,使其可以找到资源文件
在客户端机器上关闭防火墙和selinux,参见准备工作中的描述。
新建名称为 myrepo.repo 的软件源配置文件,内容如下:
- [myrepo]
- name=myrepo
- baseurl=http://<hostname>/cm5/redhat/6/x86_64/cm/5/
- enabled=1
- gpgcheck=0
- [root@localhost yum.repos.d]# pwd
- /etc/yum.repos.d
- [root@localhost yum.repos.d]# ll
- total 4
- -rw-r--r-- 1 root root 100 Jun 14 21:14 myrepo.repo
- [root@localhost yum.repos.d]#
- <hostname> archive.cloudera.com
3、下载CM5安装文件
从 http://archive-primary.cloudera.com/cm5/installer/5.0.2.13/ 下载:
- cloudera-manager-installer.bin 11-Jun-2014 18:07 499K
4、安装CM5
给 cloudera-manager-installer.bin 添加可执行权限:
- [root@localhost cloudera]# chmod +x cloudera-manager-installer.bin
进行安装:
- [root@localhost cloudera]# ./cloudera-manager-installer.bin
三、登录CM管理页面
使用用户名和密码都为admin登录 http://localhost:7180/ ,界面如下:
登录CM管理页面,进行相关的操作,后文详细描述Impala, Spark的离线安装方法。
原创作品,转载请注明出处:http://blog.csdn.net/yangzhaohui168/article/details/30118175
- 安装Cloudera Manager 5
- Cloudera Manager 5安装
- 安装cdh4.5工具cloudera manager
- Cloudera Manager 5和CDH5离线安装
- Cloudera Manager 5和CDH5离线安装
- Cloudera Manager 5和CDH5离线安装
- centos7在线安装cloudera manager 5
- Cloudera Manager安装
- 手动安装Cloudera Manager
- 安装cloudera-manager
- Cloudera Manager安装
- cloudera manager安装
- cloudera-manager安装
- 安装Cloudera Manager
- 离线安装cloudera Manager
- cloudera-manager安装
- Cloudera学习(1)------安装Cloudera Manager
- Cloudera Manager 5 管理
- 模型评价指标——精确率,准确率,召回率,F1值
- RobotArt弧形板打磨
- HDU 4939 Stupid Tower Defense
- dubbo-admin程序报错Bean property 'URIType' is not writable or has an invalid setter method.
- C# 用interface和delgate实现回调-----配合索引器实现List
- 安装Cloudera Manager 5
- iOS在控制器中监听是否点击Home键以及重新进入界面的方法
- 打包静态库
- 多线程应用场景
- yii调用微信接口扫二维码
- 基于SSL 的 Node.js 的Nginx配置
- [存代码]限制多下拉列表选择项
- mvn常用命令
- iOS基础知识(1) 一 OC语言