[
https://issues.apache.org/jira/browse/HDDS-1351?focusedWorklogId=220307&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-220307
]
ASF GitHub Bot logged work on HDDS-1351:
----------------------------------------
Author: ASF GitHub Bot
Created on: 28/Mar/19 23:13
Start Date: 28/Mar/19 23:13
Worklog Time Spent: 10m
Work Description: adoroszlai commented on pull request #660: [HDDS-1351]
NoClassDefFoundError when running ozone genconf
URL: https://github.com/apache/hadoop/pull/660#discussion_r270233396
##########
File path: hadoop-ozone/tools/pom.xml
##########
@@ -59,6 +59,18 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>hadoop-hdfs</artifactId>
<scope>compile</scope>
</dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
Review comment:
Hi @xiaoyuyao, thanks for the review. This change adds 3 dependencies, but
none of them is a transitive dependency via `hadoop-common`. Can you please
clarify what needs to be excluded and why?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 220307)
Time Spent: 1h (was: 50m)
> NoClassDefFoundError when running ozone genconf
> -----------------------------------------------
>
> Key: HDDS-1351
> URL: https://issues.apache.org/jira/browse/HDDS-1351
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Components: build
> Affects Versions: 0.4.0
> Reporter: Doroszlai, Attila
> Assignee: Doroszlai, Attila
> Priority: Major
> Labels: pull-request-available
> Attachments: HDDS-1351.001.patch
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> {{ozone genconf}} fails due to incomplete classpath.
> Steps to reproduce:
> # [build and run
> Ozone|https://cwiki.apache.org/confluence/display/HADOOP/Development+cluster+with+docker]
> # run {{ozone genconf}} in one of the containers:
> {code}
> $ ozone genconf /tmp
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/sun/xml/bind/v2/model/annotation/AnnotationReader
> at java.lang.ClassLoader.defineClass1(Native Method)
> ...
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:242)
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:234)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:441)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584)
> at
> org.apache.hadoop.hdds.conf.OzoneConfiguration.readPropertyFromXml(OzoneConfiguration.java:57)
> at
> org.apache.hadoop.ozone.genconf.GenerateOzoneRequiredConfigurations.generateConfigurations(GenerateOzoneRequiredConfigurations.java:103)
> at
> org.apache.hadoop.ozone.genconf.GenerateOzoneRequiredConfigurations.call(GenerateOzoneRequiredConfigurations.java:73)
> at
> org.apache.hadoop.ozone.genconf.GenerateOzoneRequiredConfigurations.call(GenerateOzoneRequiredConfigurations.java:50)
> at picocli.CommandLine.execute(CommandLine.java:919)
> ...
> at
> org.apache.hadoop.ozone.genconf.GenerateOzoneRequiredConfigurations.main(GenerateOzoneRequiredConfigurations.java:68)
> Caused by: java.lang.ClassNotFoundException:
> com.sun.xml.bind.v2.model.annotation.AnnotationReader
> at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
> 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)
> ... 36 more
> {code}
> {{AnnotationReader}} is in {{jaxb-core}} jar, which is not in the
> {{hadoop-ozone-tools}} classpath.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]