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

HDFS clients can't construct HdfsConfiguration instances

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      the changes for the hdfs client classpath make instantiating HdfsConfiguration from the client impossible; it only lives server side. This breaks any app which creates one.

      I know people will look at the @Private tag and say "don't do that then", but it's worth considering precisely why I, at least, do this: it's the only way to guarantee that the hdfs-default and hdfs-site resources get on the classpath, including all the security settings. It's precisely the use case which HdfsConfigurationLoader.init(); offers internally to the hdfs code.

      What am I meant to do now?

        Attachments

        1. HDFS-9241.000.patch
          0.6 kB
          Mingliang Liu
        2. HDFS-9241.001.patch
          31 kB
          Mingliang Liu
        3. HDFS-9241.002.patch
          32 kB
          Mingliang Liu
        4. HDFS-9241.003.patch
          37 kB
          Mingliang Liu
        5. HDFS-9241.004.patch
          37 kB
          Mingliang Liu
        6. HDFS-9241.005.patch
          37 kB
          Mingliang Liu

          Issue Links

            Activity

              People

              • Assignee:
                liuml07 Mingliang Liu
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: