Skip to content

Generate unique temporary files for Python and R Spark Interpreters.#823

Closed
mudsam wants to merge 1 commit intoapache:masterfrom
mudsam:master
Closed

Generate unique temporary files for Python and R Spark Interpreters.#823
mudsam wants to merge 1 commit intoapache:masterfrom
mudsam:master

Conversation

@mudsam
Copy link
Copy Markdown

@mudsam mudsam commented Apr 7, 2016

What is this PR for?

Generate unique temporary files for Python and R Spark interpreters using java.io.File.createTempFile.
Remove the temporary file for the Python interpreter when the interpreter is closed (is already being done in the R interpreter).
Without this fix it is not possible to run more than one Zeppelin interpreter on the same server due to file owner conflicts between instances.

What type of PR is it?

Bug Fix

Todos

What is the Jira issue?

No Jira opened for this

How should this be tested?

Screenshots (if appropriate)

Questions:

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

Add cleanup of Python temporary file on close().
@elbamos
Copy link
Copy Markdown
Contributor

elbamos commented Apr 7, 2016

The patch shouldn't be necessary for the R interpreter from PR 208 right?

@mudsam
Copy link
Copy Markdown
Author

mudsam commented Apr 7, 2016

As far as I can tell it would not be needed for the R interpreter from PR 208.

@Leemoonsoo
Copy link
Copy Markdown
Member

Thanks for the fix. LGTM and CI failure is irrelevant to this change.

@jongyoul
Copy link
Copy Markdown
Member

jongyoul commented Apr 8, 2016

LGTM

@Leemoonsoo
Copy link
Copy Markdown
Member

Merging it into master

@asfgit asfgit closed this in f43228b Apr 11, 2016
onkarshedge pushed a commit to onkarshedge/incubator-zeppelin that referenced this pull request May 11, 2016
### What is this PR for?
Generate unique temporary files for Python and R Spark interpreters using java.io.File.createTempFile.
Remove the temporary file for the Python interpreter when the interpreter is closed (is already being done in the R interpreter).
Without this fix it is not possible to run more than one Zeppelin interpreter on the same server due to file owner conflicts between instances.

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

### Todos

### What is the Jira issue?
No Jira opened for this

### How should this be tested?

### Screenshots (if appropriate)

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

Author: Johan Muedsam <[email protected]>

Closes apache#823 from mudsam/master and squashes the following commits:

0c018b4 [Johan Muedsam] Generate unique temporary files for Python and R Spark Interpreters. Add cleanup of Python temporary file on close().
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.

4 participants