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:
parent
d7a8175ae0
commit
a389c2c7c7
@ -159,7 +159,11 @@ private void verifyOutput(FileSystem fs, Path file) throws IOException {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case DEFAULT:
|
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;
|
break;
|
||||||
|
|
||||||
case NONE:
|
case NONE:
|
||||||
|
Loading…
Reference in New Issue
Block a user