In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "steps to install Ambari2.2.1 and HDP2.4 under centos6". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the steps to install Ambari2.2.1 and HDP2.4 under centos6".
1. First of all, download their installation packages, do not try to yum, very slow, the best way is to create local resources to install.
Http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.0.0/HDP-2.4.0.0-centos6-rpm.tar.gz
Http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6/HDP-UTILS-1.1.0.20-centos6.tar.gz
Http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.0/ambari-2.2.1.0-centos6.tar.gz
two。 Set up a local resource library and set up a hdp directory under var/www/html. If you don't have it, install httpd yum install httpd to install and decompress the three resources, then transfer them to the hdp directory, and then restart the httpd service. Use the following three addresses to test whether you can access the URL, and then prepare three files. Hdp.repo,ambari.repo,hdp-util.repo do not follow the official instructions. That will report an error. I will put mine out, change the address according to it, and then copy these three files to the / etc/yum.repos.d/ directory of all the machines in the cluster.
Next, I will post their content.
Hdp.repo
[HDP-2.3.0.0] name=HDP Version-HDP-2.3.0.0baseurl= http://10.0.71.15/hdp/HDP/centos6/2.x/updates/2.3.0.0gpgcheck=1gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkinsenabled=1priority=1
Ambari.repo
[Updates-ambari-2.2.1.0] name=ambari-2.2.1.0-Updatesbaseurl= http://10.0.71.15/hdp/ambari/centos6/2.2.1.0-161gpgcheck=1gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkinsenabled=1priority=1
Hdp-util.repo
[HDP-UTILS-1.1.0.20] name=HDP Utils Version-HDP-UTILS-1.1.0.20baseurl= http://10.0.71.15/hdp/HDP-UTILS-1.1.0.20/repos/centos6gpgcheck=1gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkinsenabled=1priority=1
3. Preparation before installation
(1) set ssh to log in automatically, which can be done by referring to the one in which ssh automatically logs in. The URL is http://www.cnblogs.com/cenyuhai/p/3280668.html.
(2) set ntpd to start automatically, and all machines
Chkconfig-level 5 ntpd on service ntpd start
(3) disable selinux, all machines
Vi / etc/sysconfig/selinux set selinux=disabled
(4) set time synchronization, all machines
Cp / usr/share/zoneinfo/Asia/Shanghai / etc/localtime # sets the time zone to Beijing time, this is Shanghai, because there is only Shanghai in the centos. Ntpdate us.pool.ntp.org # time synchronization
If you don't have ntpdate installed, you can yum yum install-y ntpdate
Join the scheduled task and synchronize the clock every 10 minutes
Crontab-e
Paste the following content into it and save it.
0-59 take 10 * / usr/sbin/ntpdate us.pool.ntp.org | logger-t NTP
(5) modify the / etc/hosts file for all machines and set it as follows:
192.168.1.133 hadoop.Master192.168.1.134 hadoop.SlaveT1192.168.1.135 hadoop.SlaveT2
4. Modify the configuration file, all machines
Yum install yum-plugin-priorities vi / etc/yum/pluginconf.d/priorities.conf # is set to the following content [main] enabled=1 gpgcheck=0
5. Install a custom mysql service
Yum install-y mysql-server
After installation, log in with your root account and execute the following command
Create database hive; grant all on hive.* TO 'hive'@'%' IDENTIFIED BY' hive'; create database oozie DEFAULT CHARACTER SET utf8; grant all on oozie.* TO 'oozie'@'%' IDENTIFIED BY' oozie'
If mysql is also installed on a machine in the cluster, and the service is also installed on that machine. For example, if I have a hive service on my hadoop.SlaveT1, and if mysql is also on it, I will not be able to connect and I need to run the following command
Grant all on hive.* TO 'hive'@'hadoop.SlaveT1' IDENTIFIED BY' hive'
5. Install the ambari service
Yum install-y epel-release yum install ambari-server
/ / download jdk linux x64 by yourself. You can see which version you can see when you execute ambari-server setup and put it under / var/lib/ambari-server/resources, so that it won't download itself and the speed will be slow.
Ambari-server setup
My ambari database account password is all ambari.
Start the ambari service ambari-server start after installation
Access address ip:8080 username password admin/admin
Question:
Mysql cannot find the driver
Yum install mysql-connector-java
two。 To use mysql database, you need to import the database and build tables manually.
Mysql > create database ambari character set utf8
Mysql > use ambari
Mysql > source / var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql
Mysql > grant all privileges on ambari.* to ambari@'%' identified by 'ambari'
3.
Error: Package: snappy-devel-1.0.5-1.el6.x86_64 (epel) Requires: snappy (x86-64) = 1.0.5-1.el6 Installed: snappy-1.1.0-1.el6.x86_64 (@ anaconda-CentOS-201311272149.x86_64/6.5) snappy (x86-64) = 1.1.0-1.el6 Available: snappy-1.0 .5-1.el6.x86_64 (epel) snappy (x86-64) = 1.0.5-1.el6 solution: rpm-e snappy-1.1.0-1.el6.x86_64-- nodeps
4. Does not contain a valid host:port authority
The hosts hostname is underlined and should be removed.
5. ERROR 2015-08-14 1717 Failed to start ping port listener of 11 Errno 26557 main.py:272-Failed to start ping port listener of: [Errno 98] Address already in use
Kill the process that uses amabri
Start hbase
6.
Resource_management.core.exceptions.Fail: Execution of'/ usr/hdp/current/hbase-master/bin/hbase-daemon.sh-- config / usr/hdp/current/hbase-master/conf start master' returned 127. Su: warning: cannot change directory to / home/hbase: Permission denied-bash: / home/hbase/.bash_profile: Permission denied-bash: / usr/hdp/current/hbase-master/bin/hbase-daemon.sh: No such file or directory found that there is no bin/hbase-daemon.sh file under hbase-master that needs to be manually copied into bin. Lib, thank you for reading. These are the "steps to install Ambari2.2.1 and HDP2.4 under centos6". After the study of this article I believe that you have a deeper understanding of the steps of installing Ambari2.2.1 and HDP2.4 under centos6, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.