You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Sijie Guo (Updated) (JIRA)" <ji...@apache.org> on 2012/03/31 08:38:43 UTC

[jira] [Updated] (BOOKKEEPER-197) HedwigConsole uses the same file to load bookkeeper client config and hub server config

     [ https://issues.apache.org/jira/browse/BOOKKEEPER-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sijie Guo updated BOOKKEEPER-197:
---------------------------------

    Attachment: BK-197.diff

Hedwig console uses a HedwigAdmin and a HedwigClient. HedwigAdmin is used to manage metadata, so it would read hub server configuration to known settings such as zkServers, ledgerManagerType used by bookkeeper. HedwigClient is used to play with hedwig system, such as pub/sub/consume.

so it would read 2 configuration files, one is '-server-cfg' which is used by HedwigAdmin, the other one is '-client-cfg' which is used by HedwigClient.

By default, the console is shipped with a hub server package. so it would use hub server configuration for metadata manager, no client configuration need since it just use default client configuration to connect to local hub server.

I attach a patch to expose these two files by two environment variables, one is 'HEDWIG_CONSOLE_SERVER_CONF', the other is 'HEDWIG_CONSOLE_CLIENT_CONF'. If user tries to install the console in an admin node (not a hub server node), he/she could override these two variables to reference a customized configuration file.
                
> HedwigConsole uses the same file to load bookkeeper client config and hub server config
> ---------------------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-197
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-197
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: hedwig-server
>    Affects Versions: 4.1.0
>            Reporter: Aniruddha
>            Priority: Minor
>         Attachments: BK-197.diff
>
>
> In the current implementation of HedwigConsole.java, The same server-cfg file (default = hedwig-server/conf/hw_server.conf) is used to load both hubServerConf and bkClientConf. This seems incorrect because both have different option names. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira