Wolfram Computation Meets Knowledge

Comment configurer grid Mathematica Server avec Lightweight Grid Manager sous Linux ?

Pour configurer gridMathematica Server, il faut

Installer gridMathematica Server sur un nœud de calcul

Le programme d’installation de gridMathematica Server pour Linux est un script bash qui est exécuté dans le terminal Linux. Si vous n’êtes pas familier avec le terminal, veuillez lire un bref guide expliquant comment utiliser le terminal.

  1. Quittez toute installation antérieure de produits Wolfram en cours d’exécution sur votre machine.
  2. Ouvrez un terminal et cherchez le répertoire dans lequel se trouve le programme d’installation. Par exemple, si le programme d’installation se trouve sur votre bureau, exécutez :
     cd Desktop 

    Cela permet de naviguer dans le répertoire sur votre bureau. Si vous souhaitez vérifier que le fichier du programme d’installation se trouve sur votre bureau, utilisez la commande ls.

  3. Le programme d’installation a besoin de privilèges administratifs pour fonctionner. Utilisez la commande sudo pour exécuter le programme d’installation. Par exemple, si le programme d’installation s’appelle « installer.sh », exécutez :
    sudo bash installer.sh

    sudo vous demande d’entrer le mot de passe administratif sur la machine. Après avoir fourni le mot de passe administratif, le programme d’installation démarre.

  4. Le programme d’installation commence par vérifier l’intégrité de l’archive, puis il extrait l’archive. Une fois extraite, vous êtes invité à entrer dans un répertoire d’installation.
    Enter the installation directory, or press ENTER to select
    /usr/local/Wolfram/gridMathematicaServer/14.0:
  5. Appuyez sur la touche Entrée pour installer gridMathematica Server dans le répertoire par défaut. Pour installer le logiciel dans un autre emplacement, saisissez le chemin d’accès complet au répertoire d’installation souhaité et appuyez sur la touche Entrée.

    Après l’installation, vous êtes invité à configurer Lightweight Grid Manager.

    Do you want to configure the Wolfram Lightweight Grid Manager?
    
    [y]es (Recommended)
    	
      Use this option if this machine is not part of an existing cluster 
    management framework.
    	
    [n]o
    
      Use this option if you will access this machine with a cluster management framework (e.g. Windows Computer Cluster Server, Sun grid Engine, Platform LSF), if you will access this machine with a remote shell protocol (e.g. SSH), 
    or if you will install Lightweight Grid manually.
    	
      If you choose this option but later change your mind, you can reinstall and choose yes.
  6. Tapez « y » pour sélectionner l’option « oui » et appuyez sur Entrée. Vous êtes invité à choisir un compte utilisateur à partir duquel le daemon sera exécuté.
    Please select a User Account Method
    
    Mathematica kernels and the Wolfram Lightweight Grid Manager daemon will run as the user you select here. 
    If you are unsure which settings apply to your situation, check with your system administrator.
    
      (1) Create a local account (Recommended)
    
        Use this option to create a new user account on this computer. This allows you to configure security settings specifically for Mathematica.
    	
      (2) Use an existing account
    
        Use this option if you want to use a network user account or an existing local account.
  7. Appuyez sur la touche Entrée pour créer un compte. Vous êtes invité à entrer un compte utilisateur.
    Enter the name of the user account to create, or press ENTER to select (wolframgrid):
  8. Nous vous recommandons de créer un nouveau compte utilisateur avec le nom « wolframgrid ». Appuyez sur la touche Entrée pour confirmer cette sélection.

    Vous êtes invité à créer un mot de passe pour le nouveau compte utilisateur wolframgrid.

    Enter a password for the user account « wolframgrid":
  9. Choisissez un mot de passe de connexion pour le compte choisi. Saisissez à nouveau le mot de passe lorsque vous êtes invité à le faire.

    Vous êtes invité à créer un compte administrateur de l’interface web et un mot de passe.

    Web Interface Admin Account
    
    This password is used to log in as 'admin' to the web interface to perform such actions as killing kernels and changing the configuration.
    
    Type a password for the web admin:
  10. Choisissez un mot de passe de connexion pour le compte administrateur de l’interface web. Saisissez à nouveau le mot de passe lorsque vous êtes invité à le faire.

    Vous êtes invité à entrer dans un répertoire dans lequel vous pouvez placer les scripts exécutables de Mathematica.

    Launch the web interface to install your license:
    
    http://localhost:3737/WolframLightweightGrid/Manager
    .
    .
    .
    Type the directory path in which the gridMathematica Server script(s) will be created, or press ENTER to select /usr/local/bin:
  11. Appuyez sur la touche Entrée pour les placer dans le répertoire par défaut. Pour placer les exécutables à un autre endroit, saisissez le chemin d’accès complet au répertoire des exécutables souhaité et appuyez sur Entrée.

    Si Mathematica est déjà installé sur l’ordinateur, vous êtes invité à remplacer les raccourcis existants.

    The scripts 'MathKernel', 'Mathematica', 'WolframKernel', 'math', 
    'mathematica', 'mcc', 'wolfram' already exist in the directory /usr/local/bin. 
    The following actions can be performed on the existing file(s).
    
      (1) Overwrite
      (2) Rename
      (3) Cancel
    
    Type your selection, or press ENTER to select (1):
  12. Nous vous recommandons d’annuler le remplacement, car il peut interférer avec le démarrage de la version autonome de Mathematica qui est déjà installée. Tapez « 3 » et appuyez sur Entrée pour annuler cette étape.

    WolframScript allows Wolfram Language code to be run from the command line and from self-executing script files. It is always available from /usr/local/Wolfram/gridMathematicaServer/14.0/Executables/wolframscript. 
    
    WolframScript system integration makes the wolframscript binary accessible from any terminal, and allows .wls script files to be executed by double-clicking them in the file manager.
    
    Install WolframScript system integration? [y/n]
  13. wolframscript est un module complémentaire facultatif permettant d’exécuter du code Wolfram Language à partir de la ligne de commande ou à l’aide d’un script. Pour installer wolframscript, tapez « y » ; sinon, tapez « n » et appuyez sur Entrée pour confirmer votre choix.

La procédure d’installation est maintenant terminée.

 

Activez la licence de gridMathematica Server

  1. Accédez au répertoire dans lequel gridMathematica Server est installé. Avec l’emplacement par défaut, ce serait :
    cd /usr/local/Wolfram/gridMathematicaServer/14.0/Executables
  2. Ouvrez gridMathematica avec la commande suivante :
    ./Mathematica
  3. Activez gridMathematica Server. L’activation de gridMathematica crée un fichier mathpass situé à ~/.Mathematica/Licensing/mathpass.
  4. Pour que tous les utilisateurs puissent accéder aux noyaux Mathematica activés, déplacez le fichier mathpass dans le répertoire dit de base. Vous pouvez le faire avec la commande sudo mv :

    sudo mv ~/.Mathematica/Licensing/mathpass /usr/share/Mathematica/Licensing/.

 

Tester un noyau de gridMathematica

  1. Ouvrez un navigateur web et naviguez jusqu’à localhost:3737. La page d’état principale apparaît.
  2. Le panneau de gauche indique tous les gridMathematica Servers visibles sur le réseau local, y compris celui qui vient d’être installé.

    Allez à « Kernel Settings ► Services ».

  3. Cliquez sur le lien « Open Kernel » pour ouvrir un noyau. Un message d’avertissement apparaît.
  4. Confirmez le message d’avertissement en cliquant sur OK. Un noyau Wolfram tente de démarrer.
  5. Attendez que le noyau Wolfram s’initialise. Un état de connexion apparaît.
  6. Vérifiez que l’état du noyau est disponible (Available).

La configuration de Lightweight Grid Manager est maintenant terminée et testée.

[English]

Cet article vous a-t-il aidé ?
Oui
Non

Vous avez des commentaires ?

Nous vous remercions de votre commentaire.

Envoyer

Contacter l'assistance

Vous avez une question sur la facturation, l'activation ou quelque chose de plus technique, nous sommes prêts à vous aider.

1-800-WOLFRAM (+1-217-398-0700 pour les appels internationaux)

Assistance clients

Du lundi au vendredi
De 8 h à 17 h, heure du Centre des États-Unis

  • Enregistrement ou activation du produit
  • Informations avant la vente et commande
  • Aide à l'installation et au premier lancement

Assistance technique avancée (pour les clients admissibles)

Du lundi au jeudi
De 8 h à 19 h, heure du Centre des États-Unis

Le vendredi
De 8 h 30 à 10 h et de 11 h à 17 h, heure du Centre des États-Unis

  • Assistance technique prioritaire
  • Assistance produits par des experts Wolfram
  • Aide avec la programmation en Wolfram Language
  • Assistance installation avancée