[ 
https://issues.apache.org/jira/browse/HDDS-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16935982#comment-16935982
 ] 

Elek, Marton commented on HDDS-2167:
------------------------------------

httpclient was excluded together with hadoop dependencies but we explicit use 
it from BasicOzoneFileSystem. It's better to add it as a dependency because in 
this case it will be properly shaded to the current jar.

 

> Hadoop31-mr acceptance test is failing due to the shading
> ---------------------------------------------------------
>
>                 Key: HDDS-2167
>                 URL: https://issues.apache.org/jira/browse/HDDS-2167
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Elek, Marton
>            Assignee: Elek, Marton
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> From the daily build:
> {code}
>       Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/hadoop/ozone/shaded/org/apache/http/client/utils/URIBuilder
>       at 
> org.apache.hadoop.fs.ozone.BasicOzoneFileSystem.initialize(BasicOzoneFileSystem.java:138)
>       at 
> org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3303)
>       at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:124)
>       at 
> org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3352)
>       at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3320)
>       at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:479)
>       at org.apache.hadoop.fs.Path.getFileSystem(Path.java:361)
>       at org.apache.hadoop.fs.shell.PathData.expandAsGlob(PathData.java:325)
>       at 
> org.apache.hadoop.fs.shell.CommandWithDestination.getRemoteDestination(CommandWithDestination.java:195)
>       at 
> org.apache.hadoop.fs.shell.CopyCommands$Put.processOptions(CopyCommands.java:259)
>       at org.apache.hadoop.fs.shell.Command.run(Command.java:175)
>       at org.apache.hadoop.fs.FsShell.run(FsShell.java:328)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
>       at org.apache.hadoop.fs.FsShell.main(FsShell.java:391)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.hadoop.ozone.shaded.org.apache.http.client.utils.URIBuilder
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       ... 15 more
> {code}
> It can be reproduced locally with executing the tests:
> {code}
> cd hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/compose/ozone-mr/hadoop31
> ./test.sh
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to