Home Database Mysql Tutorial CDH5.2 Cloudera Manager installer安装配置

CDH5.2 Cloudera Manager installer安装配置

Jun 07, 2016 pm 04:41 PM
cloudera manager

一、机器准备 1、3台主机名:server202 server203 server204 另外server201用来搭建本地yum的repos,不参与集群。 2、配置server202的ssh免密码登录到其他机器(包括自己) 3、3个机器节点的/etc/hosts加入 192.168.2.201 archive.cloudera.com 192.168.2.20


一、机器准备

1、3台主机名:server202 server203 server204

另外server201用来搭建本地yum的repos,不参与集群。

2、配置server202的ssh免密码登录到其他机器(包括自己)

3、3个机器节点的/etc/hosts加入

192.168.2.201 archive.cloudera.com

192.168.2.202 server202

192.168.2.203 server203

192.168.2.204 server204

4、其他一些相关操作:

关闭防火墙

chkconfig iptables off

service iptables stop

通过Cloudera Manager installer安装必须设置/etc/selinux/config中的SELINUX=disabled,你需要重启机器。

sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config

配置163,sohu源

cd /etc/yum.repos.d/

#Centos5

wget?http://mirrors.163.com/.help/CentOS5-Base-163.repo

#wget?http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

#Centos6

wget?http://mirrors.163.com/.help/CentOS6-Base-163.repo

yum?makecache

同步时间

ntpdate -u pool.ntp.org

安装CDH5.2必须安装python26版本,通过yum安装。

python yum -y install python26 python26-devel

有可能会提示zlib的错误,同时python中通过下面编译来重新配置。

yum install zlib

vi Modules/Setup Modules/Setup.dist
搜索zlib,去掉 #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz 前面的注释。
./configure
make

make install

二、构建本地repos(server201机器)

下载CDH5.2的tarball安装包,后面的manager通过tarball来安装

http://archive.cloudera.com/cdh5/repo-as-tarball/5.2.0/cdh5.2.0-centos5.tar.gz

http://archive.cloudera.com/cdh5/repo-as-tarball/5.2.0/cdh5.2.0-centos6.tar.gz

http://archive.cloudera.com/cm5/repo-as-tarball/5.2.0/cm5.2.0-centos5.tar.gz

http://archive.cloudera.com/cm5/repo-as-tarball/5.2.0/cm5.2.0-centos6.tar.gz

注意如果是centos6的操作系统还需要下载?navigator-keytrustee5目录,通过wget来下载

wget --mirror -p --convert-links -P /disk/cloudera/t?http://archive-primary.cloudera.com/navigator-keytrustee5/

这里是通过server201中nginx代理本地repos,并将archive.cloudera.com指定到192.168.2.201,这样你就不用修改yum的repos的网址。要不你得手动指定自己的repos地址。

nginx的默认配置没打开显示目录下的全部文件,你可以通过下面的配置在nginx.conf中启用。

autoindex on;#自动显示目录

autoindex_exact_size off;#人性化方式显示文件大小否则以byte显示

autoindex_localtime on;#按服务器时间显示,否则以gmt时间显示


搭建本地repos的相关配置命令


#centos5

mkdir -p /disk/cloudera/cdh5/redhat/5/x86_64

cd /disk/cloudera/cdh5/redhat/5/x86_64

tar -xzvf /disk/cloudera/download/cdh5.2.0-centos5.tar.gz

mkdir -p?/disk/cloudera/cm5/redhat/5/x86_64

cd?/disk/cloudera/cm5/redhat/5/x86_64

tar -xzvf /disk/cloudera/download/cm5.2.0-centos5.tar.gz

#centos6


mkdir -p /disk/cloudera/cdh5/redhat/6/x86_64

cd /disk/cloudera/cdh5/redhat/6/x86_64

tar -xzvf /disk/cloudera/download/cdh5.2.0-centos6.tar.gz


mkdir -p?/disk/cloudera/cm5/redhat/6/x86_64

cd?/disk/cloudera/cm5/redhat/6/x86_64

tar -xzvf /disk/cloudera/download/cm5.2.0-centos6.tar.gz

mkdir -p /disk/cloudera/redhat/cdh/

cd /disk/cloudera/redhat/cdh

cp /disk/cloudera/cdh5/redhat/5/x86_64/cdh/RPM-GPG-KEY-cloudera .

配置成功后,确保http://archive.cloudera.com能够访问到你的本地的repos。

三、cloudera manager 安装

1、下载cloudera-manager-installer.bin?:?http://archive.cloudera.com/cm5/installer/latest/cloudera-manager-installer.bin


2、执行cloudera-manager-installer.bin,安装上面的步骤来安装即可。一般指需要几分钟时间。因为走得是本地repos源。注意要关闭SELINUX=disabled。安装的错误相关日志在/var/log/cloudera-manager-installer/这边可以查看。

3、安装后访问?http://server202:7180 来访问,默认账号密码:admin admin

四、通过cloudera manager安装集群

按照界面的导航流程操作即可。

1、选择 Cloudera Express 版本。

2、列出可安装的包及服务

3、指定CDH主机:

server202

server203

server204

4、选择存储库。选择方法:使用数据包。 CDH版本选择5.2。其他不要去修改。

5、选址安装oracle JDK 安装默认配置即可。

6、设置ssh登录的key,上传的是server202的私钥。

7、进入安装的流程。可以详细看到每个节点的安装情况。错误日志等,可以回滚重新安装。一般只要十几分钟。如果有错误,按照错误提示的内容修复即可。我碰到的错误就是python26依赖问题。

8、安装成功后,会自动对集群的机器的一些服务环境检查,根据检查结果自己来修复。一般都会检查通过。

9、选择需要安装的服务,这里你最大话安装,选择全部。

10、配置集群的角色。一般按照默认即可。注意,有些角色没有默认配置主机,你需要自己配置需要安装的主机位置。数据库,配置文件都按照默认即可。首次配置也需要十几分钟时间。

11、一切正常后,就进入管理面板,可以看到安装的服务。

安装成功后截图:

参考:

本站haddop文章?http://www.lifeba.org/?s=hadoop

http://blog.csdn.net/yangzhaohui168/article/details/33403555

http://www.cnblogs.com/thinkCoding/p/3567408.html

http://www.doc88.com/p-0042075356791.html

http://www.tuicool.com/articles/AnuiUra

http://wenku.baidu.com/link?url=6u94qotuyNG9n0rcgd9fNLQ_i4qhDyE3lN-7wo3oW1nZ9NSvnswNsCN007uOEBVccnjpVfW2YwBbgp1MgSz6O8RkztV-feyD2V40ghY2SES

以上就是CDH5.2 Cloudera Manager installer安装配置的内容,更多相关内容请关注PHP中文网(www.php.cn)!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1670
14
PHP Tutorial
1274
29
C# Tutorial
1256
24
MySQL's Role: Databases in Web Applications MySQL's Role: Databases in Web Applications Apr 17, 2025 am 12:23 AM

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

Explain the role of InnoDB redo logs and undo logs. Explain the role of InnoDB redo logs and undo logs. Apr 15, 2025 am 12:16 AM

InnoDB uses redologs and undologs to ensure data consistency and reliability. 1.redologs record data page modification to ensure crash recovery and transaction persistence. 2.undologs records the original data value and supports transaction rollback and MVCC.

MySQL vs. Other Programming Languages: A Comparison MySQL vs. Other Programming Languages: A Comparison Apr 19, 2025 am 12:22 AM

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages ​​such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages ​​have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

How does MySQL index cardinality affect query performance? How does MySQL index cardinality affect query performance? Apr 14, 2025 am 12:18 AM

MySQL index cardinality has a significant impact on query performance: 1. High cardinality index can more effectively narrow the data range and improve query efficiency; 2. Low cardinality index may lead to full table scanning and reduce query performance; 3. In joint index, high cardinality sequences should be placed in front to optimize query.

MySQL for Beginners: Getting Started with Database Management MySQL for Beginners: Getting Started with Database Management Apr 18, 2025 am 12:10 AM

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA

MySQL vs. Other Databases: Comparing the Options MySQL vs. Other Databases: Comparing the Options Apr 15, 2025 am 12:08 AM

MySQL is suitable for web applications and content management systems and is popular for its open source, high performance and ease of use. 1) Compared with PostgreSQL, MySQL performs better in simple queries and high concurrent read operations. 2) Compared with Oracle, MySQL is more popular among small and medium-sized enterprises because of its open source and low cost. 3) Compared with Microsoft SQL Server, MySQL is more suitable for cross-platform applications. 4) Unlike MongoDB, MySQL is more suitable for structured data and transaction processing.

Explain the InnoDB Buffer Pool and its importance for performance. Explain the InnoDB Buffer Pool and its importance for performance. Apr 19, 2025 am 12:24 AM

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

MySQL: Structured Data and Relational Databases MySQL: Structured Data and Relational Databases Apr 18, 2025 am 12:22 AM

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

See all articles