hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doris Gu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7601) Operations(e.g. balance) failed due to deficient configuration parsing
Date Thu, 05 Mar 2015 06:53:39 GMT

     [ https://issues.apache.org/jira/browse/HDFS-7601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Doris Gu updated HDFS-7601:
    Status: Patch Available  (was: Open)

This patch includes:
1.GetNameServiceUris from config in DFSUtil.java adds functions to ignore the "/" in the end
of uris.

2.Add corresponding test to make sure that an HA URI and the default URI whose difference
is ending with or without "/" doesn't result in multiple entries being returned.

Actually speaking,this problem comes from my own not so well config. I use "hdfs://haCluster/"
for "fs.defaultFS" in core-site.xml. I can easily avoid this problem by make this config value
to be "hdfs://haCluster", but someone else may give the similar value, so I propose this patch.

> Operations(e.g. balance) failed due to deficient configuration parsing
> ----------------------------------------------------------------------
>                 Key: HDFS-7601
>                 URL: https://issues.apache.org/jira/browse/HDFS-7601
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: balancer & mover
>    Affects Versions: 2.6.0, 2.3.0
>            Reporter: Doris Gu
>            Assignee: Doris Gu
>            Priority: Minor
>              Labels: patch
> Some operations, for example,balance,parses configuration(from core-site.xml,hdfs-site.xml)
to get NameServiceUris to link to.
> Current method considers those end with or without "/"  as two different uris, then following
operation may meet errors.
> bq. [hdfs://haCluster, hdfs://haCluster/] are considered to be two different uris   which
actually the same.

This message was sent by Atlassian JIRA

View raw message