You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "MUKESH SINGH (JIRA)" <ji...@apache.org> on 2015/06/21 05:38:00 UTC

[jira] [Closed] (SPARK-8507) spark-shell failing for Spark 1.4 on Windows7

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

MUKESH SINGH closed SPARK-8507.
-------------------------------
    Resolution: Invalid

My cmd environment was not clean. Closing the ticket as invalid.

> spark-shell failing for Spark 1.4 on Windows7
> ---------------------------------------------
>
>                 Key: SPARK-8507
>                 URL: https://issues.apache.org/jira/browse/SPARK-8507
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Shell
>    Affects Versions: 1.4.0
>         Environment: Windows 7
>            Reporter: MUKESH SINGH
>             Fix For: 1.4.1
>
>
> 1. Download binary release spark-1.4.0-bin-hadoop2.6 for windows
> 2. run spark-shell
> Failed to initialize compiler: object scala.runtime 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 programatically, settings.usejavacp.value = true.
> 15/06/20 22:48:42 WARN repl.SparkILoop$SparkILoopInterpreter: Warning: compiler
> accessed before init set up.  Assuming no postInit code.
> Failed to initialize compiler: object scala.runtime 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
> 4. Found out that "-Dscala.usejavacp=true -Dscala.usejavacp=true" is causing the issue. If the duplicate is removed then the command works.
> java -cp "c:\temp\spark-1.4.0-bin-hadoop2.6\bin\..\conf\;c:\temp\spark-1.4.0-bin-hadoop2.6\bin\..\lib\spark-assembly-1.4.0-hadoop2.6.0.jar;c:\temp\spark-1.4.0-bin-hadoop2.6\bin\..\lib\datanucleus-api-jdo-3.2.6.jar;c:\temp\spark-1.4.0-bin-hadoop2.6\bin\..\lib\datanucleus-core-3.2.10.jar;c:\temp\spark-1.4.0-bin-hadoop2.6\bin\..\lib\datanucleus-rdbms-3.2.9.jar;C:\hdp\hadoop-2.4.0.2.1.3.0-1981\etc\hadoop\\" "-Dscala.usejavacp=true -Dscala.usejavacp=true" -Xms512m -Xmx512m org.apache.spark.deploy.SparkSubmit --class org.apache.spark.repl.Main spark-shell



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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