Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
elearning:workbooks:hdp:l105 [2020/09/11 07:03] – created 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 |
- | Ouvrez un autre terminal et se connecter au serverXX.ittraining.network : | + | =====Contenu du Module===== |
- | < | ||
- | ssh -l desktop serverXX.ittraining.network | ||
- | </ | ||
- | Connectez-vous à la VM worker1 : | + | ----- |
- | < | ||
- | 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 worker1.ittraining.loc | ||
- | [root@centos7 ~]# nmcli connection add con-name ip_fixe ifname enp0s3 type ethernet ip4 10.0.2.19/ | ||
- | 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 | ||
- | 10.0.2.16 | ||
- | 10.0.2.17 | ||
- | 10.0.2.18 | ||
- | 10.0.2.19 | ||
- | 10.0.2.20 | ||
- | 10.0.2.21 | ||
- | </ | ||
- | |||
- | Editer / | ||
- | |||
- | < | ||
- | [root@centos7 ~]# vi / | ||
- | [root@centos7 ~]# cat / | ||
- | # Created by anaconda | ||
- | NETWORKING=yes | ||
- | HOSTNAME=worker1.ittraining.loc | ||
- | [root@centos7 ~]# exit | ||
- | logout | ||
- | [trainee@centos7 ~]$ exit | ||
- | logout | ||
- | Connection to localhost closed. | ||
- | </ | ||
- | |||
- | Connectez-vous à la VM worker1 : | ||
- | |||
- | < | ||
- | desktop@serverXX: | ||
- | trainee@localhost' | ||
- | Last login: Thu Sep 10 16:53:04 2020 from gateway | ||
- | </ | ||
- | |||
- | Créez le repository ambari dans yum : | ||
- | |||
- | < | ||
- | [trainee@worker1 ~]$ su - | ||
- | Password: fenestros | ||
- | [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: / | ||
- | </ | ||
- | |||
- | ----- | ||
< | < | ||
- | <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. | ||
</ | </ | ||
- | </ | + | </ |