5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 02:20:24 +08:00

SQOOP-1053: Fix sqoop to work with Hadoop 2.0.4 alpha

(Venkat Ranganathan via Jarek Jarcec Cecho)
This commit is contained in:
Jarek Jarcec Cecho 2013-05-22 01:11:32 -07:00
parent 28af5122ea
commit ead68ad37e
2 changed files with 4 additions and 4 deletions

View File

@ -76,15 +76,15 @@
<elseif>
<equals arg1="${hadoopversion}" arg2="200" />
<then>
<property name="hadoop.version" value="2.0.0-alpha" />
<property name="hadoop.version" value="2.0.4-alpha" />
<property name="hbase.version" value="0.94.2" />
<property name="zookeeper.version" value="3.4.2" />
<property name="hadoop.version.full" value="2.0.0-alpha" />
<property name="hadoop.version.full" value="2.0.4-alpha" />
</then>
</elseif>
<else>
<fail message="Unrecognized hadoopversion. Can only be 20, 23, 100, or 200." />
<fail message="Unrecognized hadoopversion. Can only be 20, 23, 100 or 200." />
</else>
</if>

View File

@ -163,8 +163,8 @@ public void runTextCompressionTest(CompressionCodec codec, int expectedNum)
if (codec == null) {
codec = new GzipCodec();
ReflectionUtils.setConf(codec, getConf());
}
ReflectionUtils.setConf(codec, getConf());
Path p = new Path(getDataFilePath().toString()
+ codec.getDefaultExtension());
InputStream is = codec.createInputStream(fs.open(p));