You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Marton Elek (Jira)" <ji...@apache.org> on 2021/04/06 16:42:00 UTC

[jira] [Resolved] (HDDS-5035) Config not loaded when using an Ozone assembled jar

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

Marton Elek resolved HDDS-5035.
-------------------------------
    Fix Version/s: 1.2.0
         Assignee: Janus Chow
       Resolution: Fixed

> Config not loaded when using an Ozone assembled jar
> ---------------------------------------------------
>
>                 Key: HDDS-5035
>                 URL: https://issues.apache.org/jira/browse/HDDS-5035
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Janus Chow
>            Assignee: Janus Chow
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.2.0
>
>         Attachments: Config_error.txt
>
>
> The issue happens when we were trying to do file operations in our own project with Hadoop-ozone-client assembled. Have attached the original config file.
> The error is caused by the missing configs from hdds-common.  When we are building the fat-jar, there are different "ozone-default-generated.xml" files causing the conflict, and only one config file is kept. From the client-side, we can use the maven-shade-plugin to merge all "ozone-default-generated.xml" files as mentioned in HDDS-2250. But I think we'd better solve it from the server-side.
> I have tried to add maven-shade-plugin in the module of hadoop-ozone-client and hadoop-ozone-common to only merge "ozone-default-generated.xml" files, but our own projects can not imply hadoop-hdds-common anymore.
> I was thinking if we can change the logic of loading configs. For different modules to generate different config files, so that these files won't causing the conflict while still being able to load from different classpaths.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org