[
https://issues.apache.org/jira/browse/HDFS-8542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14596698#comment-14596698
]
Hadoop QA commented on HDFS-8542:
---------------------------------
\\
\\
| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:red}-1{color} | patch | 0m 0s | The patch command could not apply
the patch during dryrun. |
\\
\\
|| Subsystem || Report/Notes ||
| Patch URL |
http://issues.apache.org/jira/secure/attachment/12741136/HDFS-8542-branch-2.7.002.patch
|
| Optional Tests | javadoc javac unit findbugs checkstyle |
| git revision | trunk / 7b424f9 |
| Console output |
https://builds.apache.org/job/PreCommit-HDFS-Build/11439/console |
This message was automatically generated.
> 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
> 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)