hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mukul Kumar Singh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11796) Ozone: MiniOzoneCluster should set "ozone.handler.type" key correctly
Date Wed, 10 May 2017 17:20:04 GMT

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

Mukul Kumar Singh commented on HDFS-11796:
------------------------------------------

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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message