Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13070 classloading isolation improvements for stricter dependencies
  3. HADOOP-13398

prevent user classes from loading classes in the parent classpath with ApplicationClassLoader

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Patch Available
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • util
    • None

    Description

      Today, a user class is able to trigger loading a class from Hadoop's dependencies, with or without the use of ApplicationClassLoader, and it creates an implicit dependence from users' code on Hadoop's dependencies, and as a result dependency conflicts.

      We should modify ApplicationClassLoader to prevent a user class from loading a class from the parent classpath.

      This should also cover resource loading (including ClassLoader.getResources() and as a corollary ServiceLoader).

      Attachments

        1. hadoop-13398-notes.pdf
          173 kB
          Sangjin Lee
        2. HADOOP-13398-HADOOP-13070.04.patch
          49 kB
          Sangjin Lee
        3. HADOOP-13398-HADOOP-13070.03.patch
          44 kB
          Sangjin Lee
        4. HADOOP-13398-HADOOP-13070.02.patch
          43 kB
          Sangjin Lee
        5. HADOOP-13398-HADOOP-13070.01.patch
          9 kB
          Sangjin Lee

        Activity

          People

            sjlee0 Sangjin Lee
            sjlee0 Sangjin Lee
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: