Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-12491

Support wildcard in CLASSPATH for libhdfs

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 3.3.0, 3.1.4, 3.2.2, 2.10.1
    • Component/s: libhdfs
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      According to libhdfs doc, wildcard in CLASSPATH is not support:

      The most common problem is the CLASSPATH is not set properly when calling a program that uses libhdfs. Make sure you set it to all the Hadoop jars needed to run Hadoop itself as well as the right configuration directory containing hdfs-site.xml. It is not valid to use wildcard syntax for specifying multiple jars. It may be useful to run hadoop classpath --glob or hadoop classpath --jar <path> to generate the correct classpath for your deployment.

        Attachments

        1. HDFS-12491.002.patch
          12 kB
          Muhammad Samir Khan
        2. HDFS-12491.001.patch
          11 kB
          Muhammad Samir Khan
        3. testWildCard.sh
          3 kB
          Muhammad Samir Khan

          Activity

            People

            • Assignee:
              samkhan Muhammad Samir Khan
              Reporter:
              jzhuge John Zhuge
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: