Skip to content

[MINOR][ZEPPELIN-2154] Enable work in the web dev mode if changing default server port - #2097

Closed
soralee wants to merge 4 commits into
apache:masterfrom
soralee:ZEPPELIN-2154_port_webDevMode
Closed

[MINOR][ZEPPELIN-2154] Enable work in the web dev mode if changing default server port#2097
soralee wants to merge 4 commits into
apache:masterfrom
soralee:ZEPPELIN-2154_port_webDevMode

Conversation

@soralee

Copy link
Copy Markdown
Contributor

What is this PR for?

If user change zeppelin.server.port variable in zeppelin-site.xml, zeppelin doesn't work in web development.
In order for user to run zeppelin correctly, so that user can add SERVER_PORT as an environment variable when running web application development mode.

What type of PR is it?

[Bug Fix | Improvement | Documentation]

What is the Jira issue?

How should this be tested?

  1. Change zeppelin.server.port from 8080 to 8888 (or another port) in zeppelin-site.xml
  2. Run zeppelin (bin/zeppelin-daemon.sh start)
  3. Run web development mode under zeppelin-web folder such like SERVER_PORT=8888 yarn run dev
  4. Connect localhost:9000

Screenshots (if appropriate)

[Before]
z_2130_before

[After]
z_2130_after

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? Yes, added in README.md

}
}
//Exception for when running locally via grunt
if (port === 3333 || port === 9000) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we don't need port 3333?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, as far as i know this port is old web development mode. Thus we don't need 3333 port :)

@soralee
soraleeforce-pushed the ZEPPELIN-2154_port_webDevMode branch 2 times, most recently from 2effb98 to 62dde39CompareMarch 6, 2017 05:59
@1ambda

1ambda commented Mar 7, 2017

Copy link
Copy Markdown
Member

Tested and works as described.

@soralee
soraleeforce-pushed the ZEPPELIN-2154_port_webDevMode branch from 62dde39 to e6d1801CompareMarch 7, 2017 05:13
@soralee

Copy link
Copy Markdown
ContributorAuthor

Thanks for review @1ambda 👍

@khalidhuseynov

Copy link
Copy Markdown
Member

LGTM

@soraleesoralee closed this Mar 7, 2017
@soraleesoralee reopened this Mar 7, 2017
@AhyoungRyu

Copy link
Copy Markdown
Contributor

@soralee Thanks for the improvement. Also tested and it works well. Maybe this part needs to be updated accordingly after this PR merged :)
Will merge into master and branch-0.7 if there are no more comments.

@soralee

Copy link
Copy Markdown
ContributorAuthor

@khalidhuseynov@AhyoungRyu Thanks for review!
And let me update the document after being merged this PR.

@asfgitasfgit closed this in 44b395fMar 9, 2017
@AhyoungRyu

Copy link
Copy Markdown
Contributor

@soralee I just merged this into master but automatically couldn't into branch-0.7. Can you create a separate PR for branch-0.7?

@soralee

Copy link
Copy Markdown
ContributorAuthor

@AhyoungRyu Sure, Thanks!

asfgit pushed a commit that referenced this pull request Apr 8, 2017
### What is this PR for?
If user change `zeppelin.server.port` variable in zeppelin-site.xml, zeppelin doesn't work in web development on `branch-0.7`
#2097 PR which is same issue on master branch was already merged to master branch.
### What type of PR is it?
[Bug Fix | Improvement | Documentation (README.md)]
### What is the Jira issue?
* [ZEPPELIN-2154](https://issues.apache.org/jira/browse/ZEPPELIN-2154)
### How should this be tested?
1. Change `zeppelin.server.port` from 8080 to 8888 (or another port) in `zeppelin-site.xml`
2. Run zeppelin (`bin/zeppelin-daemon.sh start`)
3. Run web development mode under zeppelin-web folder such like `SERVER_PORT=8888 yarn run dev`
4. Connect localhost:9000
### Screenshots (if appropriate)
**[Before]**
![image](https://cloud.githubusercontent.com/assets/8110458/23829990/b3b7f436-0742-11e7-8bbe-c14245c42003.png)
**[After]**
![z_0 7_server_port_cmd](https://cloud.githubusercontent.com/assets/8110458/23829958/f9b9be84-0741-11e7-9db8-af4e2952b989.png)
![z_0 7_server_port_after](https://cloud.githubusercontent.com/assets/8110458/23829960/fc3fe4a8-0741-11e7-8d63-2bccf07055a1.png)
### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does thi`sneeds documentation? Yes, `README.md`
Author: soralee <sora0728@zepl.com>
Closes#2124 from soralee/ZEPPELIN-2154_0.7_server_port and squashes the following commits:
8633842 [soralee] [ZEPPELIN-2154] Support zeppelin.server.port in dev mode (branch-0.7)
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.

5 participants

@soralee@1ambda@khalidhuseynov@AhyoungRyu@felixcheung