Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-27894

Build flink-connector-hive failed using Maven@3.8.5

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      When I tried to build flink project locally with Java8 and Maven3.8.5, I met such error:

      [ERROR] Failed to execute goal on project flink-connector-hive_2.12: Could not resolve dependencies for project org.apache.flink:flink-connector-hive_2.12:jar:1.16-SNAPSHOT: Failed to collect dependencies at org.apache.hive:hive-exec:jar:2.3.9 -> org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde: Failed to read artifact descriptor for org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde: Could not transfer artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [repository.jboss.org (http://repository.jboss.org/nexus/content/groups/public/, default, disabled), conjars (http://conjars.org/repo, default, releases+snapshots), apache.snapshots (http://repository.apache.org/snapshots, default, snapshots)] -> [Help 1]
      
      

      After some investigation, the reason may be that Maven 3.8.1 disables support for repositories using "http" protocol. Due to NIFI-8398, one possible solution is adding

          <repositories>
              <!-- HTTP Repository for pentaho-aggdesigner-algorithm 5.1.5-jhyde required by calcite-1.2.0-incubating -->
              <repository>
                  <id>conjars</id>
                  <url>https://conjars.org/repo</url>
              </repository>
          </repositories>
      

      in the pom.xml of flink-connector-hive module.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bgeng777 Biao Geng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: