hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei-Chiu Chuang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-16277) Expose getTokenKind method in FileSystem
Date Fri, 26 Apr 2019 04:57:00 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-16277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16826639#comment-16826639

Wei-Chiu Chuang commented on HADOOP-16277:

IMHO, token is an implementation detail and you shouldn't need to worry about the token. Why
do you need to extract a token? You should take whatever tokens you have and use them to authenticate
against a file system.

> Expose getTokenKind method in FileSystem
> ----------------------------------------
>                 Key: HADOOP-16277
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16277
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Venkatesh Sridharan
>            Priority: Trivial
> It would be nice to have a getTokenKind() method exposed in [FileSystem|[https://github.com/apache/hadoop-common/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java]]
. Currently WebHdfsFileSystem class has getTokenKind() which is protected. Having it in FileSystem
makes it easier to use at runtime when the consumer doesn't know what the underlying FileSystem
implementation is. 

This message was sent by Atlassian JIRA

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

View raw message