Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15461 Improvements over the Hadoop support with Windows
  3. HADOOP-11285

FileUtil operations don't check for native lib loaded on windows

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6.0
    • None
    • util
    • None
    • windows

    Description

      On windows FileUtil.canRead() and the like requires the native APIs (at least until a migration to java 7 APIs). The methods do not, however, call NativeIO.isAvailable() to verify the native libs are there. As a result, the calls fail with less useful stack traces.

      if Java 7 allows all of these calls to be replaced, then this is a non-issue

      If not, I propose some verifyAvailableOnWindows() method which triggers an exception; one which includes some hints about the problem —perhaps a URL to a wiki page on the topic

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: