Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
elearning:workbooks:hdp:l104 [2020/09/11 07:03] – created adminelearning:workbooks:hdp:l104 [2020/09/18 05:35] (Version actuelle) admin
Ligne 5: Ligne 5:
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
  
-======Configurer la VM master3======+======BDF102 - Configurer la Haute Disponibilité de Namenode, Resource Manager et Highserver2======
  
-Ouvrez un autre terminal et se connecter au serverXX.ittraining.network : 
  
-<code> +Enable NameNode HA Wizard
-ssh -l desktop serverXX.ittraining.network +
-</code>+
  
-Connectez-vous à la VM master3 : +Get Started 
- +Select Hosts 
-<code> +Review 
-desktop@serverXX:~$ ssh -l trainee localhost -p 2422 +Create Checkpoint 
-trainee@localhost's password: trainee +Configure Components 
-Last login: Thu Sep 10 16:53:04 2020 from gateway +Initialize JournalNodes 
-</code> +Start Components 
- +Initialize Metadata 
-Changer le hostname de la machine et créez une adresse IP fixe : +Finalize HA Setup
- +
-<code> +
-[trainee@centos7 ~]$ su - +
-Password: fenestros +
-Last login: Thu Sep 10 16:53:17 CEST 2020 on pts/0 +
-[root@centos7 ~]# nmcli general hostname master3.ittraining.loc +
-[root@centos7 ~]# nmcli connection add con-name ip_fixe ifname enp0s3 type ethernet ip4 10.0.2.18/24 gw4 10.0.2.2 +
-Connection 'ip_fixe' (0e8456ba-23c9-4fb4-a6fd-58d2f7af5048) successfully added. +
-[root@centos7 ~]# nmcli connection mod ip_fixe ipv4.dns 8.8.8.8 +
-[root@centos7 ~]# nmcli connection up ip_fixe +
-</code> +
- +
-Editer /etc/hosts : +
- +
-<code> +
-[root@centos7 ~]# vi /etc/hosts +
-[root@centos7 ~]# cat /etc/hosts +
-127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 +
-::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 +
-10.0.2.16   master1.ittraining.loc  master1 +
-10.0.2.17   master2.ittraining.loc  master2 +
-10.0.2.18   master3.ittraining.loc  master3 +
-10.0.2.19   worker1.ittraining.loc  worker1 +
-10.0.2.20   worker2.ittraining.loc  worker2 +
-10.0.2.21   worker3.ittraining.loc  worker3 +
-</code> +
- +
-Editer /etc/sysconfig/network : +
- +
-<code> +
-[root@centos7 ~]# vi /etc/sysconfig/network +
-[root@centos7 ~]# cat /etc/sysconfig/network +
-# Created by anaconda +
-NETWORKING=yes +
-HOSTNAME=master3.ittraining.loc +
-[root@centos7 ~]# exit +
-logout +
-[trainee@centos7 ~]$ exit +
-logout +
-Connection to localhost closed. +
-</code> +
- +
-Connectez-vous à la VM master3 : +
- +
-<code> +
-desktop@serverXX:~$ ssh -l trainee localhost -p 2422 +
-trainee@localhost's password: trainee +
-Last login: Thu Sep 10 16:53:04 2020 from gateway +
-</code> +
- +
-Créez le repository ambari dans yum : +
- +
-<code> +
-[trainee@master3 ~]$ su - +
-Password: fenestros +
-[root@master3 ~]# vi /etc/yum.repos.d/ambari.repo +
-[root@master3 ~]# cat /etc/yum.repos.d/ambari.repo +
-[ambari] +
-name = Ambari Repo +
-baseurl = http://master1.ittraining.loc/ambari/centos7/2.7.4.0-118 +
-gpgcheck = 0 +
-</code> +
- +
-Mettez à jour la base de données des dépôts dans yum : +
- +
-<code> +
-[root@master3 ~]# yum clean all +
-Loaded plugins: fastestmirror +
-Cleaning repos: ambari base extras updates +
-Cleaning up list of fastest mirrors +
-[root@master3 ~]# yum makecache +
-Loaded plugins: fastestmirror +
-Determining fastest mirrors +
- * base: mirroir.wptheme.fr +
- * extras: ftp.rezopole.net +
- * updates: mirroir.wptheme.fr +
-ambari                                                                                                                                            | 2.9 kB  00:00:00      +
-base                                                                                                                                              | 3.6 kB  00:00:00      +
-extras                                                                                                                                            | 2.9 kB  00:00:00      +
-updates                                                                                                                                           | 2.9 kB  00:00:00      +
-(1/13): ambari/filelists_db                                                                                                                       | 104 kB  00:00:00      +
-(2/13): ambari/primary_db                                                                                                                          25 kB  00:00:00      +
-(3/13): ambari/other_db                                                                                                                           | 1.4 kB  00:00:00      +
-(4/13): base/7/x86_64/group_gz                                                                                                                    | 153 kB  00:00:00      +
-(5/13): base/7/x86_64/filelists_db                                                                                                                | 7.1 MB  00:00:01      +
-(6/13): extras/7/x86_64/filelists_db                                                                                                              | 217 kB  00:00:00      +
-(7/13): extras/7/x86_64/primary_db                                                                                                                | 206 kB  00:00:00      +
-(8/13): extras/7/x86_64/other_db                                                                                                                  | 124 kB  00:00:00      +
-(9/13): updates/7/x86_64/other_db                                                                                                                 | 316 kB  00:00:00      +
-(10/13): base/7/x86_64/other_db                                                                                                                   | 2.6 MB  00:00:01      +
-(11/13): updates/7/x86_64/filelists_db                                                                                                            | 2.4 MB  00:00:01      +
-(12/13): base/7/x86_64/primary_db                                                                                                                 | 6.1 MB  00:00:03      +
-(13/13): updates/7/x86_64/primary_db                                                                                                              | 4.5 MB  00:00:07      +
-Metadata Cache Created +
-</code> +
- +
-Installez ambari agent : +
- +
-<code> +
-[root@master3 ~]# yum -y install ambari-agent +
-</code> +
- +
-Modifiez le fichier /etc/ambari-agent/conf/ambari-agent.ini : +
- +
-<code> +
-[root@master3 ~]# vi /etc/ambari-agent/conf/ambari-agent.ini +
-... +
-[server] +
-hostname=master1.ittraining.loc  <-----------------------modifier de localhost à master1.ittraining.loc +
-... +
-</code> +
- +
-Démarrez le service ambari-agent : +
- +
-<code> +
-[root@master3 ~]# ambari-agent start +
-Verifying Python version compatibility... +
-Using python  /usr/bin/python +
-Checking for previously running Ambari Agent... +
-Checking ambari-common dir... +
-Starting ambari-agent +
-Verifying ambari-agent process status... +
-Ambari Agent successfully started +
-Agent PID at: /run/ambari-agent/ambari-agent.pid +
-Agent out at: /var/log/ambari-agent/ambari-agent.out +
-Agent log at: /var/log/ambari-agent/ambari-agent.log +
-</code>+
  
 ----- -----
Ligne 156: Ligne 26:
 </div> </div>
 </html> </html>
- 
Menu