HBASE-10799 [WINDOWS] TestImportTSVWithVisibilityLabels.testBulkOutputWithTsvImporterTextMapper fails on windows

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1579723 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Enis Soztutar 2014-03-20 19:46:16 +00:00
parent 93b8f1606e
commit 39c1c2ee2d
1 changed files with 9 additions and 6 deletions

View File

@ -92,10 +92,12 @@ public class TestImportTSVWithVisibilityLabels implements Configurable {
private static User SUPERUSER; private static User SUPERUSER;
private static Configuration conf; private static Configuration conf;
@Override
public Configuration getConf() { public Configuration getConf() {
return util.getConfiguration(); return util.getConfiguration();
} }
@Override
public void setConf(Configuration conf) { public void setConf(Configuration conf) {
throw new IllegalArgumentException("setConf not supported"); throw new IllegalArgumentException("setConf not supported");
} }
@ -121,6 +123,7 @@ public class TestImportTSVWithVisibilityLabels implements Configurable {
private static void createLabels() throws IOException, InterruptedException { private static void createLabels() throws IOException, InterruptedException {
PrivilegedExceptionAction<VisibilityLabelsResponse> action = PrivilegedExceptionAction<VisibilityLabelsResponse> action =
new PrivilegedExceptionAction<VisibilityLabelsResponse>() { new PrivilegedExceptionAction<VisibilityLabelsResponse>() {
@Override
public VisibilityLabelsResponse run() throws Exception { public VisibilityLabelsResponse run() throws Exception {
String[] labels = { SECRET, TOPSECRET, CONFIDENTIAL, PUBLIC, PRIVATE }; String[] labels = { SECRET, TOPSECRET, CONFIDENTIAL, PUBLIC, PRIVATE };
try { try {
@ -178,7 +181,7 @@ public class TestImportTSVWithVisibilityLabels implements Configurable {
public void testBulkOutputWithTsvImporterTextMapper() throws Exception { public void testBulkOutputWithTsvImporterTextMapper() throws Exception {
String table = "test-" + UUID.randomUUID(); String table = "test-" + UUID.randomUUID();
String FAMILY = "FAM"; String FAMILY = "FAM";
Path bulkOutputPath = new Path(util.getDataTestDir(table),"hfiles"); Path bulkOutputPath = new Path(util.getDataTestDirOnTestFS(table),"hfiles");
// Prepare the arguments required for the test. // Prepare the arguments required for the test.
String[] args = String[] args =
new String[] { new String[] {