Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1203

Shade protobuf dependency in Mesos Java library

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.18.1
    • build
    • None

    Description

      Mesos's Java library uses the protobuf library which is also used by Hadoop. Unfortunately the protobuf library does not provide binary compatiblity between minor versions (for code compiled against 2.4.1 and 2.5.0 cannot run together in a single JVM classlaoder) .

      This makes use of Mesos via it's Java API, something that is required for Spark and I'm assuming other frameworks, fundamentally incompatible for certain Hadoop versions.

      Mesos could shade this jar using the maven shade plug-in. Take a look at the Parquet project for an example of shading:

      https://github.com/Parquet/parquet-format/blob/master/pom.xml#L140

      Without this fix Java users won't be able to use Mesos (< 0.17) with newer versions of Hadoop. Or Mesos 0.17+ with older versions of Hadoop.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            pwendell Patrick Wendell
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment