[ 
https://issues.apache.org/jira/browse/SPARK-56447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-56447:
-----------------------------------
    Labels: pull-request-available  (was: )

> [SHELL] spark-shell NPE: 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
>              Labels: pull-request-available
>
> *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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to