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

hadoop-client wrongfully excludes jetty-util JAR, breaking webhdfs

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3-alpha
    • 2.0.4-alpha
    • build
    • None

    Description

      WebHdfsFileSystem uses jetty-util's JSON class.

      hadoop-client excludes that JAR, applications built using hadoop-client POM fail:

      java.lang.NoClassDefFoundError: org/mortbay/util/ajax/JSON
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.jsonParse(WebHdfsFileSystem.java:277)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$Runner.getResponse(WebHdfsFileSystem.java:561)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$Runner.run(WebHdfsFileSystem.java:480)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.run(WebHdfsFileSystem.java:413)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getHdfsFileStatus(WebHdfsFileSystem.java:580)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getFileStatus(WebHdfsFileSystem.java:591)
      	at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1332)
      

      Attachments

        1. HADOOP-9471.patch
          0.5 kB
          Alejandro Abdelnur

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tucu00 Alejandro Abdelnur
            tucu00 Alejandro Abdelnur
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment