Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21939

protoc:2.5.0 dependence has broken building on aarch64

    XMLWordPrintableJSON

Details

    Description

      When I try to build master of Hive from source code on "aarch64" server, I met following error:

      [ERROR] Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.5.1.1:run (default) on project hive-standalone-metastore-common: Error resolving artifact: com.google.protobuf:protoc:2.5.0: Could not find artifact com.google.protobuf:protoc:exe:linux-aarch_64:2.5.0 in central (https://repo.maven.apache.org/maven2)

      that is because Hive using the "com.google.protobuf:protoc:2.5.0" as required artifact, which does not have released package for "aarch64" platform.
       
      In order to fix this, I bumped the protobuf used in standalone-metadata to 2.6.1 and added a new profile, this profile will identify
      the hardware architecture and if it is Aarch64, it will override the protobuf group.id and package to com.github.os72 which
      includes ARM support. For X86 platform, Hive will still download the protobuf packages from org.google repo. With this method,
      we can make Hive able to run on Aarch64 and keep the influence to existing x86 users to the minimum.

      Attachments

        1. HIVE-21939.2.patch
          3 kB
          Zhenyu Zheng
        2. HIVE-21939.1.patch
          2 kB
          Zhenyu Zheng
        3. hive_build_with_protobuf_371.log
          1.50 MB
          Zhenyu Zheng

        Activity

          People

            Kevin_Zheng Zhenyu Zheng
            seanlau liusheng
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m