Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. コンソールから、設定するYellowfinインスタンスへディレクトリを変更します。
  2. Yellowfinのトップレベルディレクトリから、/appserver/webapps/ROOT/に移動します。
    コマンドを実行します(お使いのシェルによっては、シングルクォートマークを削除する必要がありますのでご注意ください)。

    Code Block
    languageactionscript3
    java -cp ‘WEB-INF/lib/*:WEB-INF/classes’ com.hof.standalone.ModifyConfiguration


  3. 必要なパラメーターを確認するため、以下のヘルプテキストがコンソールに表示されます。

    Code Block
    Yellowfin Configuration Modification Tool
    ==========================================
    Updates configuration in Yellowfin via a command-line script.
    Yellowfin needs to be restarted for updated configuration items to take effect.
    Required Parameters:
     
     JdbcDriver:<driverclass> JDBC Driver class for Repository Database (Optional)
     JdbcUrl:<driverurl> JDBC Database Connection String for Repository Database
     JdbcUser:<user> User for connecting to Repository Database
     JdbcPassword:<password> Password (plain-text) for authenticating User to Repository Database
     CONFIG_<Code>:<config_value> Configuration Item to Update
     BOF_<Code>:<bof_value> Internal System Plugin Item to Update


  4. ヘルプテキスト(またはこのwikiページの上の表)を使用して、設定変更をコマンドラインテキストとして記述します。
    以下のテキストは、上の表で提供したサンプルに基づいた例を示しています。

    Code Block
    java -cp ‘WEB-INF/lib/*:WEB-INF/classes’ com.hof.standalone.ModifyConfiguration jdbcuser:sysadminyfn jdbcpassword:highlysecure jdbcurl:jdbc:postgresql://localhost:5432/yellowfin9703 CONFIG_EXTERNALURL:http://10.10.10.39:8080 BOF_com.hof.interfaces.EventCreation:com.hof.interfaces.DummyEventCreation


  5. 上記の例では、ツールはYellowfinの外部URLを10.10.10/39:8080に更新し、DummyEventCreationという新しいイベントをデータベースに追加します。すべてのパラメータが有効であれば、コンソールには以下の情報が出力されます。

    Code Block
    Yellowfin Configuration Modification Tool========================================== Updates configuration in Yellowfin via a command-line script.Yellowfin needs to be restarted for updated configuration items to take affect.  Required Parameters:   JdbcDriver:<driverclass>   JDBC Driver class for Repository Database (Optional) JdbcUrl:<driverurl>        JDBC Database Connection String for Repository Database JdbcUser:<user>            User for connecting to Repository Database JdbcPassword:<password>    Password (plain-text) for authenticating User to Repository Database CONFIG_<Code>:<config_value>  Configuration Item to Update BOF_<Code>:<bof_value>     Internal System Plugin Item to Update     Parameters: JdbcUser   sysadminyfn JdbcPassword   ************ JdbcUrl jdbc:postgresql://localhost:5432/yellowfin9703  Found CONFIG EXTERNALURL http://10.10.10.39:8080Found BOF COM.HOF.INTERFACES.EVENTCREATION com.hof.interfaces.DummyEventCreation  Selecting Existing Values SELECT IpOrg, ConfigTypeCode, ConfigCode, ConfigData FROM Configuration  WHERE IpOrg = 1 AND ( ConfigTypeCode = 'SYSTEM' AND ( ConfigCode = 'EXTERNALURL' ) )  OR  ( ConfigTypeCode = 'BOFINDER' AND ( ConfigCode = 'COM.HOF.INTERFACES.EVENTCREATION' ) ) Found SYSTEM/EXTERNALURL: http://10.10.10.39:8081Found BOFINDER/COM.HOF.INTERFACES.EVENTCREATION: com.hof.interfaces.DummyEventCreation  Deleting existing 2 items..Deleting SYSTEM/EXTERNALURLDeleting BOFINDER/COM.HOF.INTERFACES.EVENTCREATION  Inserting 2 configuration items..Inserting SYSTEM/EXTERNALURL: http://10.10.10.39:8080Inserting BOFINDER/COM.HOF.INTERFACES.EVENTCREATION: com.hof.interfaces.DummyEventCreation
    


    CONFIG項目とBOF項目の両方の更新がデータベースに表示されるようになりました。

...