Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
elearning:workbooks:hdp:l104 [2020/09/12 09:41] 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======
  
-Démarrer la VM master3 : 
  
-<code> +Enable NameNode HA Wizard
-desktop@serverXX:~$ VBoxManage startvm master3 --type headless +
-</code>+
  
-Connectez-vous à la VM master3 : +Get Started 
- +Select Hosts 
-<code> +Review 
-desktop@serverXX:~$ ssh -l trainee 192.168.56.2 +Create Checkpoint 
-trainee@192.168.56.2's password:  +Configure Components 
-Last login: Sat Sep 12 09:36:26 2020 from 192.168.56.1 +Initialize JournalNodes 
-</code> +Start Components 
- +Initialize Metadata 
-Changer le hostname de la machine et modifiez l'adresse IP fixe de l'interface enp0s8 : +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 con mod ip_enp0s8 192.168.56.4/24 +
-</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 +
-192.168.56.2   master1.ittraining.loc  master1 +
-192.168.56.3   master2.ittraining.loc  master2 +
-192.168.56.4   master3.ittraining.loc  master3 +
-192.168.56.5   worker1.ittraining.loc  worker1 +
-192.168.56.6   worker2.ittraining.loc  worker2 +
-192.168.56.7   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 +
-</code> +
- +
-Activez l'adresse IP 192.168.56.4 et déconnectez-vous de la VM : +
- +
-<code> +
-[root@centos7 ~]# nmcli connection up ip_enp0s8 +
-Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3) +
-[root@centos7 ~]# exit +
-logout +
-[trainee@centos7 ~]$ exit +
-logout +
-Connection to localhost closed. +
-</code> +
- +
-Démarrez la VM master1 : +
- +
-<code> +
-desktop@serverXX:~$ VBoxManage startvm master1 --type headless +
-</code> +
- +
-Connectez-vous à la VM master3 : +
- +
-<code> +
-desktop@serverXX:~$ ssh -l trainee 192.168.56.4 +
-trainee@192.168.56.4's password:  +
-Last login: Sat Sep 12 10:55:31 2020 from 192.168.56.1 +
-</code> +
- +
-Supprimez l'adresse IP 192.168.56.2 : +
- +
-<code> +
-[trainee@master3 ~]$ su - +
-Password: fenestros +
-[root@master3 ~]# ip a del 192.168.56.2/24 dev enp0s8 +
-</code> +
- +
-Créez le repository ambari dans yum : +
- +
-<code> +
-[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> +
- +
-Arrêtez la VM master3 : +
- +
-<code> +
-[root@master3 ~]# shutdown -h now +
-Connection to 192.168.56.4 closed by remote host. +
-Connection to 192.168.56.4 closed. +
-</code> +
- +
-Arrêtez la VM master1 : +
- +
-<code> +
-desktop@serverXX:~$ VBoxManage controlvm master1 poweroff +
-0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% +
-</code>+
  
 ----- -----
Ligne 188: Ligne 26:
 </div> </div>
 </html> </html>
- 
Menu