Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| elearning:workbooks:hdp:l106 [2020/09/11 15:10] – admin | elearning:workbooks:hdp:l106 [2020/09/17 14:11] (Version actuelle) – created admin | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
| - | ======Configurer la VM worker2====== | + | ======BDF104 - Mettre à Jour Ambari et HDP====== |
| - | Ouvrez un autre terminal et se connecter au serverXX.ittraining.network : | + | =====Contenu du Module===== |
| - | < | ||
| - | ssh -l desktop serverXX.ittraining.network | ||
| - | </ | ||
| - | Connectez-vous à la VM worker2 : | + | ----- |
| - | < | ||
| - | desktop@serverXX: | ||
| - | trainee@localhost' | ||
| - | Last login: Thu Sep 10 16:53:04 2020 from gateway | ||
| - | </ | ||
| - | |||
| - | Changer le hostname de la machine et créez une adresse IP fixe : | ||
| - | |||
| - | < | ||
| - | [trainee@centos7 ~]$ su - | ||
| - | Password: fenestros | ||
| - | Last login: Thu Sep 10 16:53:17 CEST 2020 on pts/0 | ||
| - | [root@centos7 ~]# nmcli general hostname worker2.ittraining.loc | ||
| - | [root@centos7 ~]# nmcli connection add con-name ip_fixe ifname enp0s3 type ethernet ip4 192.168.56.6/ | ||
| - | Connection ' | ||
| - | [root@centos7 ~]# nmcli connection mod ip_fixe ipv4.dns 8.8.8.8 | ||
| - | [root@centos7 ~]# nmcli connection up ip_fixe | ||
| - | </ | ||
| - | |||
| - | Editer /etc/hosts : | ||
| - | |||
| - | < | ||
| - | [root@centos7 ~]# vi /etc/hosts | ||
| - | [root@centos7 ~]# cat /etc/hosts | ||
| - | 127.0.0.1 | ||
| - | ::1 | ||
| - | 192.168.56.2 | ||
| - | 192.168.56.3 | ||
| - | 192.168.56.4 | ||
| - | 192.168.56.5 | ||
| - | 192.168.56.6 | ||
| - | 192.168.56.7 | ||
| - | </ | ||
| - | |||
| - | Editer / | ||
| - | |||
| - | < | ||
| - | [root@centos7 ~]# vi / | ||
| - | [root@centos7 ~]# cat / | ||
| - | # Created by anaconda | ||
| - | NETWORKING=yes | ||
| - | HOSTNAME=worker2.ittraining.loc | ||
| - | [root@centos7 ~]# exit | ||
| - | logout | ||
| - | [trainee@centos7 ~]$ exit | ||
| - | logout | ||
| - | Connection to localhost closed. | ||
| - | </ | ||
| - | |||
| - | Connectez-vous à la VM worker2 : | ||
| - | |||
| - | < | ||
| - | desktop@serverXX: | ||
| - | trainee@localhost' | ||
| - | Last login: Thu Sep 10 16:53:04 2020 from gateway | ||
| - | </ | ||
| - | |||
| - | Créez le repository ambari dans yum : | ||
| - | |||
| - | < | ||
| - | [trainee@worker2 ~]$ su - | ||
| - | Password: fenestros | ||
| - | [root@worker2 ~]# vi / | ||
| - | [root@worker2 ~]# cat / | ||
| - | [ambari] | ||
| - | name = Ambari Repo | ||
| - | baseurl = http:// | ||
| - | gpgcheck = 0 | ||
| - | </ | ||
| - | |||
| - | Mettez à jour la base de données des dépôts dans yum : | ||
| - | |||
| - | < | ||
| - | [root@worker2 ~]# yum clean all | ||
| - | Loaded plugins: fastestmirror | ||
| - | Cleaning repos: ambari base extras updates | ||
| - | Cleaning up list of fastest mirrors | ||
| - | [root@worker2 ~]# yum makecache | ||
| - | Loaded plugins: fastestmirror | ||
| - | Determining fastest mirrors | ||
| - | * base: mirroir.wptheme.fr | ||
| - | * extras: ftp.rezopole.net | ||
| - | * updates: mirroir.wptheme.fr | ||
| - | ambari | ||
| - | base | 3.6 kB 00: | ||
| - | extras | ||
| - | updates | ||
| - | (1/13): ambari/ | ||
| - | (2/13): ambari/ | ||
| - | (3/13): ambari/ | ||
| - | (4/13): base/ | ||
| - | (5/13): base/ | ||
| - | (6/13): extras/ | ||
| - | (7/13): extras/ | ||
| - | (8/13): extras/ | ||
| - | (9/13): updates/ | ||
| - | (10/13): base/ | ||
| - | (11/13): updates/ | ||
| - | (12/13): base/ | ||
| - | (13/13): updates/ | ||
| - | Metadata Cache Created | ||
| - | </ | ||
| - | |||
| - | Installez ambari agent : | ||
| - | |||
| - | < | ||
| - | [root@worker2 ~]# yum -y install ambari-agent | ||
| - | </ | ||
| - | |||
| - | Modifiez le fichier / | ||
| - | |||
| - | < | ||
| - | [root@worker2 ~]# vi / | ||
| - | ... | ||
| - | [server] | ||
| - | hostname=master1.ittraining.loc | ||
| - | ... | ||
| - | </ | ||
| - | |||
| - | Démarrez le service ambari-agent : | ||
| - | |||
| - | < | ||
| - | [root@worker2 ~]# ambari-agent start | ||
| - | Verifying Python version compatibility... | ||
| - | Using 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: / | ||
| - | Agent out at: / | ||
| - | Agent log at: / | ||
| - | </ | ||
| - | |||
| - | ----- | ||
| < | < | ||
| - | <div align="center"> | + | <DIV ALIGN="CENTER"> |
| - | Copyright © 2020 Hugh Norris | + | Copyright © 2020 Hugh Norris< |
| + | Document non-contractuel. Le programme peut être modifié sans préavis. | ||
| </ | </ | ||
| - | </ | + | </ |