Skip to content

Conversation

@necosta
Copy link
Contributor

@necosta necosta commented Sep 24, 2017

What is this PR for?

Allow an override of default Spark logic in building the URL path and redirect the Zeppelin user directly to a configured reverse proxy path

What type of PR is it?

[Improvement]

What is the Jira issue?

How should this be tested?

Screenshots (if appropriate)

Questions:

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

Copy link
Member

@felixcheung felixcheung left a comment

Choose a reason for hiding this comment

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

seems like a reasonable approach
there's one test failure, could you check?

@necosta
Copy link
Contributor Author

necosta commented Sep 25, 2017

Thanks @felixcheung. Test looks unrelated but I'll double check.
Added one commit for documentation

Not sure how much we want to document on how to work with Spark behind reverse proxy but I can add that by setting properties we have a working solution:

  • spark.ui.enabled=true
  • spark.ui.reverseProxy=false (disables '/proxy/applicationId' web url path)
  • spark.ui.proxyBase=/reverseProxyUniqueKey
  • zeppelin.spark.uiWebUrl=http://{hostName}/reverseProxyUniqueKey

https://issues.apache.org/jira/browse/SPARK-20044 is preventing us from using a path prefix and it is assumed we are routing from spark port to reverseProxyUniqueKey

@necosta
Copy link
Contributor Author

necosta commented Sep 25, 2017

Not sure what we can do to have the tests passing:
https://travis-ci.org/nokia/zeppelin/jobs/279484561
https://travis-ci.org/nokia/zeppelin/jobs/279484562
Any suggestions?

Copy link
Member

@felixcheung felixcheung left a comment

Choose a reason for hiding this comment

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

test failures looks to be unrelated (sorry typo), but could you rebase your PR and try tests again?

testGetFactory(org.apache.zeppelin.interpreter.InterpreterFactoryTest)  Time elapsed: 0.584 sec  <<< FAILURE!
org.junit.ComparisonFailure: expected:<...eppelin.interpreter.[EchoInterpreter]> but was:<...eppelin.interpreter.[mock.MockInterpreter1]>

<tr>
<td>zeppelin.spark.uiWebUrl</td>
<td></td>
<td>Override Spark UI default URL</td>
Copy link
Member

Choose a reason for hiding this comment

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

could you add a bit more on what are the condition to set this, example value etc..?

@necosta
Copy link
Contributor Author

necosta commented Oct 11, 2017

Thanks @felixcheung and apologies for the delay on this.
Rebased on top of latest master and updated documentation.
Can you have another look?
Thanks

@necosta necosta closed this Oct 11, 2017
@necosta necosta reopened this Oct 11, 2017
Copy link
Member

@felixcheung felixcheung left a comment

Choose a reason for hiding this comment

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

great, sorry a few minor comment I missed the last time

<tr>
<td>zeppelin.spark.uiWebUrl</td>
<td></td>
<td>Overrides Spark UI default URL (ex: http://{hostName}/{uniquePath)</td>
Copy link
Member

Choose a reason for hiding this comment

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

should this be {uniquePath) -> {uniquePath})

Copy link
Member

Choose a reason for hiding this comment

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

I think we should clarify that the value should be a full URL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed on latest commit

}

String sparkUrlProp = property.getProperty("zeppelin.spark.uiWebUrl", "");
if (!sparkUrlProp.isEmpty()) {
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. Fixed on latest commit

@necosta necosta closed this Oct 19, 2017
@necosta necosta reopened this Oct 19, 2017
Copy link
Member

@felixcheung felixcheung left a comment

Choose a reason for hiding this comment

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

LGTM

@felixcheung
Copy link
Member

merging if no more comment

@asfgit asfgit closed this in c45128e Oct 24, 2017
jongyoul pushed a commit to jongyoul/zeppelin that referenced this pull request Oct 24, 2017
### What is this PR for?
Fix build interpreters (apark and R) which broken after apache#2592 and
apache#2596

### What type of PR is it?
[Hot Fix]

### How should this be tested?
build interpreters

### Questions:
* Does the licenses files need update? no
* Is there breaking changes for older versions? no
* Does this needs documentation? no

Author: tinkoff-dwh <tinkoff.dwh@gmail.com>

Closes apache#2630 from tinkoff-dwh/fix_r_interpretator and squashes the following commits:

0c9828b [tinkoff-dwh] [HOTFIX] fix build spark and R interpreters
@liuhengzhi liuhengzhi deleted the zeppelin2949 branch July 3, 2018 09:14
Sign up for free to 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.

2 participants