Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-1306

PXF no longer builds with JDK 1.8 (after commit 6fa1ced2)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0.0-incubating
    • Component/s: PXF
    • Labels:
      None

      Description

      After commit 6fa1ced2, PXF fails to build (javadoc section).

      Here is the error message:

      08:56 $ javac -version
      javac 1.8.0_121
      ✔ ~/workspace/HAWQ-projects/incubator-hawq/pxf [:6fa1ced2|…1] 
      08:57 $ java -version
      java version "1.8.0_121"
      Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
      ✔ ~/workspace/HAWQ-projects/incubator-hawq/pxf [:6fa1ced2|✔] 
      08:58 $ make
      ./gradlew clean release -DdeployPath="/usr/local/hawq/pxf"
      :clean UP-TO-DATE
      :pxf:clean UP-TO-DATE
      :pxf-api:clean UP-TO-DATE
      :pxf-hbase:clean UP-TO-DATE
      :pxf-hdfs:clean UP-TO-DATE
      :pxf-hive:clean UP-TO-DATE
      :pxf-json:clean UP-TO-DATE
      :pxf-service:clean UP-TO-DATE
      :pxf:compileJava UP-TO-DATE
      :pxf:processResources UP-TO-DATE
      :pxf:classes UP-TO-DATE
      :pxf:jar SKIPPED
      :pxf:assemble UP-TO-DATE
      :pxf:compileTestJava UP-TO-DATE
      :pxf:processTestResources UP-TO-DATE
      :pxf:testClasses UP-TO-DATE
      :pxf:test UP-TO-DATE
      :pxf:check UP-TO-DATE
      :pxf:build UP-TO-DATE
      :pxf:buildRpm
      :pxf:distTar UP-TO-DATE
      :pxf:javadoc UP-TO-DATE
      :pxf-api:compileJava
      :pxf-api:processResources UP-TO-DATE
      :pxf-api:classes
      :pxf-api:jar
      :pxf-api:assemble
      :pxf-api:compileTestJavaNote: /Users/espino/workspace/HAWQ-projects/incubator-hawq/pxf/pxf-api/src/test/java/org/apache/hawq/pxf/api/utilities/ColumnDescriptorTest.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      
      :pxf-api:processTestResources UP-TO-DATE
      :pxf-api:testClasses
      :pxf-api:test
      :pxf-api:check
      :pxf-api:build
      :pxf-api:javadoc/Users/espino/workspace/HAWQ-projects/incubator-hawq/pxf/pxf-api/src/main/java/org/apache/hawq/pxf/api/OutputFormat.java:51: warning: no @param for className
          public static OutputFormat getOutputFormat(String className) {
                                     ^
      /Users/espino/workspace/HAWQ-projects/incubator-hawq/pxf/pxf-api/src/main/java/org/apache/hawq/pxf/api/OutputFormat.java:24: error: reference not found
       * PXF supported output formats: {@link org.apache.hawq.pxf.service.io.Text} and {@link org.apache.hawq.pxf.service.io.GPDBWritable}
                                              ^
      /Users/espino/workspace/HAWQ-projects/incubator-hawq/pxf/pxf-api/src/main/java/org/apache/hawq/pxf/api/OutputFormat.java:24: error: reference not found
       * PXF supported output formats: {@link org.apache.hawq.pxf.service.io.Text} and {@link org.apache.hawq.pxf.service.io.GPDBWritable}
                                                                                              ^
      
      2 errors
      1 warning
      :pxf-api:javadoc FAILED
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':pxf-api:javadoc'.
      > Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/Users/espino/workspace/HAWQ-projects/incubator-hawq/pxf/pxf-api/build/tmp/javadoc/javadoc.options'
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      BUILD FAILED
      
      Total time: 14.015 secs
      make: *** [all] Error 1
      ✘-2 ~/workspace/HAWQ-projects/incubator-hawq/pxf [:6fa1ced2|✔] 
      08:58 $ 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                odiachenko Oleksandr Diachenko
                Reporter:
                espino Ed Espino
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: