You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Eric Yang (Jira)" <ji...@apache.org> on 2026/04/10 23:23:00 UTC

[jira] [Commented] (SPARK-56447) [SHELL] spark-shell REPL cannot resolve Spark classes after SPARK-52587

    [ https://issues.apache.org/jira/browse/SPARK-56447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18072754#comment-18072754 ] 

Eric Yang commented on SPARK-56447:
-----------------------------------

I'm preparing a PR to fix it.

> [SHELL] spark-shell REPL cannot resolve Spark classes after SPARK-52587
> -----------------------------------------------------------------------
>
>                 Key: SPARK-56447
>                 URL: https://issues.apache.org/jira/browse/SPARK-56447
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Shell
>    Affects Versions: 4.1.1
>            Reporter: Eric Yang
>            Priority: Major
>
> *Problem*
> Built on top of the latest code, spark-shell fails with:
> {code:java}
> Failed to initialize compiler: object scala in compiler mirror not found.
> ** Note that as of 2.8 scala does not assume use of the java classpath.
> ** For the old behavior pass -usejavacp to scala, or if using a Settings
> ** object programmatically, settings.usejavacp.value = true.
> Exception in thread "main" java.lang.NullPointerException: Cannot throw exception because "null" is null
>         at scala.tools.nsc.CompilationUnits$CompilationUnit.<init>(CompilationUnits.scala:43)
>         at scala.tools.nsc.CompilationUnits$CompilationUnit.<init>(CompilationUnits.scala:44)
>         at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compile(IMain.scala:734) {code}
> while explicitly: `bin/spark-shell -usejavacp` can bring it back to work.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org