Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-15851

Spark 2.0 does not compile in Windows 7

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Build
    • Labels:
      None
    • Environment:

      Windows 7

    • Target Version/s:
    • Flags:
      Important

      Description

      Spark does not compile in Windows 7.
      "mvn compile" fails on spark-core due to trying to execute a bash script spark-build-info.

      Work around:
      1)Install win-bash and put in path
      2)Change line 350 of core/pom.xml
      <exec executable="bash">
      <arg value="${project.basedir}/../build/spark-build-info"/>
      <arg value="${project.build.directory}/extra-resources"/>
      <arg value="${pom.version}"/>
      </exec>

      Error trace:
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project spark-core_2.11: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "C:\dev\spark\core\..\build\spark-build-info" (in directory "C:\dev\spark\core"): CreateProcess error=193, %1 is not a valid Win32 application
      [ERROR] around Ant part ...<exec executable="C:\dev\spark\core/../build/spark-build-info">... @ 4:73 in C:\dev\spark\core\target\antrun\build-main.xml

        Attachments

          Activity

            People

            • Assignee:
              rxin Reynold Xin
              Reporter:
              avulanov Alexander Ulanov
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: