Skip to content

[ZEPPELIN-4226] Fix "View in Spark web UI" in kubernetes mode - #3451

Closed
Leemoonsoo wants to merge 2 commits into
apache:masterfrom
Leemoonsoo:ZEPPELIN-4226
Closed

[ZEPPELIN-4226] Fix "View in Spark web UI" in kubernetes mode#3451
Leemoonsoo wants to merge 2 commits into
apache:masterfrom
Leemoonsoo:ZEPPELIN-4226

Conversation

@Leemoonsoo

Copy link
Copy Markdown
Member

What is this PR for?

When Zeppelin is running in Kubernetes, "View in Spark web UI" gives internal address, instead of address defined in SERVICE_DOMAIN.

I think this problem is side effect of #3375 and this PR includes fix and updated unittest.

What type of PR is it?

Bug Fix

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-4226

How should this be tested?

Run Zeppelin on kubernetes, and run spark job, click "View in Spark web UI" button.

Questions:

  • Does the licenses files need update? no
  • Is there breaking changes for older versions? no
  • Does this needs documentation? no

val sparkShims = SparkShims.getInstance(sc.version, properties)
sparkShims.setupSparkListener(sc.master, sparkUrl, InterpreterContext.get)
var webUiUrl = properties.getProperty("zeppelin.spark.uiWebUrl");
if (webUiUrl == null || webUiUrl.trim().length() == 0) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use StringUtils.isBlank() which is more clean

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

@zjffdu

Copy link
Copy Markdown
Contributor

LGTM

@Leemoonsoo

Copy link
Copy Markdown
MemberAuthor

Merge to master

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Leemoonsoo@zjffdu@felixcheung