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:l105 [2020/09/12 09:48] – admin | elearning:workbooks:hdp:l105 [2020/09/17 14:10] (Version actuelle) – created admin | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
| - | ======Configurer | + | ======BDF103 - Installer et Configurer |
| - | Démarrer la VM worker1 : | + | =====Contenu du Module===== |
| - | < | ||
| - | desktop@serverXX: | ||
| - | </ | ||
| - | Connectez-vous à la VM worker1 : | + | ----- |
| - | < | ||
| - | desktop@serverXX: | ||
| - | trainee@192.168.56.2' | ||
| - | Last login: Sat Sep 12 09:36:26 2020 from 192.168.56.1 | ||
| - | </ | ||
| - | |||
| - | Changer le hostname de la machine et modifiez l' | ||
| - | |||
| - | < | ||
| - | [trainee@centos7 ~]$ su - | ||
| - | Password: fenestros | ||
| - | Last login: Thu Sep 10 16:53:17 CEST 2020 on pts/0 | ||
| - | [root@centos7 ~]# nmcli general hostname worker1.ittraining.loc | ||
| - | [root@centos7 ~]# nmcli con mod ip_enp0s8 ip4 192.168.56.5/ | ||
| - | </ | ||
| - | |||
| - | 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=worker1.ittraining.loc | ||
| - | </ | ||
| - | |||
| - | Activez l' | ||
| - | |||
| - | < | ||
| - | [root@centos7 ~]# nmcli connection up ip_enp0s8 | ||
| - | Connection successfully activated (D-Bus active path: / | ||
| - | [root@centos7 ~]# exit | ||
| - | logout | ||
| - | [trainee@centos7 ~]$ exit | ||
| - | logout | ||
| - | Connection to localhost closed. | ||
| - | </ | ||
| - | |||
| - | Démarrez la VM master1 : | ||
| - | |||
| - | < | ||
| - | desktop@serverXX: | ||
| - | </ | ||
| - | |||
| - | Connectez-vous à la VM worker1 : | ||
| - | |||
| - | < | ||
| - | desktop@serverXX: | ||
| - | trainee@192.168.56.5' | ||
| - | Last login: Sat Sep 12 10:55:31 2020 from 192.168.56.1 | ||
| - | </ | ||
| - | |||
| - | Supprimez l' | ||
| - | |||
| - | < | ||
| - | [trainee@worker1 ~]$ su - | ||
| - | Password: fenestros | ||
| - | [root@worker1 ~]# ip a del 192.168.56.2/ | ||
| - | </ | ||
| - | |||
| - | Créez le repository ambari dans yum : | ||
| - | |||
| - | < | ||
| - | [root@worker1 ~]# vi / | ||
| - | [root@worker1 ~]# cat / | ||
| - | [ambari] | ||
| - | name = Ambari Repo | ||
| - | baseurl = http:// | ||
| - | gpgcheck = 0 | ||
| - | </ | ||
| - | |||
| - | Mettez à jour la base de données des dépôts dans yum : | ||
| - | |||
| - | < | ||
| - | [root@worker1 ~]# yum clean all | ||
| - | Loaded plugins: fastestmirror | ||
| - | Cleaning repos: ambari base extras updates | ||
| - | Cleaning up list of fastest mirrors | ||
| - | |||
| - | [root@worker1 ~]# 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@worker1 ~]# yum -y install ambari-agent | ||
| - | </ | ||
| - | |||
| - | Modifiez le fichier / | ||
| - | |||
| - | < | ||
| - | [root@worker1 ~]# vi / | ||
| - | ... | ||
| - | [server] | ||
| - | hostname=master1.ittraining.loc | ||
| - | ... | ||
| - | </ | ||
| - | |||
| - | Démarrez le service ambari-agent : | ||
| - | |||
| - | < | ||
| - | [root@worker1 ~]# 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: / | ||
| - | </ | ||
| - | |||
| - | Arrêtez la VM worker1 : | ||
| - | |||
| - | < | ||
| - | [root@worker1 ~]# shutdown -h now | ||
| - | Connection to 192.168.56.5 closed by remote host. | ||
| - | Connection to 192.168.56.5 closed. | ||
| - | </ | ||
| - | |||
| - | Arrêtez la VM master1 : | ||
| - | |||
| - | < | ||
| - | desktop@serverXX: | ||
| - | 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% | ||
| - | </ | ||
| - | |||
| - | ----- | ||
| < | < | ||
| - | <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. | ||
| </ | </ | ||
| - | </ | + | </ |