ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject ignite git commit: IGNITE-6732: Preventing Hadoop module from start on Java >= 9. This closes #3269.
Date Fri, 22 Dec 2017 10:08:54 GMT
Repository: ignite
Updated Branches:
  refs/heads/master b662afff0 -> a9c9968d5


IGNITE-6732: Preventing Hadoop module from start on Java >= 9. This closes #3269.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/a9c9968d
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/a9c9968d
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/a9c9968d

Branch: refs/heads/master
Commit: a9c9968d5ac585f9a966505c7d05a21bcc6ff7a6
Parents: b662aff
Author: Andrey Kuznetsov <stkuzma@gmail.com>
Authored: Fri Dec 22 13:08:46 2017 +0300
Committer: devozerov <vozerov@gridgain.com>
Committed: Fri Dec 22 13:08:46 2017 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/processors/hadoop/HadoopProcessor.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/a9c9968d/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopProcessor.java
----------------------------------------------------------------------
diff --git a/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopProcessor.java
b/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopProcessor.java
index 231fc22..778db61 100644
--- a/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopProcessor.java
+++ b/modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopProcessor.java
@@ -65,6 +65,9 @@ public class HadoopProcessor extends HadoopProcessorAdapter {
 
     /** {@inheritDoc} */
     @Override public void start() throws IgniteCheckedException {
+        if (U.majorJavaVersion(U.jdkVersion()) > 8)
+            throw new IgniteCheckedException("Java version 9 and above is not supported.");
+
         if (ctx.isDaemon())
             return;
 


Mime
View raw message