Github user petro-rudenko commented on the pull request:

    https://github.com/apache/spark/pull/4514#issuecomment-75989874
  
    Having problem compiling spark with sbt due to next error:
    ```
    $ build/sbt -Phadoop-2.4 compile
    [error] 
/home/peter/soft/spark_src/core/src/main/scala/org/apache/spark/ExecutorAllocationManager.scala:127:
 type mismatch;
    [error]  found   : org.apache.spark.util.SystemClock
    [error]  required: org.apache.spark.Clock
    [error]   private var clock: Clock = new SystemClock()
    [error]                              ^
    [info] Resolving org.fusesource.jansi#jansi;1.4 ...
    [info] Done updating.
    [info] Resolving org.objenesis#objenesis;1.2 ...
    [info] Updating {file:/home/peter/soft/spark_src/}streaming-mqtt...
    [info] Resolving org.apache.hadoop#hadoop-mapreduce-client-common;2.4.0 ...
    [error] 
/home/peter/soft/spark_src/core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala:66:
 reference to Clock is ambiguous;
    [error] it is imported twice in the same scope by
    [error] import org.apache.spark.util._
    [error] and import org.apache.spark._
    [error]     clock: Clock = new SystemClock())
    [error]            ^
    [info] Resolving org.fusesource.jansi#jansi;1.4 ...
    [info] Done updating.
    [info] Resolving org.apache.hadoop#hadoop-annotations;2.4.0 ...
    [info] Updating {file:/home/peter/soft/spark_src/}streaming-twitter...
    [info] Resolving org.fusesource.jansi#jansi;1.4 ...
    [info] Done updating.
    [info] Resolving org.apache.spark#spark-network-shuffle_2.10;1.3.0-SNAPSHOT 
...
    [warn] There may be incompatibilities among your library dependencies.
    [warn] Here are some of the libraries that were evicted:
    [warn]      * com.google.guava:guava:(14.0.1, 11.0.2) -> 15.0
    [warn] Run 'evicted' to see detailed eviction warnings
    [info] Resolving org.objenesis#objenesis;1.2 ...
    [info] Updating {file:/home/peter/soft/spark_src/}streaming-flume...
    [info] Resolving commons-net#commons-net;3.1 ...
    [info] Updating {file:/home/peter/soft/spark_src/}tools...
    [info] Resolving net.sf.py4j#py4j;0.8.2.1 ...
    [warn] 
/home/peter/soft/spark_src/core/src/main/scala/org/apache/spark/deploy/worker/DriverRunner.scala:34:
 imported `Clock' is permanently hidden by definition of trait Clock in package 
worker
    [warn] import org.apache.spark.util.{Clock, SystemClock}
    [warn]                               ^
    [info] Resolving org.twitter4j#twitter4j-core;3.0.3 ...
    [error] 
/home/peter/soft/spark_src/core/src/main/scala/org/apache/spark/deploy/worker/DriverRunner.scala:61:
 type mismatch;
    [error]  found   : org.apache.spark.util.SystemClock
    [error]  required: org.apache.spark.deploy.worker.Clock
    [error]   private var clock: Clock = new SystemClock()
    [error]                              ^
    [error] 
/home/peter/soft/spark_src/core/src/main/scala/org/apache/spark/deploy/worker/DriverRunner.scala:190:
 value getTimeMillis is not a member of org.apache.spark.deploy.worker.Clock
    [error]       val processStart = clock.getTimeMillis()
    [error]                                ^
    [error] 
/home/peter/soft/spark_src/core/src/main/scala/org/apache/spark/deploy/worker/DriverRunner.scala:192:
 value getTimeMillis is not a member of org.apache.spark.deploy.worker.Clock
    [error]       if (clock.getTimeMillis() - processStart > 
successfulRunDuration * 1000) {
    [error]                 ^
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to