mirror of
https://github.com/apache/sqoop.git
synced 2025-05-04 03:41:08 +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:
parent
28af5122ea
commit
ead68ad37e
@ -76,15 +76,15 @@
|
|||||||
<elseif>
|
<elseif>
|
||||||
<equals arg1="${hadoopversion}" arg2="200" />
|
<equals arg1="${hadoopversion}" arg2="200" />
|
||||||
<then>
|
<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="hbase.version" value="0.94.2" />
|
||||||
<property name="zookeeper.version" value="3.4.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>
|
</then>
|
||||||
</elseif>
|
</elseif>
|
||||||
|
|
||||||
<else>
|
<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>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
@ -163,8 +163,8 @@ public void runTextCompressionTest(CompressionCodec codec, int expectedNum)
|
|||||||
|
|
||||||
if (codec == null) {
|
if (codec == null) {
|
||||||
codec = new GzipCodec();
|
codec = new GzipCodec();
|
||||||
ReflectionUtils.setConf(codec, getConf());
|
|
||||||
}
|
}
|
||||||
|
ReflectionUtils.setConf(codec, getConf());
|
||||||
Path p = new Path(getDataFilePath().toString()
|
Path p = new Path(getDataFilePath().toString()
|
||||||
+ codec.getDefaultExtension());
|
+ codec.getDefaultExtension());
|
||||||
InputStream is = codec.createInputStream(fs.open(p));
|
InputStream is = codec.createInputStream(fs.open(p));
|
||||||
|
Loading…
Reference in New Issue
Block a user