Skip to content

Conversation

@zjffdu
Copy link
Contributor

@zjffdu zjffdu commented Sep 3, 2017

What is this PR for?

Rebase PR #2418 , still use thrift as the communication protocol between zeppelin server and interpreter process. We can change it io netty in future when we implement 2 way communication channel between zeppelin server and interpreter process.

What type of PR is it?

[Bug Fix | Improvement | Feature | Documentation | Hot Fix | Refactoring]

Todos

  • - Task

What is the Jira issue?

Screenshots (if appropriate)

Questions:

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

@zjffdu zjffdu force-pushed the ZEPPELIN-2645 branch 2 times, most recently from ba2f4e6 to 0048f7c Compare September 3, 2017 07:02
@zjffdu
Copy link
Contributor Author

zjffdu commented Sep 3, 2017

@Leemoonsoo @jongyoul Please help review, thanks

note.setConfig(config);
notebook.refreshCron(note.getId());
Thread.sleep(1 * 1000);
Thread.sleep(2 * 1000);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for flaky test

@jongyoul
Copy link
Member

jongyoul commented Sep 3, 2017

LGTM. I agree with using Thrift to implement this feature as we don't have to add new libs more.

@Leemoonsoo
Copy link
Member

Left a question. except for that, LGTM.

port = RemoteInterpreterUtils.findRandomAvailablePortOnAllLocalInterfaces();
logger.info("Choose port {} for RemoteInterpreterProcess", port);
callbackHost = RemoteInterpreterUtils.findAvailableHostname();
callbackPort = RemoteInterpreterUtils.findRandomAvailablePortOnAllLocalInterfaces();
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 it's not very uncommon that system administrator setup firewall with ports whitelisted.
Once Interpreter is run in remote machines, this randomly assigned port may make firewall setup difficult.

Any thoughts on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make sense, will update the PR.

@zjffdu
Copy link
Contributor Author

zjffdu commented Sep 5, 2017

@Leemoonsoo @jongyoul I implement the portRange in thrift callback server. But didn't do that for the port of RemoteInterpreterServer. I will left it when implementing cluster mode.

@zjffdu
Copy link
Contributor Author

zjffdu commented Sep 6, 2017

Thanks for review, Will commit if no more comments.

@asfgit asfgit closed this in 1812928 Sep 6, 2017
asfgit pushed a commit that referenced this pull request Oct 16, 2017
### What is this PR for?
interpreter.cmd works incorrect after #2562

### What type of PR is it?
Bug Fix

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

Author: tinkoff-dwh <[email protected]>

Closes #2607 from tinkoff-dwh/master and squashes the following commits:

1932202 [tinkoff-dwh] Merge remote-tracking branch 'upstream/master'
c7f5124 [tinkoff-dwh] Merge remote-tracking branch 'upstream/master'
8baa87b [tinkoff-dwh] [HOTFIX] fix interpreter.cmd script
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.

3 participants