You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by echarles <gi...@git.apache.org> on 2015/11/14 09:57:59 UTC
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
GitHub user echarles opened a pull request:
https://github.com/apache/incubator-zeppelin/pull/429
Zeppelin 337 configurable context path (2)
Allow to configure the context path of the webapp via zeppelin.server.context.path property or ZEPPELIN_SERVER_CONTEXT_PATH env variable + documentation for this.
(replaces #385)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/echarles/incubator-zeppelin ZEPPELIN-337-Configurable-ContextPath
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-zeppelin/pull/429.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #429
----
commit 72e97dade5df2ec0d4abaee9ac297e668237faee
Author: Eric Charles <er...@datalayer.io>
Date: 2015-11-01T10:37:47Z
Allow to configure the context path of the webapp via zeppelin.server.context.path property or ZEPPELIN_CONTEXT_PATH env variable + add doc on this
commit a356166d0815b45edf94f29f27268e0aa3c90560
Author: Eric Charles <er...@datalayer.io>
Date: 2015-11-06T16:18:47Z
ZEPPELIN_CONTEXT_PATH is now ZEPPELIN_SERVER_CONTEXT_PATH
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by jongyoul <gi...@git.apache.org>.
Github user jongyoul commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-157602065
@Leemoonsoo Sure. Ready to merge.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-158323365
Tested and working nicely both with/without -Pbuild-distr
LGTM
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-157601755
@jongyoul Is it good to go?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by echarles <gi...@git.apache.org>.
Github user echarles commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-156790437
@jongyoul my intent here is not directly linked to serving different user. I just need to have zeppelin respond to a well defined context path.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by jongyoul <gi...@git.apache.org>.
Github user jongyoul commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-156788818
@echarles Thanks for fixing it. Concerning use case, not using nginx, I don't think it's possible to serve saperate Zeppelin instance with, for example, http://some-domain/zeppelin_user1 and http://some-domain/zeppelin_user2 because each Zeppelin has a different port for listening to. Url based deployments is a proper solution for multi user but do you have to launch two Zeppelin instance with two different ports without Nginx? I think only it's possible to serve http://some-domain:port1/zeppelin_user1 and http://some-domain:port2/zeppelin_user2 - actually, zeppelin_user2 is not a mandatory. Without regard to this issue, I'm curious to serve two Zeppelin instance with same port without Nginx. Could you please share your case?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by jongyoul <gi...@git.apache.org>.
Github user jongyoul commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-157936406
Oops. I'll check it, too.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by echarles <gi...@git.apache.org>.
Github user echarles commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-158003641
@jongyoul @Leemoonsoo Thank you for reviewing this and pointing remaining issues.
I have fixed the behavior in the distribution package (simply calling the setContextPath before the check warPath.isDirectory()) and pushed `37e07f9`. It now works in IDE, simple repo and distibution modes.
Travis build is happy. Can please you recheck and send any feedback?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by echarles <gi...@git.apache.org>.
Github user echarles commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-156697172
Travis fails with
09:59:03,926 INFO org.apache.zeppelin.rest.AbstractTestRestApi:247 - Connecting to http://localhost:8080/api/
09:59:03,929 INFO org.apache.zeppelin.rest.AbstractTestRestApi:252 - 404 - Not Found
On my laptop, `mvn clean package -DskipTests -Phadoop-2.3 -Ppyspark -B` on this branch runs successfully.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-158544157
Merge if there're no more discussions.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by echarles <gi...@git.apache.org>.
Github user echarles commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-156730751
@jongyoul just pushed an update and check is now successful.
It is common practice to define the context path in any webapp. Sometimes you don't have a proxy (nginx...) in front and still you want to deploy and answer requests on a defined url base.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by jongyoul <gi...@git.apache.org>.
Github user jongyoul commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-156698083
@echarles Your command passes the tests so you can build this but AbstractTestRestApi fails because that doesn't fix https://github.com/apache/incubator-zeppelin/blob/0a82a93ce495cf537b28104a024a8c0361fd80ac/zeppelin-server/src/test/java/org/apache/zeppelin/rest/AbstractTestRestApi.java#L52, too. And I have a basic question. Why do you need this feature as I commented https://issues.apache.org/jira/browse/ZEPPELIN-337.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/incubator-zeppelin/pull/429
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin 337 configurable context...
Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/429#issuecomment-157933491
I have tested it and it working well.
However, when i create package using -Pbuild-distr maven profile, it does not work correctly.
@echarles Could you take a look?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---