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:l107 [2020/09/11 15:11] adminelearning:workbooks:hdp:l107 [2020/09/17 16:23] (Version actuelle) admin
Ligne 5: Ligne 5:
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
  
-======Configurer la VM worker3======+======BDF105 - Installer et Configurer KNOX======
  
-Ouvrez un autre terminal et se connecter au serverXX.ittraining.network :+=====Contenu du Module=====
  
-<code> 
-ssh -l desktop serverXX.ittraining.network 
-</code> 
  
-Connectez-vous à la VM worker3 :+-----
  
-<code> 
-desktop@serverXX:~$ ssh -l trainee localhost -p 2722 
-trainee@localhost's password: trainee 
-Last login: Thu Sep 10 16:53:04 2020 from gateway 
-</code> 
- 
-Changer le hostname de la machine et créez une adresse IP fixe : 
- 
-<code> 
-[trainee@centos7 ~]$ su - 
-Password: fenestros 
-Last login: Thu Sep 10 16:53:17 CEST 2020 on pts/0 
-[root@centos7 ~]# nmcli general hostname worker3.ittraining.loc 
-[root@centos7 ~]# nmcli connection add con-name ip_fixe ifname enp0s3 type ethernet ip4 192.168.56.7/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 
-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=worker3.ittraining.loc 
-[root@centos7 ~]# exit 
-logout 
-[trainee@centos7 ~]$ exit 
-logout 
-Connection to localhost closed. 
-</code> 
- 
-Connectez-vous à la VM worker3 : 
- 
-<code> 
-desktop@serverXX:~$ ssh -l trainee worker3.ittraining.loc 
-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@worker3 ~]$ su - 
-Password: fenestros 
-[root@worker3 ~]# vi /etc/yum.repos.d/ambari.repo 
-[root@worker3 ~]# 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@worker3 ~]# yum clean all 
-Loaded plugins: fastestmirror 
-Cleaning repos: ambari base extras updates 
-Cleaning up list of fastest mirrors 
-[root@worker3 ~]# 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@worker3 ~]# yum -y install ambari-agent 
-</code> 
- 
-Modifiez le fichier /etc/ambari-agent/conf/ambari-agent.ini : 
- 
-<code> 
-[root@worker3 ~]# 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@worker3 ~]# 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> 
- 
------ 
 <html> <html>
-<div align="center"> +<DIV ALIGN="CENTER"> 
-Copyright © 2020 Hugh Norris+Copyright © 2020 Hugh Norris<BR><BR> 
 +Document non-contractuel. Le programme peut être modifié sans préavis.
 </div> </div>
-</html> +</html> 
Menu