Simon0806 commented on pull request #897:
URL: https://github.com/apache/hadoop-ozone/pull/897#issuecomment-624420003
> Hi @Simon0806
> Thanks for the contribution and welcome to Ozone.
>
> OzoneConfiguration() calls loadDefaults() and in loadDefaults() we add
ozone-site.xml.
> I see this has been already taken care of by the below code.
>
> ```
> public OzoneConfiguration() {
> OzoneConfiguration.activate();
> loadDefaults();
> }
> ```
>
> ```
> private void loadDefaults() {
> try {
> //there could be multiple ozone-default-generated.xml files on the
> // classpath, which are generated by the annotation processor.
> // Here we add all of them to the list of the available
configuration.
> Enumeration<URL> generatedDefaults =
> OzoneConfiguration.class.getClassLoader().getResources(
> "ozone-default-generated.xml");
> while (generatedDefaults.hasMoreElements()) {
> addResource(generatedDefaults.nextElement());
> }
> } catch (IOException e) {
> e.printStackTrace();
> }
> addResource("ozone-site.xml");
> }
> ```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]