MAPREDUCE-7263. Remove obsolete validateTargetPath() from FrameworkUploader. Contributed by Marton Hudaky
This commit is contained in:
parent
3df0adaaea
commit
8d6ff87c18
@ -175,7 +175,6 @@ void collectPackages() throws UploaderException {
|
|||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
void beginUpload() throws IOException, UploaderException {
|
void beginUpload() throws IOException, UploaderException {
|
||||||
if (targetStream == null) {
|
if (targetStream == null) {
|
||||||
validateTargetPath();
|
|
||||||
int lastIndex = target.indexOf('#');
|
int lastIndex = target.indexOf('#');
|
||||||
targetPath =
|
targetPath =
|
||||||
new Path(
|
new Path(
|
||||||
@ -480,13 +479,6 @@ boolean checkSymlink(File jar) {
|
|||||||
return false;
|
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
|
@VisibleForTesting
|
||||||
boolean parseArguments(String[] args) throws IOException {
|
boolean parseArguments(String[] args) throws IOException {
|
||||||
Options opts = new Options();
|
Options opts = new Options();
|
||||||
|
Loading…
Reference in New Issue
Block a user