[ZEPPELIN-2949] Last amendments

This commit is contained in:
Nelson Costa 2017-10-19 10:21:54 +01:00
parent 118339fc9c
commit 2ae8f2d064
2 changed files with 2 additions and 6 deletions

View file

@ -148,7 +148,7 @@ You can also set other Spark properties which are not listed in the table. For a
<tr>
<td>zeppelin.spark.uiWebUrl</td>
<td></td>
<td>Overrides Spark UI default URL (ex: http://{hostName}/{uniquePath)</td>
<td>Overrides Spark UI default URL. Value should be a full URL (ex: http://{hostName}/{uniquePath}</td>
</tr>
</table>

View file

@ -26,11 +26,9 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Properties;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
@ -51,7 +49,6 @@ import org.apache.spark.sql.SQLContext;
import org.apache.spark.ui.SparkUI;
import org.apache.spark.ui.jobs.JobProgressListener;
import org.apache.zeppelin.interpreter.BaseZeppelinContext;
import org.apache.zeppelin.interpreter.DefaultInterpreterProperty;
import org.apache.zeppelin.interpreter.Interpreter;
import org.apache.zeppelin.interpreter.InterpreterContext;
import org.apache.zeppelin.interpreter.InterpreterException;
@ -72,7 +69,6 @@ import org.apache.zeppelin.spark.dep.SparkDependencyResolver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.base.Joiner;
import scala.Console;
import scala.Enumeration.Value;
import scala.None;
@ -937,7 +933,7 @@ public class SparkInterpreter extends Interpreter {
}
String sparkUrlProp = property.getProperty("zeppelin.spark.uiWebUrl", "");
if (!sparkUrlProp.isEmpty()) {
if (!StringUtils.isBlank(sparkUrlProp)) {
return sparkUrlProp;
}