5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-04 01:50:32 +08:00

SQOOP-1697: Sqoop2: HDFS Connector TestLoader.verifyOutput have invalid default value for Hadoop 1

(Jarek Jarcec Cecho via Abraham Elmahrek)
This commit is contained in:
Abraham Elmahrek 2014-11-08 23:16:52 -08:00
parent 448cf576a9
commit a193e1cf84

View File

@ -159,7 +159,11 @@ private void verifyOutput(FileSystem fs, Path file) throws IOException {
break;
case DEFAULT:
Assert.assertTrue(codec.getClass().getCanonicalName().indexOf("Deflate") != -1);
if(org.apache.hadoop.util.VersionInfo.getVersion().matches("\\b1\\.\\d\\.\\d")) {
Assert.assertTrue(codec.getClass().getCanonicalName().indexOf("Default") != -1);
} else {
Assert.assertTrue(codec.getClass().getCanonicalName().indexOf("Deflate") != -1);
}
break;
case NONE: