5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-10 02:40:49 +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 d7a8175ae0
commit a389c2c7c7

View File

@ -159,7 +159,11 @@ private void verifyOutput(FileSystem fs, Path file) throws IOException {
break;
case DEFAULT:
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: