[ 
https://issues.apache.org/jira/browse/HDFS-11796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16005057#comment-16005057
 ] 

Mukul Kumar Singh edited comment on HDFS-11796 at 5/10/17 5:20 PM:
-------------------------------------------------------------------

Hi [~cheersyang],
In the constructor for OzoneConfiguration, "ozone-default.xml" is automatically 
loaded
This will set the value of the OZONE_HANDLER_TYPE_KEY to "local".
When {{ObjectStoreHandler}} calls get on this config, "local" will be returned 
as the value has already been set.

{code}
public class OzoneConfiguration extends Configuration {
  static {
    // adds the default resources
    Configuration.addDefaultResource("hdfs-default.xml");
    Configuration.addDefaultResource("hdfs-site.xml");
    Configuration.addDefaultResource("ozone-default.xml");
    Configuration.addDefaultResource("ozone-site.xml");
  }
}
{code}




was (Author: msingh):
Hi [~cheersyang],
In the constructor for OzoneConfiguration, "ozone-default.xml" is automatically 
loaded
This will set the value of the OZONE_HANDLER_TYPE_KEY to "local".
When {ObjectStoreHandler} calls get on this config, "local" will be returned as 
the value has already been set.

{code}
public class OzoneConfiguration extends Configuration {
  static {
    // adds the default resources
    Configuration.addDefaultResource("hdfs-default.xml");
    Configuration.addDefaultResource("hdfs-site.xml");
    Configuration.addDefaultResource("ozone-default.xml");
    Configuration.addDefaultResource("ozone-site.xml");
  }
}
{code}



> Ozone: MiniOzoneCluster should set "ozone.handler.type" key correctly
> ---------------------------------------------------------------------
>
>                 Key: HDFS-11796
>                 URL: https://issues.apache.org/jira/browse/HDFS-11796
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>         Attachments: HDFS-11796-HDFS-7240.001.patch
>
>
> MiniOzoneCluster currently doest not set "ozone.handler.type" key correctly.
> Handler type passed with setHandlerType is ignored silently.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to