Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12747

support wildcard in libjars argument

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha1
    • util
    • None
    • Reviewed
    • It is now possible to specify multiple jar files for the libjars argument using a wildcard. For example, you can specify "-libjars 'libs/*'" as a shorthand for all jars in the libs directory.

    Description

      There is a problem when a user job adds too many dependency jars in their command line. The HADOOP_CLASSPATH part can be addressed, including using wildcards (*). But the same cannot be done with the -libjars argument. Today it takes only fully specified file paths.

      We may want to consider supporting wildcards as a way to help users in this situation. The idea is to handle it the same way the JVM does it: * expands to the list of jars in that directory. It does not traverse into any child directory.

      Also, it probably would be a good idea to do it only for libjars (i.e. don't do it for -files and -archives).

      Attachments

        1. HADOOP-12747.07.patch
          27 kB
          Sangjin Lee
        2. HADOOP-12747.06.patch
          26 kB
          Sangjin Lee
        3. HADOOP-12747.05.patch
          25 kB
          Sangjin Lee
        4. HADOOP-12747.04.patch
          25 kB
          Sangjin Lee
        5. HADOOP-12747.03.patch
          24 kB
          Sangjin Lee
        6. HADOOP-12747.02.patch
          24 kB
          Sangjin Lee
        7. HADOOP-12747.01.patch
          21 kB
          Sangjin Lee

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: