kylin-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lu, Kang-Sen" <...@rbbn.com>
Subject question about compiling kylin 2.5.1 source error. diamond operator is not supported in -source 1.6
Date Tue, 09 Apr 2019 15:41:51 GMT
I updated my kylin 2.5.1 source sandbox, then I issued "build/script/package.sh". I got compilation
error.


[INFO]
[INFO] ----------------< org.apache.kylin:kylin-engine-spark >-----------------
[INFO] Building Apache Kylin - Spark Engine 2.5.3-anovadata             [10/24]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ kylin-engine-spark ---
[INFO] Deleting /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/target
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ kylin-engine-spark
---
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (check-style) @ kylin-engine-spark ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.0:prepare-agent (pre-test) @ kylin-engine-spark ---
[INFO] surefireArgLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.8.0/org.jacoco.agent-0.8.0-runtime.jar=destfile=/home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/../target/jacoco.exec,append=true
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ kylin-engine-spark
---
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ kylin-engine-spark
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- scala-maven-plugin:4.0.1:add-source (scala-compile-first) @ kylin-engine-spark
---
[INFO] Add Source directory: /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/scala
[INFO] Add Test Source directory: /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/test/scala
[INFO]
[INFO] --- scala-maven-plugin:4.0.1:compile (scala-compile-first) @ kylin-engine-spark ---
[INFO] Using incremental compilation using Mixed compile order
[INFO] Compiling 1 Scala source and 15 Java sources to /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/target/classes
...
[WARNING] [Warn] : bootstrap class path not set in conjunction with -source 1.6
[ERROR] [Error] /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkBatchCubingJobBuilder2.java:148:
diamond operator is not supported in -source 1.6
  (use -source 7 or higher to enable diamond operator)
[ERROR] [Error] /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkCubingByLayer.java:239:
try-with-resources is not supported in -source 1.6
  (use -source 7 or higher to enable try-with-resources)
[ERROR] [Error] /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkCubingByLayer.java:251:
diamond operator is not supported in -source 1.6
  (use -source 7 or higher to enable diamond operator)
[ERROR] [Error] /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkCubingMerge.java:159:
try-with-resources is not supported in -source 1.6
  (use -source 7 or higher to enable try-with-resources)
[ERROR] [Error] /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkCubingMerge.java:173:
diamond operator is not supported in -source 1.6
  (use -source 7 or higher to enable diamond operator)
[ERROR] [Error] /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkExecutable.java:157:
diamond operator is not supported in -source 1.6
  (use -source 7 or higher to enable diamond operator)
[ERROR] [Error] /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkFactDistinct.java:267:
try-with-resources is not supported in -source 1.6
  (use -source 7 or higher to enable try-with-resources)
[ERROR] [Error] /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkMergingDictionary.java:185:
try-with-resources is not supported in -source 1.6
  (use -source 7 or higher to enable try-with-resources)
[ERROR] [Error] /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkMergingDictionary.java:223:
diamond operator is not supported in -source 1.6
  (use -source 7 or higher to enable diamond operator)
[ERROR] [Error] /home/zettics/sandbox/klu/kylin.2.5.1.new/engine-spark/src/main/java/org/apache/kylin/engine/spark/util/IteratorUtils.java:58:
diamond operator is not supported in -source 1.6
  (use -source 7 or higher to enable diamond operator)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Kylin 2.5.3-anovadata ....................... SUCCESS [  2.558 s]
[INFO] Apache Kylin - Core Common ......................... SUCCESS [  5.910 s]
[INFO] Apache Kylin - Core Metadata ....................... SUCCESS [  5.879 s]
[INFO] Apache Kylin - Core Dictionary ..................... SUCCESS [  4.300 s]
[INFO] Apache Kylin - Core Cube ........................... SUCCESS [  5.396 s]
[INFO] Apache Kylin - Core Metrics ........................ SUCCESS [  1.238 s]
[INFO] Apache Kylin - Core Job ............................ SUCCESS [  2.801 s]
[INFO] Apache Kylin - Core Storage ........................ SUCCESS [  2.825 s]
[INFO] Apache Kylin - MapReduce Engine .................... SUCCESS [  5.395 s]
[INFO] Apache Kylin - Spark Engine ........................ FAILURE [  7.884 s]
[INFO] Apache Kylin - Hive Source ......................... SKIPPED
[INFO] Apache Kylin - Kafka Source ........................ SKIPPED
[INFO] Apache Kylin - HBase Storage ....................... SKIPPED
[INFO] Apache Kylin - Query ............................... SKIPPED
[INFO] Apache Kylin - Metrics Reporter Hive ............... SKIPPED
[INFO] Apache Kylin - Metrics Reporter Kafka .............. SKIPPED
[INFO] Apache Kylin - REST Server Base .................... SKIPPED
[INFO] Apache Kylin - REST Server ......................... SKIPPED
[INFO] Apache Kylin - JDBC Driver ......................... SKIPPED
[INFO] Apache Kylin - Assembly ............................ SKIPPED
[INFO] Apache Kylin - Tool ................................ SKIPPED
[INFO] Apache Kylin - Tool Assembly ....................... SKIPPED
[INFO] Apache Kylin - Integration Test .................... SKIPPED
[INFO] Apache Kylin - Tomcat Extension 2.5.3-anovadata .... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.573 s
[INFO] Finished at: 2019-04-09T11:38:32-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.0.1:compile (scala-compile-first)
on project kylin-engine-spark: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:4.0.1:compile
failed.: CompileFailed -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :kylin-engine-spark
[root@titanic kylin.2.5.1.new]#


-----------------------------------------------------------------------------------------------------------------------
Notice: This e-mail together with any attachments may contain information of Ribbon Communications
Inc. that
is confidential and/or proprietary for the sole use of the intended recipient.  Any review,
disclosure, reliance or
distribution by others or forwarding without express permission is strictly prohibited.  If
you are not the intended
recipient, please notify the sender immediately and then delete all copies, including any
attachments.
-----------------------------------------------------------------------------------------------------------------------

Mime
View raw message