refactoring
This commit is contained in:
parent
0a5c6010b0
commit
ecd398fe51
|
@ -231,9 +231,9 @@ public class PropagationConstant {
|
||||||
|
|
||||||
if (HdfsSupport.exists(inputPath, spark.sparkContext().hadoopConfiguration())) {
|
if (HdfsSupport.exists(inputPath, spark.sparkContext().hadoopConfiguration())) {
|
||||||
return spark
|
return spark
|
||||||
.read()
|
.read()
|
||||||
.textFile(inputPath)
|
.textFile(inputPath)
|
||||||
.map((MapFunction<String, R>) value -> OBJECT_MAPPER.readValue(value, clazz), Encoders.bean(clazz));
|
.map((MapFunction<String, R>) value -> OBJECT_MAPPER.readValue(value, clazz), Encoders.bean(clazz));
|
||||||
} else {
|
} else {
|
||||||
return spark.emptyDataset(Encoders.bean(clazz));
|
return spark.emptyDataset(Encoders.bean(clazz));
|
||||||
}
|
}
|
||||||
|
|
|
@ -219,7 +219,7 @@
|
||||||
<error to="Kill"/>
|
<error to="Kill"/>
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
<join name="wait" to="eosc_tag"/>
|
<join name="wait" to="End"/>
|
||||||
|
|
||||||
<action name="eosc_tag">
|
<action name="eosc_tag">
|
||||||
<spark xmlns="uri:oozie:spark-action:0.2">
|
<spark xmlns="uri:oozie:spark-action:0.2">
|
||||||
|
|
Loading…
Reference in New Issue