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

NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.8.0, 3.0.0-alpha1
    • fs
    • None
    • Reviewed

    Description

      Call dirAllocator.getLocalPathForWrite ( path , conf );

      without configuring "dfs.client.buffer.dir"..

      java.lang.NullPointerException
      	at org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.confChanged(LocalDirAllocator.java:261)
      	at org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.getLocalPathForWrite(LocalDirAllocator.java:365)
      	at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:134)
      	at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:113)
      

      Attachments

        1. HADOOP-8436_1.patch
          2 kB
          Brahma Reddy Battula
        2. HADOOP-8436_1.patch.txt
          2 kB
          Harsh J
        3. HADOOP-8436.patch
          2 kB
          Brahma Reddy Battula

        Issue Links

          Activity

            People

              brahmareddy Brahma Reddy Battula
              brahmareddy Brahma Reddy Battula
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: