HADOOP-11762. Enable swift distcp to secure HDFS (Chen He via aw)

This commit is contained in:
Allen Wittenauer 2015-07-21 11:19:29 -07:00
parent cf74772064
commit 68d1f4bfe8
3 changed files with 18 additions and 0 deletions

View File

@ -495,6 +495,8 @@ Trunk (Unreleased)
HADOOP-12107. long running apps may have a huge number of StatisticsData
instances under FileSystem (Sangjin Lee via Ming Ma)
HADOOP-11762. Enable swift distcp to secure HDFS (Chen He via aw)
OPTIMIZATIONS
HADOOP-7761. Improve the performance of raw comparisons. (todd)

View File

@ -221,6 +221,15 @@ public boolean isDirectory(Path f) throws IOException {
}
}
/**
* Override getCononicalServiceName because we don't support token in Swift
*/
@Override
public String getCanonicalServiceName() {
// Does not support Token
return null;
}
/**
* Return an array containing hostnames, offset and size of
* portions of the given file. For a nonexistent

View File

@ -18,6 +18,7 @@
package org.apache.hadoop.fs.swift;
import org.junit.Assert;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.fs.FileStatus;
@ -286,4 +287,10 @@ public void testLsNonExistentFile() throws Exception {
}
}
@Test(timeout = SWIFT_TEST_TIMEOUT)
public void testGetCanonicalServiceName() {
Assert.assertNull(fs.getCanonicalServiceName());
}
}