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

kevin su commented on HDFS-14717:
---------------------------------

[~xkrogen] Thanks for your reply 

{quote}It looks like the test failure is due to the recent cleanup of versions 
available on the Apache mirrors. The real long-term solution is to fix 
HDFS-14412, but in the meantime, I think we need to bump the default version 
used by the test to 3.1.2 from 3.1.1.{quote}

Make sense, if we use local build of Hadoop by default, we won't got failure by 
downloading Hadoop from Apache mirrors.

But it's seems like we need to build hadoop distribution firstly before run 
*_TestDynamometerInfra_* 
what if we directly run *_TestDynamometerInfra_* , it may fail.
Is there any way to build Hadoop inside the Unit Test 

> Junit not found in hadoop-dynamometer-infra
> -------------------------------------------
>
>                 Key: HDFS-14717
>                 URL: https://issues.apache.org/jira/browse/HDFS-14717
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: kevin su
>            Assignee: kevin su
>            Priority: Major
>         Attachments: HDFS-14717.001.patch, HDFS-14717.002.patch
>
>
> {code:java}
> $ hadoop jar hadoop-dynamometer-infra-3.3.0-SNAPSHOT.jar 
> org.apache.hadoop.tools.dynamometer.Client
> {code}
> {code:java}
> Exception in thread "main" java.lang.NoClassDefFoundError: org/junit/Assert
>  at org.apache.hadoop.tools.dynamometer.Client.main(Client.java:256)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
>  at org.apache.hadoop.util.RunJar.main(RunJar.java:236)
> Caused by: java.lang.ClassNotFoundException: org.junit.Assert
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>  ... 7 more{code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
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