Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12285

Startup script does not sort HBase compat libraries

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.0, 4.2.0
    • Fix Version/s: 4.3.0
    • Component/s: Master
    • Labels:
      None
    • Release Notes:
      Fixes an issue with the order of HBase compatibility libraries in the class path.
    • Rank:
      1|i00613:

      Description

      For libraries in the master/lib directory, the master script (more precisely, functions.sh) sorts all entries to ensure that co.cask.cdap jars come before any org.apache jars in the classpath. This allows us to override classes from Apache jars in CDAP jars (for example, tephra or twill).

      For the hbase-compat lib dir, the script does not do that and simply puts, for example

      /opt/cdap/hbase-compat-1.1/lib/*
      

      to the beginning of the classpath. This causes trouble when we actually attempt to override a class from a Tephra compat module.

      The compat library dir should be sorted the same way as the master/lib dir.

        Attachments

          Activity

            People

            • Assignee:
              andreas Andreas Neumann
              Reporter:
              andreas Andreas Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: