[
https://issues.apache.org/jira/browse/HDFS-16990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717840#comment-17717840
]
ASF GitHub Bot commented on HDFS-16990:
---------------------------------------
slfan1989 commented on code in PR #5602:
URL: https://github.com/apache/hadoop/pull/5602#discussion_r1180869291
##########
hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/HttpFSFileSystem.java:
##########
@@ -1743,6 +1744,19 @@ public BlockLocation[] getFileBlockLocations(final
FileStatus status,
return getFileBlockLocations(status.getPath(), offset, length);
}
+ @Override
+ public FileStatus getFileLinkStatus(final Path f) throws IOException {
+ Map<String, String> params = new HashMap<>();
+ params.put(OP_PARAM, Operation.GETFILELINKSTATUS.toString());
+ HttpURLConnection conn =
+ getConnection(Operation.GETFILELINKSTATUS.getMethod(),
+ params, f, true);
Review Comment:
one line may be batter
```
HttpURLConnection conn =
getConnection(Operation.GETFILELINKSTATUS.getMethod(), params, f,
true);
```
> HttpFS Add Support getFileLinkStatus API
> ----------------------------------------
>
> Key: HDFS-16990
> URL: https://issues.apache.org/jira/browse/HDFS-16990
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: httpfs
> Affects Versions: 3.4.0
> Reporter: Hualong Zhang
> Assignee: Hualong Zhang
> Priority: Major
> Labels: pull-request-available
>
> HttpFS should implement the *getFileLinkStatus* API already implemented in
> WebHDFS.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]