1
0
Fork 0

registered oaf model classes for the KryoSerializer

This commit is contained in:
Claudio Atzori 2021-10-20 13:55:07 +02:00
parent d0cf2963f0
commit c01dd0c925
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ public class CopyHdfsOafApplication extends AbstractMigrationApplication {
final Set<String> paths = mdstorePaths(mdstoreManagerUrl, mdFormat, mdLayout, mdInterpretation);
final SparkConf conf = new SparkConf();
conf.set("spark.serializer", "org.apache.spark.serializer.KryoSerializer");
conf.registerKryoClasses(ModelSupport.getOafModelClasses());
runWithSparkSession(conf, isSparkSessionManaged, spark -> processPaths(spark, vocs, hdfsPath, paths));
}