hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8542) WebHDFS getHomeDirectory behavior does not match specification
Date Tue, 23 Jun 2015 11:57:02 GMT

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

Hudson commented on HDFS-8542:
------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #237 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/237/])
HDFS-8542. WebHDFS getHomeDirectory behavior does not match specification. Contributed by
 Kanaka Kumar Avvaru. (jghoman: rev fac4e04dd359a7ff31f286d664fb06f019ec0b58)
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHDFS.java
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/web/TestWebHdfsFileSystemContract.java
* hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java
* hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/JsonUtilClient.java


> WebHDFS getHomeDirectory behavior does not match specification
> --------------------------------------------------------------
>
>                 Key: HDFS-8542
>                 URL: https://issues.apache.org/jira/browse/HDFS-8542
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 2.6.0
>            Reporter: Jakob Homan
>            Assignee: kanaka kumar avvaru
>             Fix For: 2.8.0
>
>         Attachments: HDFS-8542-00.patch, HDFS-8542-01.patch, HDFS-8542-02.patch, HDFS-8542-branch-2.7.002.patch
>
>
> Per the [spec|https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Get_Home_Directory],
WebHDFS provides a REST endpoint for getting the user's home directory:
> {noformat}Submit a HTTP GET request.
> curl -i "http://<HOST>:<PORT>/webhdfs/v1/?op=GETHOMEDIRECTORY"{noformat}
> However, WebHDFSFileSystem.java does not use this, instead building the home [directory
locally|https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java#L271]:
> {code}  /** @return the home directory. */
>   public static String getHomeDirectoryString(final UserGroupInformation ugi) {
>     return "/user/" + ugi.getShortUserName();
>   }
>   @Override
>   public Path getHomeDirectory() {
>     return makeQualified(new Path(getHomeDirectoryString(ugi)));
>   }{code}
> The WebHDFSFileSystem client should call to the REST service to determine the home directory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message