hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuanbo Liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-11568) Ozone: Create metadata path automatically after null checking
Date Thu, 23 Mar 2017 09:35:41 GMT
Yuanbo Liu created HDFS-11568:

             Summary: 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: Yuanbo Liu

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:

    // TODO: Fix this checking.
    String scmMetaDataDir = conf.get(OzoneConfigKeys
    if ((scmMetaDataDir == null) || (scmMetaDataDir.isEmpty())) {
          new IllegalArgumentException("SCM metadata directory is not valid.");

    List<StorageLocation> locations = new LinkedList<>();
    String[] paths = ozoneConfig.getStrings(
    if (paths != null && paths.length > 0) {
      for (String p : paths) {
    } else {

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org

View raw message