zhuyaogai commented on code in PR #5391:
URL: https://github.com/apache/hadoop/pull/5391#discussion_r1125831678
##########
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/RetriableFileCopyCommand.java:
##########
@@ -247,6 +276,22 @@ private long copyToFile(Path targetPath, FileSystem
targetFS,
context);
}
+ private InetSocketAddress[] toFavoredNodes(String favoredNodesStr) throws
UnknownHostException {
+ List<InetSocketAddress> result = new ArrayList<>();
+ for (String hostAndPort : favoredNodesStr.split(",")) {
Review Comment:
I have checked if `favoredNodesStr ` is an empty string above, and will skip
`favoredNodesStr` if empty.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]