From 76f9c104c065c166bf785b72d85fdce6d5fccd17 Mon Sep 17 00:00:00 2001 From: apatrida Date: Mon, 20 Mar 2017 15:37:07 -0300 Subject: [PATCH] disable spark UI web server (need to implement #27 to turn back on) --- src/main/kotlin/uy/kohesive/elasticsearch/dataimport/App.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/uy/kohesive/elasticsearch/dataimport/App.kt b/src/main/kotlin/uy/kohesive/elasticsearch/dataimport/App.kt index 828bfe0..5b80db4 100644 --- a/src/main/kotlin/uy/kohesive/elasticsearch/dataimport/App.kt +++ b/src/main/kotlin/uy/kohesive/elasticsearch/dataimport/App.kt @@ -86,7 +86,10 @@ class App { Thread.currentThread().contextClassLoader = newClassLoader try { - SparkSession.builder().appName("esDataImport-${uniqueId}").master(sparkMaster).getOrCreate().use { spark -> + SparkSession.builder() + .appName("esDataImport-${uniqueId}") + .config("spark.ui.enabled", false) + .master(sparkMaster).getOrCreate().use { spark -> // setup FILE inputs println()