You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Hanisha Koneru (JIRA)" <ji...@apache.org> on 2018/09/21 22:27:00 UTC

[jira] [Created] (HDDS-530) Fix Ozone fs valid uri pattern

Hanisha Koneru created HDDS-530:
-----------------------------------

             Summary: Fix Ozone fs valid uri pattern
                 Key: HDDS-530
                 URL: https://issues.apache.org/jira/browse/HDDS-530
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Hanisha Koneru


The valid uri pattern for an Ozone fs uri should be {{o3://<hostname>:<port>/<volume>/<bucket>}}.

But OzoneFileSystem accepts uri's of the form {{o3://<bucket>.<volume>}} only.
{code:java}
# In OzoneFileSyste.java
private static final Pattern URL_SCHEMA_PATTERN =
    Pattern.compile("(.+)\\.([^\\.]+)");
if (!matcher.matches()) {
  throw new IllegalArgumentException("Ozone file system url should be "
      + "in the form o3://bucket.volume");
}{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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