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

Improve fuse-dfs error message when classpath not set or set incorrectly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Incompatible change
    • Hide
      libhdfs will return NULL when there's a java exception creating an object rather than exiting immediately, so that the application can decide what to do on this kind of error.

      Show
      libhdfs will return NULL when there's a java exception creating an object rather than exiting immediately, so that the application can decide what to do on this kind of error.

    Description

      Currently libhdfs does an exit(1) when it cannot create a hadoop object. fuse does not like this and instead fuse_dfs should return EIO and log to syslog and stderr a message. Also if it is obvious somehting is wrong, like the CLASSPATH is null or does not contain something of the form hadoop[a-zA-Z-].jar immediately print an error and exit

      Note that it is tough to debug this issue because when fuse-dfs is not in debug mode, it is running as a fuse module and stderr is redirected, so all one gets is "software abort" when libhdfs exits. So, this will greatly improve things since fuse-dfs can print a proper error and the user can quickly see what the problem is.

      Attachments

        1. patch0.txt
          3 kB
          Pete Wyckoff
        2. patch1.txt
          9 kB
          Pete Wyckoff
        3. patch1.txt
          10 kB
          Pete Wyckoff
        4. patch2.txt
          10 kB
          Pete Wyckoff

        Issue Links

          Activity

            People

              wyckoff Pete Wyckoff
              wyckoff Pete Wyckoff
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: