You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sn...@apache.org on 2020/02/12 14:53:40 UTC
[hadoop] branch trunk updated: MAPREDUCE-7263. Remove obsolete
validateTargetPath() from FrameworkUploader. Contributed by Marton Hudaky
This is an automated email from the ASF dual-hosted git repository.
snemeth pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8d6ff87 MAPREDUCE-7263. Remove obsolete validateTargetPath() from FrameworkUploader. Contributed by Marton Hudaky
8d6ff87 is described below
commit 8d6ff87c1870cf88c3cbc39c4274e283ab6b7423
Author: Szilard Nemeth <sn...@apache.org>
AuthorDate: Wed Feb 12 15:51:17 2020 +0100
MAPREDUCE-7263. Remove obsolete validateTargetPath() from FrameworkUploader. Contributed by Marton Hudaky
---
.../java/org/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 3dea023..52ee38a 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 @@ public class FrameworkUploader implements Runnable {
@VisibleForTesting
void beginUpload() throws IOException, UploaderException {
if (targetStream == null) {
- validateTargetPath();
int lastIndex = target.indexOf('#');
targetPath =
new Path(
@@ -480,13 +479,6 @@ public class FrameworkUploader implements Runnable {
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();
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org