...
- コンソールから、設定するYellowfinインスタンスへディレクトリを変更します。
Yellowfinのトップレベルディレクトリから、/appserver/webapps/ROOT/に移動します。
コマンドを実行します(お使いのシェルによっては、シングルクォートマークを削除する必要がありますのでご注意ください)。Code Block language actionscript3 java -cp ‘WEB-INF/lib/*:WEB-INF/classes’ com.hof.standalone.ModifyConfiguration
必要なパラメーターを確認するため、以下のヘルプテキストがコンソールに表示されます。
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
ヘルプテキスト(またはこの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
上記の例では、ツールはYellowfinの外部URLを10.10.10/39:8080に更新し、DummyEventCreationという新しいイベントをデータベースに追加します。すべてのパラメータが有効であれば、コンソールには以下の情報が出力されます。
Code Block Yellowfin Configuration Modification Tool ========================================== Updates Updates configuration in Yellowfin via a command-line script. Yellowfin needs to be restarted for updated configuration items to take affect. Required Required Parameters: JdbcDriver:<driverclass> JdbcDriver:<driverclass> JDBC Driver class for Repository Database (Optional) JdbcUrl JdbcUrl:<driverurl> JDBC Database Connection String for Repository Database Database JdbcUserJdbcUser:<user> User for connecting to Repository Database JdbcPasswordDatabase JdbcPassword:<password> Password (plain-text) for authenticating User to Repository Database Database CONFIGCONFIG_<Code>:<config_value> value> Configuration Item to Update Update BOF BOF_<Code>:<bof_value> value> Internal System Plugin Item to Update Parameters: JdbcUser sysadminyfn JdbcPassword Update Parameters: JdbcUser sysadminyfn JdbcPassword ************ JdbcUrl JdbcUrl jdbc:postgresql://localhost:5432/yellowfin9703 Foundyellowfin9703 Found CONFIG EXTERNALURL http://10.10.10.39:8080Found8080 Found BOF COM.HOF.INTERFACES.EVENTCREATION com.hof.interfaces.DummyEventCreation SelectingDummyEventCreation Selecting Existing Values SELECTValues SELECT IpOrg, ConfigTypeCode, ConfigCode, ConfigData FROM Configuration Configuration WHERE IpOrg = 1 AND ( ConfigTypeCode = 'SYSTEM' AND ( ConfigCode = 'EXTERNALURL' ) ) OR OR ( ConfigTypeCode = 'BOFINDER' AND ( ConfigCode = 'COM.HOF.INTERFACES.EVENTCREATION' ) ) Found Found SYSTEM/EXTERNALURL: http://10.10.10.39:8081Found8081 Found BOFINDER/COM.HOF.INTERFACES.EVENTCREATION: com.hof.interfaces.DummyEventCreation DeletingDummyEventCreation Deleting existing 2 items.. Deleting SYSTEM/EXTERNALURLDeletingEXTERNALURL Deleting BOFINDER/COM.HOF.INTERFACES.EVENTCREATION InsertingEVENTCREATION Inserting 2 configuration items.. Inserting SYSTEM/EXTERNALURL: http://10.10.10.39:8080Inserting8080 Inserting BOFINDER/COM.HOF.INTERFACES.EVENTCREATION: com.hof.interfaces.DummyEventCreation
上記の例では、ツールはYellowfinの外部URLを10.10.10/39:8080に更新し、DummyEventCreationという新しいイベントをデータベースに追加します。すべてのパラメータが有効であれば、コンソールには以下の情報が出力されます。
CONFIG項目とBOF項目の両方の更新がデータベースに表示されるようになりました。
...