forked from D-Net/dnet-hadoop
fixed wrong Encoding during a map phase
This commit is contained in:
parent
aeeebd573b
commit
ac36aa7d1c
|
@ -102,7 +102,7 @@ public class CopyHdfsOafApplication extends AbstractMigrationApplication {
|
||||||
for (Map.Entry<String, Class> e : ModelSupport.oafTypes.entrySet()) {
|
for (Map.Entry<String, Class> e : ModelSupport.oafTypes.entrySet()) {
|
||||||
oaf
|
oaf
|
||||||
.filter((FilterFunction<Oaf>) o -> o.getClass().getSimpleName().toLowerCase().equals(e.getKey()))
|
.filter((FilterFunction<Oaf>) o -> o.getClass().getSimpleName().toLowerCase().equals(e.getKey()))
|
||||||
.map((MapFunction<Oaf, String>) OBJECT_MAPPER::writeValueAsString, Encoders.bean(e.getValue()))
|
.map((MapFunction<Oaf, String>) OBJECT_MAPPER::writeValueAsString, Encoders.STRING())
|
||||||
.write()
|
.write()
|
||||||
.option("compression", "gzip")
|
.option("compression", "gzip")
|
||||||
.mode(SaveMode.Append)
|
.mode(SaveMode.Append)
|
||||||
|
|
Loading…
Reference in New Issue