Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install CM 5.3.x used by CDH

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install CM 5.3.x used by CDH. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

1. System preparation 1. System installation

This time, the system version is CentOS 6.5. the part of the system is relatively simple. This article does not introduce the specific installation tutorial in detail. Later, we will write the installation tutorial of CentOS system separately.

2. System configuration

A) user creation

CM installation can be installed with ordinary users, which can be added during system installation or with the following command during installation (add custom user names in angle brackets).

Create a user

# useradd

Modify the password

# passwd

B) close SELinux

To install CM, you must close SELinux as follows:

# vi / etc/selinux/config

Change SELINUX to disabled

As shown in the figure:

C) turn off the firewall

CM installation is easy to turn off the firewall, and the opening of the firewall may cause CM-related ports to be inaccessible. The shutdown method is as follows:

Temporary shutdown:

View shutdown statu

# service iptables status

Turn off the firewall

# serviceiptables stop

Configure to power on and turn off the firewall:

# vi / etc/rc.local

As shown in the figure:

Permanently close:

View startup level

# chkconfig-list iptables

Turn off all startup levels

# chkconfig iptables off

Note: there may be situations in the actual cluster that use the above methods to turn off the firewall and the firewall will still turn on automatically. You need to check whether there is a firewall checking mechanism in the cluster environment.

D) SSH key-free configuration (optional)

First, generate a pair of private and public keys, as follows:

# ssh-keygen-t rsa-P''- f ~ / .ssh/id_rsa

# ssh-copy-id (the ip address is who you want to be key-free with, and you should also set key-free with yourself)

E) configure sudo functionality (optional)

Execute the following command:

# visudo

Or # vi / etc/sudoers

Add the following (add a custom user name in angle brackets):

ALL= (ALL) NOPASSWD: ALL

3. Dependent software services

CM installation depends on the postgresql database (which can be changed to other databases) and other service components, and the software can be selected or installed later during the operating system installation. You can download the installation package to install it, or you can install it using yum. The following components are required:

Yum-y install postgresql-server

Yum-y install postgresql

Yum-y install httpd

Yum-y install perl

Yum-y install bind-utils

Yum-y install libxslt

Yum-y install cyrus-sasl-gssapi

Yum-y install redhat-lsb

Yum-y install cyrus-sasl-plain

Yum-y install portmap

Yum-y install fuse

Yum-y install fuse-libs

Yum-y install nc

Yum-yinstall python-setuptools

Yum-y installopenssh-clients (when ssh is not available)

Note: when installing using yum, the configuration file as shown in the figure is required under the / etc/yum.repos.d/ directory (if not, Baidu is your own).

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image008.png

2. Media preparation 1. Selection of installation mode

A) tar package installation (not described in this article)

B) rpm package installation

In this paper, we choose the rpm package to install, download the corresponding rpm package and the corresponding directory structure, and access the local yum source through httpd-Apache to install.

2. Download CM5.3.x

The download address of tar package is as follows:

Http://archive-primary.cloudera.com/cm5/cm/5/ (select version based on operating system version)

Download address of rpm package:

Http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/ (CentOS6.5 system chooses redhat version)

To install using yum, you also need to download a bin file at the following address:

Http://archive.cloudera.com/cm5/installer/5.3.2/ (directory name corresponds to CM version)

To download the rpm package, you need to keep the corresponding directory structure in the web page and put it in the / var/www/html/ directory, as follows:

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image010.png

Configure yum source configure local yum source

Create a cloudera-manager.repo configuration file under / etc/ yum.repos.d/, as follows:

[cloudera-manager]

Name = Cloudera Manager, Version 5.3.2

Baseurl = http://ip address / cm5.3.2

Gpgcheck = 0

Note: private network ip is recommended for ip address to improve transmission speed.

4. Install CM1 and start the service

Start the http service and paste the baseurl address of the repo file into the browser to verify that it can be accessed through http.

Start the http service

# service httpd start

View http service status

# service httpd status

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image012.png

2. Start the installation

Execute the cloudera-manager-installer.bin file in any directory and select the Next button successively according to the screenshot:

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image014.png

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image016.png

Still continue Next, and then yes

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image018.png

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image020.png

The following progress bar appears and wait until 100%

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image022.png

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image024.png

Finally, the following interface appears to indicate that the installation is complete.

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image026.png

Click ok, browser access http://ip address: 7180 / access, password and user name are admin (you can modify it after logging in)

3. Error location

An error prompt can appear during installation. Check the corresponding error log generation directory on the installation prompt box and view the corresponding error log.

Regardless of whether the installation is successful or not, the .rpmnew file will be added to the / etc/yum.repos.d directory, which is usually linked to the remote repository address where you downloaded CM, and delete it before continuing to retry the installation.

File:///C:/Users/WANGLI~1/AppData/Local/Temp/OICE_F1CC53DF-AFC8-4B3A-B9F7-A2FBB9833C1E.0/msohtmlclip1/01/clip_image028.png

Matters needing attention in the installation process

Common reasons for failure during installation are:

1. SeLinux is open, and the set disabled does not take effect.

2. The firewall is open.

3. The postgresql database is not installed or the service is not started

4. The httpd service is not opened or the configured baseurl address is not available.

This is the end of this article on "how to install CM 5.3.x for CDH". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report