hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-4983) Numeric usernames do not work with WebHDFS FS
Date Thu, 05 Dec 2013 05:58:35 GMT

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

Harsh J commented on HDFS-4983:
-------------------------------

bq. For example, what does it mean if I making this configuration empty?

It means you are configuring the said property incorrectly? Same argument can be used for
a whole lot of different configurations we offer (all of which have saved ops at one time
or another when a need has arose). I don't see your point, sorry.

bq. I think that this change does bring in some configuration burdens.

We have a default that is flexible via configuration. Its not a mandatory configuration.

bq. let's focus on supporting numeric usernames in this jira and move forward. If you're interested
in making this configurable, let's open a separate jira for it.

I disagree but as you wish. I simply do not want a difference between WebHDFS and HTTPFS,
which is what I filed this ticket for. If you see removal of any form of username restriction
as a valid step for this, then lets also remove it from HTTPFS at the same time.

> Numeric usernames do not work with WebHDFS FS
> ---------------------------------------------
>
>                 Key: HDFS-4983
>                 URL: https://issues.apache.org/jira/browse/HDFS-4983
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: webhdfs
>    Affects Versions: 2.0.0-alpha
>            Reporter: Harsh J
>            Assignee: Yongjun Zhang
>              Labels: patch
>         Attachments: HDFS-4983.001.patch, HDFS-4983.002.patch, HDFS-4983.003.patch
>
>
> Per the file hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/web/resources/UserParam.java,
the DOMAIN pattern is set to: {{^[A-Za-z_][A-Za-z0-9._-]*[$]?$}}.
> Given this, using a username such as "123" seems to fail for some reason (tried on insecure
setup):
> {code}
> [123@host-1 ~]$ whoami
> 123
> [123@host-1 ~]$ hadoop fs -fs webhdfs://host-2.domain.com -ls /
> -ls: Invalid value: "123" does not belong to the domain ^[A-Za-z_][A-Za-z0-9._-]*[$]?$
> Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message