Fabio created SPARK-24944:
-----------------------------

             Summary: SparkUi build problem
                 Key: SPARK-24944
                 URL: https://issues.apache.org/jira/browse/SPARK-24944
             Project: Spark
          Issue Type: Bug
          Components: Build
    Affects Versions: 2.3.1, 2.3.0
         Environment: scala 2.11.8


java version "1.8.0_181" 
Java(TM) SE Runtime Environment (build 1.8.0_181-b13) 
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

------------------------------------------------------------
Gradle 4.5.1
------------------------------------------------------------

Build time: 2018-02-05 13:22:49 UTC
Revision: 37007e1c012001ff09973e0bd095139239ecd3b3

Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM: 1.8.0_181 (Oracle Corporation 25.181-b13)
OS: Windows 7 6.1 amd64

 

build.gradle:

group 'it.build-test.spark'
version '1.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'scala'

sourceCompatibility = 1.8

repositories {
 mavenCentral()
}

dependencies {
 compile 'org.apache.spark:spark-core_2.11:2.3.1'
 compile 'org.scala-lang:scala-library:2.11.8'
}

tasks.withType(ScalaCompile) {
 scalaCompileOptions.additionalParameters = ["-Ylog-classpath"]
}
            Reporter: Fabio


Hi. I'm trying to customize SparkUi with my business logic. Trying to access to 
ui, I have ta build problem. It's enough to create this class:



_package org.apache.spark_

_import org.apache.spark.ui.SparkUI_

_case class SparkContextUtils(sc: SparkContext) {_
 _def ui: Option[SparkUI] = sc.ui_
_}_

 

to have this error:

 

_missing or invalid dependency detected while loading class file 'WebUI.class'._
_Could not access term eclipse in package org,_
_because it (or its dependencies) are missing. Check your build definition for_
_missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the 
problematic classpath.)_
_A full rebuild may help if 'WebUI.class' was compiled against an incompatible 
version of org._
_missing or invalid dependency detected while loading class file 'WebUI.class'._
_Could not access term jetty in value org.eclipse,_
_because it (or its dependencies) are missing. Check your build definition for_
_missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the 
problematic classpath.)_
_A full rebuild may help if 'WebUI.class' was compiled against an incompatible 
version of org.eclipse._
_two errors found_
_:compileScala FAILED_

_FAILURE: Build failed with an exception._

_* What went wrong:_
_Execution failed for task ':compileScala'._
_> Compilation failed_

_* Try:_
_Run with --stacktrace option to get the stack trace. Run with --info or 
--debug option to get more log output. Run with --scan to get full insights._

_* Get more help at https://help.gradle.org_

_BUILD FAILED in 26s_
_1 actionable task: 1 executed_
_Compilation failed_

 

The option "-Ylog-classpath" hasn't any useful information

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to