You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Abhishek Girish (JIRA)" <ji...@apache.org> on 2017/02/28 21:41:45 UTC
[jira] [Commented] (DRILL-5303) Drillbits fail to start when Drill
server built with JDK 8 is deployed on a JDK 7 environment
[ https://issues.apache.org/jira/browse/DRILL-5303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15888913#comment-15888913 ]
Abhishek Girish commented on DRILL-5303:
----------------------------------------
A brief note shared by [~adityakishore]:
ConcurrentHashMap implementation changes in Java 8 are one of the few instance of implementation leaking into interface and causing such incompatibility.
Note that you can compile with JDK-8 with source and target set to 1.7 and still hit this issue.
Another reference link shared by Karthik:
https://gist.github.com/AlainODea/1375759b8720a3f9f094
> Drillbits fail to start when Drill server built with JDK 8 is deployed on a JDK 7 environment
> ---------------------------------------------------------------------------------------------
>
> Key: DRILL-5303
> URL: https://issues.apache.org/jira/browse/DRILL-5303
> Project: Apache Drill
> Issue Type: Bug
> Components: Server, Tools, Build & Test
> Affects Versions: 1.9.0
> Reporter: Abhishek Girish
>
> When Drill is built on a node configured with JDK 8 and is then deployed in a JDK 7 environment, Drillbits fail to start and the following errors are seen in Drillbit.out:
> {code}
> Exception in thread "main" java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
> at org.apache.drill.exec.coord.ClusterCoordinator.drillbitRegistered(ClusterCoordinator.java:85)
> at org.apache.drill.exec.coord.zk.ZKClusterCoordinator.updateEndpoints(ZKClusterCoordinator.java:266)
> at org.apache.drill.exec.coord.zk.ZKClusterCoordinator.start(ZKClusterCoordinator.java:135)
> at org.apache.drill.exec.server.Drillbit.run(Drillbit.java:117)
> at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:292)
> at org.apache.drill.exec.server.Drillbit.start(Drillbit.java:272)
> at org.apache.drill.exec.server.Drillbit.main(Drillbit.java:268)
> {code}
> Workaround is to match the Java versions of build and deployment environments.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)