Skip to content

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

Closed
mudsam wants to merge 1 commit into
apache:masterfrom
mudsam:master
Closed

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

Conversation

@mudsam

Copy link
Copy Markdown

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

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

@mudsam

Copy link
Copy Markdown
Author

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

LGTM

@Leemoonsoo

Copy link
Copy Markdown
Member

Merging it into master

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 <jm837u@att.com>
Closesapache#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 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.

4 participants

@mudsam@elbamos@Leemoonsoo@jongyoul