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

Support wildcard in CLASSPATH for libhdfs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 3.3.0, 3.1.4, 3.2.2, 2.10.1
    • libhdfs
    • None
    • 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.001.patch
          11 kB
          Muhammad Samir Khan
        2. HDFS-12491.002.patch
          12 kB
          Muhammad Samir Khan
        3. testWildCard.sh
          3 kB
          Muhammad Samir Khan

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: