Support for empty value of master option

This commit is contained in:
Giambattista Bloisi 2024-10-21 21:38:51 +02:00
parent bd8af33850
commit 9a6d44c5b4
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package eu.dnetlib.dhp.application
import eu.dnetlib.dhp.common.Constants
import eu.dnetlib.dhp.utils.DHPUtils.writeHdfsFile
import org.apache.commons.lang3.StringUtils
import scala.io.Source
@ -69,7 +70,7 @@ abstract class AbstractScalaApplication(
.builder()
.config(conf)
.appName(getClass.getSimpleName)
if (master != null)
if (StringUtils.isNotBlank(master))
b.master(master)
b.getOrCreate()
}