Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-9299

Generate the protobuf classes with hadoop-maven-plugin

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.96.0
    • None
    • None
    • Reviewed
    • Adds in reference to the hadoop-maven-plugin (commented out). Improved documentation around how to generate protobuf classes.

    Description

      For now, the protobuf classes are generated once by a dev, and put in src/main/resouce.

      This allows the other dev to not have the correct protoc version available on their machine. However, when a dev wants to modify the protoc messages, he has to know how to generate the classes. This could be documented...

      Another approach would be to put a harder requirement on the hbase developers (protoc available) and let the hadoop-maven-plugin (http://central.maven.org/maven2/org/apache/hadoop/hadoop-maven-plugins/2.0.5-alpha) to do the work (I have bad experience with other maven protobuf plugins, the hadoop one works just out of the box).

      I don't think asking to install protoc to build hbase is so difficult, but that's an additional step between the dev and the artifcat.

      The advantage would be to allow to have different protobuf versions for different hbase distributions (perfectly possible but quite theorical).

      So
      option 1: We are happy to keep the classes in src/main/java
      option 2: We want to move to hadoop-maven-plugin
      option 3: I may be short of idea... any other input?

      Attachments

        1. HBASE-9299.patch
          10 kB
          Eric Charles

        Activity

          People

            eric@apache.org Eric Charles
            eric@apache.org Eric Charles
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: