From 8d6ff87c1870cf88c3cbc39c4274e283ab6b7423 Mon Sep 17 00:00:00 2001 From: Szilard Nemeth Date: Wed, 12 Feb 2020 15:51:17 +0100 Subject: [PATCH] MAPREDUCE-7263. Remove obsolete validateTargetPath() from FrameworkUploader. Contributed by Marton Hudaky --- .../apache/hadoop/mapred/uploader/FrameworkUploader.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-uploader/src/main/java/org/apache/hadoop/mapred/uploader/FrameworkUploader.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-uploader/src/main/java/org/apache/hadoop/mapred/uploader/FrameworkUploader.java index 3dea023ea7..52ee38aaa9 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-uploader/src/main/java/org/apache/hadoop/mapred/uploader/FrameworkUploader.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-uploader/src/main/java/org/apache/hadoop/mapred/uploader/FrameworkUploader.java @@ -175,7 +175,6 @@ void collectPackages() throws UploaderException { @VisibleForTesting void beginUpload() throws IOException, UploaderException { if (targetStream == null) { - validateTargetPath(); int lastIndex = target.indexOf('#'); targetPath = new Path( @@ -480,13 +479,6 @@ boolean checkSymlink(File jar) { return false; } - private void validateTargetPath() throws UploaderException { - if (!target.startsWith("hdfs:/") && - !target.startsWith("file:/")) { - throw new UploaderException("Target path is not hdfs or local " + target); - } - } - @VisibleForTesting boolean parseArguments(String[] args) throws IOException { Options opts = new Options();