New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ZEPPELIN-4323] Kotlin support for Spark interpreter #3440
Conversation
…avoid confusion with ZeppelinContext
|
||
private List<String> sparkClasspath() { | ||
String sparkJars = System.getProperty("spark.jars"); | ||
Pattern isKotlinJar = Pattern.compile("/kotlin-(runtime|stdlib|compiler|reflect)(-.*)?\\.jar"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be this pattern simplified to /kotlin-[a-z]*(-.*)?\\.jar
? I suppose we don't want to change this regex every time new jar is added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
} | ||
|
||
private List<String> sparkClasspath() { | ||
String sparkJars = System.getProperty("spark.jars"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this method be static?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -128,7 +128,8 @@ static void atomicWriteToFile(String content, File file) throws IOException { | |||
} | |||
try { | |||
file.getParentFile().mkdirs(); | |||
Files.move(tempFile.toPath(), destinationFilePath, StandardCopyOption.ATOMIC_MOVE); | |||
Files.move(tempFile.toPath(), destinationFilePath, | |||
StandardCopyOption.REPLACE_EXISTING); //StandardCopyOption.ATOMIC_MOVE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why has this changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Atomic move caused errors on Linux, I suggest asking khud about that
# Conflicts: # .travis.yml # LICENSE
@dkaznacheev Could you resolve the conflict ? |
# Conflicts: # .travis.yml
@zjffdu Conflict was resolved |
@ileasile @dkaznacheev Could any of you paste the travis CI link ? |
@zjffdu Here is the link: https://travis-ci.org/ileasile/zeppelin/builds/611340288 |
Thanks @ileasile Could you rerun the failed test ? |
e6c4721
to
ad2c1a9
Compare
Thanks @ileasile the PR LGTM except on minor thing. Kotlin unit test is ignored for now, you need to add We do the same thing for python interpreter, https://github.com/apache/zeppelin/blob/master/.travis.yml#L123 |
@zjffdu This issue is fixed, new build is here: https://travis-ci.org/ileasile/zeppelin |
LGTM, will merge if no more comments |
@zjffdu Yes, this may be already merged |
@dkaznacheev @ileasile the Koltin version is pretty old and depends on unstable API, do you guys have a plan to upgrade it to keep things up-to-date? |
What is this PR for?
This PR aims to add Kotlin language support to Apache Zeppelin as a standalone interpreter as well as a part of Spark interpreter group.
For added features and details, see Jira issue: https://issues.apache.org/jira/browse/ZEPPELIN-4323
Feel free to ask any questions, I will be happy to answer!
What type of PR is it?
Feature
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-4323
How should this be tested?
-Pspark2.4
and using%kotlin
in standalone interpreter or%spark.kotlin
in Spark interpreterScreenshots (if appropriate)
Questions: