インストーラの実行

合成サーバーのログイン情報(inputs.groovy ファイル)を安全に保存したい場合は、インストールを進める前に OpenSSL がインストールされていることを確認してください。
Unix または Linux
  1. OpenSSL がインストールされているかどうかを確認します。
    CODE
    openssl version
  2. インストールされていない場合は、次のコマンドを使用して OpenSSL をインストールします。
    Ubuntu/Debian:
    CODE
    sudo apt-get update
    sudo apt-get install openssl
    RHEL/CentOS:
    CODE
    sudo yum install openssl
macOS
CODE
brew install openssl
Windows
  1. Win32OpenSSL から OpenSSL をダウンロードしてインストールします(Win64 OpenSSL v3.xx を推奨)。
  2. OpenSSL バイナリディレクトリをシステムの PATH に追加します。
    1. [This PC] を右クリックします。
    2. Properties > Advanced System Settings > Environment Variables > System Variables > Path > Edit にアクセスします。
    3. C:\Program Files\OpenSSL-Win64\bin を追加します。
  3. 端末またはコマンドプロンプトを再起動します。
  4. インストールを確認します。
    CODE
    openssl version

インストーラのルートディレクトリから、root ユーザーとして次のコマンドを実行します。

CODE
unix/deploy.sh install

install コマンドの出力には、以下のような完了したタスクのログが表示されます。

CODE
Task [facts for localhost] completed executing in [274] ms.
Task [Create the encryption directory] completed executing in [78] ms.
Task [Create keystore for encryption] completed executing in [796] ms.
Task [Create the encrypted password] completed executing in [566] ms.
Task [Obfuscate the key store password] completed executing in [397] ms.
Task [Read created password] completed executing in [46] ms.
Task [Read the obfuscated key store password] completed executing in [43] ms.
Task [Change configurations for the shepherd and scheduler conf] completed executing in [81] ms.
Task [Read created password] completed executing in [24] ms.
Task [Read the obfuscated key store password] completed executing in [26] ms.
Task [Change configurations for the shepherd and scheduler conf] completed executing in [76] ms.
Task [Read created password] completed executing in [29] ms.
Task [Read the obfuscated key store password] completed executing in [20] ms.
Task [Change configurations for the shepherd and scheduler conf] completed executing in [31] ms.
Task [Delete the encryption directory] completed executing in [47] ms.
Task [Change configurations for the liquibase properties file] completed executing in [26] ms.
Task [Update schema of SQL DB to include synthetic schema] completed executing in [2412] ms.
Task [Install flake8 for script linting] completed executing in [1671] ms.
Task [Start the synthetic services] completed executing in [67] ms.

inputs.groovy ファイルを暗号化するかどうかを確認するよう求められます。暗号化を選択した場合は、パスワードを設定し、安全に保管してください。今後、アップグレードやアンインストールを行う際は、このパスワードが必要になります。

注:

パスワードを忘れた場合または紛失した場合は、ログイン情報を使用して inputs.groovy ファイルを再作成する必要があります。

インストールの成功の確認

  1. 合成サーバーが実行されていることを確認します。
    CODE
    ps aux | grep synthetic-processor
    注: jps がインストールされている場合、これを実行して、合成サーバーが実行されていることを確認することもできます。
  2. 合成スケジューラと合成シェパードがデフォルトポートをリッスンしていることを確認します。
    CODE
    netstat -lan | grep "1[0,2,6]10[1,2]"
  3. 合成サーバーマシンにインストールされている mysql を使用して、合成サーバーマシンが EUM サーバーの MySQL eum_db データベースに接続できることを確認できます。
    CODE
    mysql -h <eum_server_instance> -P 3388 -D eum_db -u eum_user -p
  4. EUM サーバーの MySQL データベースに接続できない場合には、EUM サーバーの MySQL データベースへの権限の付与に戻って手順を再実行してください。