File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
spark-submission-worker/src/main/java/org/apache/spark/k8s/operator Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 202202 </module >
203203 <module name =" IllegalImport" >
204204 <property name =" illegalPkgs" value =" org.apache.log4j" />
205- <property name =" illegalPkgs" value =" org.apache.commons.lang" />
206205 <property name =" illegalPkgs" value =" org.apache.commons.collections" />
206+ <property name =" illegalPkgs" value =" org.apache.commons.collections4" />
207+ <property name =" illegalPkgs" value =" org.apache.commons.lang" />
207208 <property name =" illegalPkgs" value =" org.apache.commons.lang3" />
208209 </module >
209210 </module >
Original file line number Diff line number Diff line change 2727
2828import io .fabric8 .kubernetes .client .KubernetesClient ;
2929import org .apache .commons .codec .digest .DigestUtils ;
30- import org .apache .commons .collections4 .MapUtils ;
3130
3231import org .apache .spark .SparkConf ;
3332import org .apache .spark .deploy .k8s .KubernetesDriverSpec ;
@@ -111,12 +110,12 @@ protected SparkAppDriverConf buildDriverConf(
111110 SparkApplication app , Map <String , String > confOverrides ) {
112111 ApplicationSpec applicationSpec = app .getSpec ();
113112 SparkConf effectiveSparkConf = new SparkConf ();
114- if (MapUtils . isNotEmpty ( applicationSpec .getSparkConf ())) {
113+ if (! applicationSpec .getSparkConf (). isEmpty ( )) {
115114 for (String confKey : applicationSpec .getSparkConf ().keySet ()) {
116115 effectiveSparkConf .set (confKey , applicationSpec .getSparkConf ().get (confKey ));
117116 }
118117 }
119- if (MapUtils . isNotEmpty ( confOverrides )) {
118+ if (! confOverrides . isEmpty ( )) {
120119 for (Map .Entry <String , String > entry : confOverrides .entrySet ()) {
121120 effectiveSparkConf .set (entry .getKey (), entry .getValue ());
122121 }
Original file line number Diff line number Diff line change 2121
2222import java .util .Map ;
2323
24- import org .apache .commons .collections4 .MapUtils ;
25-
2624import org .apache .spark .SparkConf ;
2725
2826/** Worker for submitting Spark clusters. */
@@ -39,13 +37,13 @@ public SparkClusterResourceSpec getResourceSpec(
3937 SparkConf effectiveSparkConf = new SparkConf ();
4038
4139 Map <String , String > confFromSpec = cluster .getSpec ().getSparkConf ();
42- if (MapUtils . isNotEmpty ( confFromSpec )) {
40+ if (! confFromSpec . isEmpty ( )) {
4341 for (Map .Entry <String , String > entry : confFromSpec .entrySet ()) {
4442 effectiveSparkConf .set (entry .getKey (), entry .getValue ());
4543 }
4644 }
4745
48- if (MapUtils . isNotEmpty ( confOverrides )) {
46+ if (! confOverrides . isEmpty ( )) {
4947 for (Map .Entry <String , String > entry : confOverrides .entrySet ()) {
5048 effectiveSparkConf .set (entry .getKey (), entry .getValue ());
5149 }
You can’t perform that action at this time.
0 commit comments