You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by GitBox <gi...@apache.org> on 2020/07/13 10:53:24 UTC
[GitHub] [zeppelin] xiejiajun opened a new pull request #3852: [ZEPPELIN-4950]. Support for manually specifying the Java version of Spark Interpreter Scala REPL
xiejiajun opened a new pull request #3852:
URL: https://github.com/apache/zeppelin/pull/3852
### What is this PR for?
- Support for manually specifying the Java version of Spark Interpreter Scala REPL.
- This feature can be used to resolve runtime errors caused by reference to third-party libraries that use high-version Java in Spark Interpreter.
### What type of PR is it?
[Feature]
### Todos
* [ ] - Task
### What is the Jira issue?
* https://issues.apache.org/jira/projects/ZEPPELIN/issues/ZEPPELIN-4950
### How should this be tested?
* manually tested
* Specify spark.repl.target through %spark.conf or when configuring Spark Interpreter
* Reference and call a Java method in a third-party library developed using Java 8 and using Java 8 features such as interface static methods through the Spark interpreter. If the call is successful, it means the test passed
### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? NO
* Is there breaking changes for older versions? NO
* Does this needs documentation? Yes
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [zeppelin] xiejiajun edited a comment on pull request #3852: [ZEPPELIN-4950]. Support for manually specifying the Java version of Spark Interpreter Scala REPL
Posted by GitBox <gi...@apache.org>.
xiejiajun edited a comment on pull request #3852:
URL: https://github.com/apache/zeppelin/pull/3852#issuecomment-658144779
> @xiejiajun What is the default value of `settings.target.value` if we don't specify it ?
> What does your screenshot mean ? It looks like it could not use library that use jdk 8
@zjffdu 1. The default value of `settings.target.value` is `jvm-1.6` when we don't specify it.
2. This screenshot is to explain that runtime error will be triggered when we reference a third-party library that uses the new features of Java8 if we using the default value of `settings.target.value` (jvm-1.6) .
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [zeppelin] xiejiajun commented on pull request #3852: [ZEPPELIN-4950]. Support for manually specifying the Java version of Spark Interpreter Scala REPL
Posted by GitBox <gi...@apache.org>.
xiejiajun commented on pull request #3852:
URL: https://github.com/apache/zeppelin/pull/3852#issuecomment-658144779
> @xiejiajun What is the default value of `settings.target.value` if we don't specify it ?
> What does your screenshot mean ? It looks like it could not use library that use jdk 8
@zjffdu 1. The default value of `settings.target.value` is `jvm-1.6` when we don't specify it.
2. This screenshot is to explain that runtime error will be triggered when we reference a third-party library that uses the new features of Java8 if we using the default value `settings.target.value` (jvm-1.6) .
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [zeppelin] zjffdu commented on pull request #3852: [ZEPPELIN-4950]. Support for manually specifying the Java version of Spark Interpreter Scala REPL
Posted by GitBox <gi...@apache.org>.
zjffdu commented on pull request #3852:
URL: https://github.com/apache/zeppelin/pull/3852#issuecomment-658015121
@xiejiajun What is the default value of `settings.target.value` if we don't specify it ?
What does your screenshot mean ? It looks like it could not use library that use jdk 8
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [zeppelin] xiejiajun commented on pull request #3852: [ZEPPELIN-4950]. Support for manually specifying the Java version of Spark Interpreter Scala REPL
Posted by GitBox <gi...@apache.org>.
xiejiajun commented on pull request #3852:
URL: https://github.com/apache/zeppelin/pull/3852#issuecomment-658211081
> @xiejiajun I don't see spark scala shell specifying `settings.target.value`, does that mean spark scala shell unable to use any libraries depends on jdk 8 as well ?
@zjffdu Yes, I just tested, spark-shell does have this problem

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [zeppelin] xiejiajun edited a comment on pull request #3852: [ZEPPELIN-4950]. Support for manually specifying the Java version of Spark Interpreter Scala REPL
Posted by GitBox <gi...@apache.org>.
xiejiajun edited a comment on pull request #3852:
URL: https://github.com/apache/zeppelin/pull/3852#issuecomment-658144779
> @xiejiajun What is the default value of `settings.target.value` if we don't specify it ?
> What does your screenshot mean ? It looks like it could not use library that use jdk 8
@zjffdu 1. The default value of `settings.target.value` is `jvm-1.6` when we don't specify it.
2. This screenshot is to explain that runtime error will be triggered when we reference a third-party library that uses the new features of Java8 if we using the default value jvm-1.6 of `settings.target.value`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [zeppelin] zjffdu commented on pull request #3852: [ZEPPELIN-4950]. Support for manually specifying the Java version of Spark Interpreter Scala REPL
Posted by GitBox <gi...@apache.org>.
zjffdu commented on pull request #3852:
URL: https://github.com/apache/zeppelin/pull/3852#issuecomment-658199354
@xiejiajun I don't see spark scala shell specifying `settings.target.value`, does that mean spark scala shell unable to use any libraries depends on jdk 8 as well ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [zeppelin] zjffdu commented on pull request #3852: [ZEPPELIN-4950]. Support for manually specifying the Java version of Spark Interpreter Scala REPL
Posted by GitBox <gi...@apache.org>.
zjffdu commented on pull request #3852:
URL: https://github.com/apache/zeppelin/pull/3852#issuecomment-659431517
Thanks @xiejiajun, LGTM
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [zeppelin] asfgit closed pull request #3852: [ZEPPELIN-4950]. Support for manually specifying the Java version of Spark Interpreter Scala REPL
Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #3852:
URL: https://github.com/apache/zeppelin/pull/3852
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org