You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Alejandro Abdelnur (JIRA)" <ji...@apache.org> on 2013/04/11 00:55:17 UTC
[jira] [Updated] (HADOOP-9471) hadoop-client wrongfully excludes
jetty-util JAR, breaking webhdfs
[ https://issues.apache.org/jira/browse/HADOOP-9471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur updated HADOOP-9471:
---------------------------------------
Attachment: HADOOP-9471.patch
patch that removes the exclusion from hadoop-client's hadoop-hdfs dependency, verified with a simple program that uses webhdfs:// to access HDFS and has the hadoop-client JARs in the classpath.
> hadoop-client wrongfully excludes jetty-util JAR, breaking webhdfs
> ------------------------------------------------------------------
>
> Key: HADOOP-9471
> URL: https://issues.apache.org/jira/browse/HADOOP-9471
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 2.0.3-alpha
> Reporter: Alejandro Abdelnur
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.4-alpha
>
> Attachments: HADOOP-9471.patch
>
>
> WebHdfsFileSystem uses jetty-util's JSON class.
> hadoop-client excludes that JAR, applications built using hadoop-client POM fail:
> {code}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)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira