hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anu Engineer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11568) Ozone: Create metadata path automatically after null checking
Date Tue, 06 Jun 2017 22:09:18 GMT

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

Anu Engineer commented on HDFS-11568:
-------------------------------------

+1, I will commit this shortly. 


> Ozone: Create metadata path automatically after null checking
> -------------------------------------------------------------
>
>                 Key: HDFS-11568
>                 URL: https://issues.apache.org/jira/browse/HDFS-11568
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Yuanbo Liu
>            Assignee: Mukul Kumar Singh
>         Attachments: HDFS-11568-HDFS-7240.001.patch
>
>
> The metadata path of ozone container should be checked properly and created accordingly
while it's initiated. Some code snips that we need to change are here:
> {{ContainerMapping.java}}
> {code}
>     // TODO: Fix this checking.
>     String scmMetaDataDir = conf.get(OzoneConfigKeys
>         .OZONE_CONTAINER_METADATA_DIRS);
>     if ((scmMetaDataDir == null) || (scmMetaDataDir.isEmpty())) {
>       throw
>           new IllegalArgumentException("SCM metadata directory is not valid.");
>     }
> {code}
> {{OzoneContainer.java}}
> {code}
>     List<StorageLocation> locations = new LinkedList<>();
>     String[] paths = ozoneConfig.getStrings(
>         OzoneConfigKeys.OZONE_CONTAINER_METADATA_DIRS);
>     if (paths != null && paths.length > 0) {
>       for (String p : paths) {
>         locations.add(StorageLocation.parse(p));
>       }
>     } else {
>       getDataDir(locations);
>     }
> {code}



--
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