You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2018/04/13 00:25:00 UTC

[jira] [Commented] (CALCITE-2238) JDK 10 - Pig module test failures

    [ https://issues.apache.org/jira/browse/CALCITE-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16436531#comment-16436531 ] 

Kevin Risden commented on CALCITE-2238:
---------------------------------------

Think I may have found an easy fix for this. Looks like this is a problem with Apache Hadoop <2.7.4. HADOOP-14586 introduces a fix for JDK 9+ to handle version strings like -ea. Will put up a PR if the locally running tests pass.

> JDK 10 - Pig module test failures
> ---------------------------------
>
>                 Key: CALCITE-2238
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2238
>             Project: Calcite
>          Issue Type: Bug
>          Components: pig-adapter
>            Reporter: Kevin Risden
>            Assignee: Kevin Risden
>            Priority: Major
>             Fix For: 1.17.0
>
>
> Found while fixing CALCITE-2237 that the Pig module fails when running under JDK 10.
> {noformat}
> [ERROR] Errors:
> [ERROR] org.apache.calcite.test.PigRelBuilderStyleTest.testImplWithCountWithoutGroupBy(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » NoClassDefFound Could ...
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 NullPointer
> [INFO]
> [ERROR] org.apache.calcite.test.PigRelBuilderStyleTest.testImplWithGroupByCountDistinct(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » NoClassDefFound Could ...
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 NullPointer
> [INFO]
> [ERROR] org.apache.calcite.test.PigRelBuilderStyleTest.testImplWithJoin(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » ExceptionInInitializer
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 NullPointer
> [INFO]
> [ERROR] org.apache.calcite.test.PigRelBuilderStyleTest.testScanAndFilter(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » NoClassDefFound Could ...
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 NullPointer{noformat}
> There shouldn't be a NPE or NoClassDefFound. I haven't looked into the cause but this doesn't seem to happen on JDK 9.
> *Environment details*
> {noformat}
> mvn --version
> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T13:49:05-06:00)
> Maven home: /usr/local/Cellar/maven/3.5.3/libexec
> Java version: 10, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.13.4", arch: "x86_64", family: "mac"
> java -version
> java version "10" 2018-03-20
> Java(TM) SE Runtime Environment 18.3 (build 10+46)
> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode){noformat}



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