Wolfram Computation Meets Knowledge

LinuxにgridMathematica ServerとLightweight Grid Managerを設定する方法

gridMathematica Serverを設定するためには,次が必要です.

計算ノード上にgridMathematica Serverをインストールする

Linux用のgridMathematica Serverインストーラは,Linuxターミナルで実行されるbashスクリプトです.ターミナルを使い慣れていない方は,how to use the terminalをご参照ください.

  1. お使いのマシン上で実行しているWolfram製品をすべて終了してください.
  2. ターミナルを開き,インストーラのあるディレクトリに移動します.例えば,インストーラがデスクトップにある場合は,次を実行します.
     cd Desktop 

    これでディレクトリがデスクトップになります.インストーラファイルがデスクトップにあることを確認したい場合は,コマンドlsを使います.

  3. インストーラを実行するためには,管理者権限が必要です.コマンドsudoを使って,インストーラスクリプトを実行してください.インストーラの名前が「installer.sh」ならば,以下を実行します.
    sudo bash installer.sh

    sudoは,マシンの管理者パスワードを入力するよう求めます.管理者パスワードを入力すると,インストーラが起動します.

  4. アーカイブの整合性を検証し,アーカイブを展開すると,インストーラが開始します.展開が終了すると,インストールするディレクトリを入力するよう指示されます.
    Enter the installation directory, or press ENTER to select
    /usr/local/Wolfram/gridMathematicaServer/14.0:
  5. 「Enter」を押すと,gridMathematica Serverはデフォルトのディレクトリにインストールされます.このソフトウェアを異なる場所にインストールするためには,希望のインストールディレクトリの完全ファイルパスをタイプし,「Enter」を押します.

    インストールが終了すると,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. 「y」をタイプして「yes」のオプションを選び,「Enter」を押します.デーモンを実行するユーザアカウントを選ぶよう求められます.
    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. 「Enter」を押してアカウントを作成します.ユーザアカウントを入力するよう求められます.
    Enter the name of the user account to create, or press ENTER to select (wolframgrid):
  8. 「wolframgrid」という名前の新しいユーザアカウントを作成されることをお勧めします.「Enter」を押してアカウント名を確認します.

    wolframgridという新しいユーザアカウントのパスワードを生成するよう求められます.

    Enter a password for the user account "wolframgrid":
  9. 選ばれたアカウントのログインパスワードを選びます.求められたらもう一度パスワードを入力します.

    Web Interface Admin Accountとパスワードを作成するよう求められます.

    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. Web Interface Admin Accountのログインパスワードを選びます.求められたら,もう一度パスワードを入力します.

    gridMathematica実行可能スクリプトを置くディレクトリを入力するよう求められます.

    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. 実行可能スクリプトをデフォルトのディレクトリに置く場合は「Enter」を押します.別の場所に置きたい場合は,希望のディレクトリの完全ファイルパスをタイプして「Enter」を押します.

    コンピュータ上にすでにMathematicaがインストールしてある場合は,既存のショートカットを上書きしてもよいかどうかが尋ねられます.

    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. 上書きすると,現在インストールされているスタンドアロンのMathematicaを起動する妨げになる可能性があるので,上書きはお勧めしません.「3」とタイプし「Enter」を押して,このステップをキャンセルしてください.

    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はコマンドラインから,またはスクリプトを使ってWolfram言語コードを実行するためのオプショナルのアドオンです.wolframscriptをインストールしたい場合は「y」,したくない場合は「n」をタイプし「Enter」を押します.

これでインストールは終了です.
 

gridMathematica Serverのラインセンスをアクティベートする

  1. gridMathematica Serverがインストールされているディレクトリに移動します.デフォルトでは以下の場所です.
    cd /usr/local/Wolfram/gridMathematicaServer/14.0/Executables
  2. 次のコマンドを使ってgridMathematicaを開きます.
    ./Mathematica
  3. gridMathematica Serverをアクティベートします.gridMathematicaをアクティベートすると~/.Mathematica/Licensing/mathpassにmathpassファイルが生成されます.
  4. すべてのユーザが,アクティベートされたgridMathematicaカーネルにアクセスできるようにするために,mathpassファイルをいわゆるベースディレクトリに動かします.これはsudo mvコマンドを使って行えます.

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

 

gridMathematicaカーネルをテストする

  1. Webブラウザでlocalhost:3737を開きます.メインのStatusページが現れます.
  2. 左のパネルは,ローカルネットワーク上で見えるすべてのgridMathematica Server(今インストールしたばかりのものも含む)を表しています.

    「Kernel Settings」 ► 「Services」に進みます.

  3. 「Open Kernel」リンクをクリックしてカーネルを開きます.警告メッセージが現れます.
  4. 「OK」をクリックして警告メッセージに同意します.Wolframカーネルが起動し始めます.
  5. Wolframカーネルの初期化を待ちます.接続状況が現れます.
  6. 「kernel state」が「Available」となっていることを確認します.

これでLightweight Grid Managerの設定が完了し,テストも終了しました.

[English]

この項目は役に立ちましたか?
はい
いいえ

ご意見・ご提案がおありでしたらお書きください.

フィードバックをありがとうございました.

送信

サポートへのお問合せ

お支払い,アクティベーションに関する質問から技術的な質問まで,お気軽にお問い合せください.

販売代理店 (ライセンスをお持ちの方は、ご購入された代理店にお問い合わせください)

Hulinks

電話:03-5642-8380
Fax:03-5642-8381

soft.sales@hulinks.co.jp
Webサイト

日本電子計算株式会社

電話:03-5210-0184
Fax:03-5210-0229

math_info@cm.jip.co.jp
Webサイト

亘香通商株式会社

電話:045-320-2711
Fax:045-320-9342

sales@senko-corp.co.jp
Webサイト

株式会社シーエムディーラボ

電話:03-3408-8406
Fax:03-3408-8406

info@cmdlab.co.jp
Webサイト