File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
zeppelin-interpreter/src/main/java/org/apache/zeppelin
zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ private void loadXMLConfig(@Nullable String filename) throws ConfigurationExcept
9898 if (StringUtils .isBlank (filename )) {
9999 filename = ZEPPELIN_SITE_XML ;
100100 }
101+ if (!this .properties .isEmpty ()) {
102+ return ;
103+ }
101104 List <FileLocationStrategy > subs = Arrays .asList (
102105 new ZeppelinLocationStrategy (),
103106 new ClasspathLocationStrategy ());
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ public void setUserImpersonate(boolean userImpersonate) {
9292 }
9393
9494 public InterpreterOption () {
95+ this .zConf = ZeppelinConfiguration .load ();
9596 }
9697
9798 public InterpreterOption (String perUser , String perNote ) {
Original file line number Diff line number Diff line change @@ -57,10 +57,9 @@ public class FileSystemStorage {
5757 // your ticket expired.
5858 static {
5959 if (UserGroupInformation .isSecurityEnabled ()) {
60- String keytab = ZeppelinConfiguration .getStaticString (
61- ZeppelinConfiguration .ConfVars .ZEPPELIN_SERVER_KERBEROS_KEYTAB );
62- String principal = ZeppelinConfiguration .getStaticString (
63- ZeppelinConfiguration .ConfVars .ZEPPELIN_SERVER_KERBEROS_PRINCIPAL );
60+ ZeppelinConfiguration conf = ZeppelinConfiguration .load ();
61+ String keytab = conf .getString (ZeppelinConfiguration .ConfVars .ZEPPELIN_SERVER_KERBEROS_KEYTAB );
62+ String principal = conf .getString (ZeppelinConfiguration .ConfVars .ZEPPELIN_SERVER_KERBEROS_PRINCIPAL );
6463 if (StringUtils .isBlank (keytab ) || StringUtils .isBlank (principal )) {
6564 throw new RuntimeException ("keytab and principal can not be empty, keytab: " + keytab
6665 + ", principal: " + principal );
You can’t perform that action at this time.
0 commit comments