xlab-uiuc / IDoCT

Illinois Dataset of Configuration Tests
3 stars 23 forks source link

Error in running specified mvn test #15

Closed nikhil96sher closed 1 year ago

nikhil96sher commented 1 year ago

Hi, I was trying to follow the instructions available at https://docs.google.com/document/d/12zoCmQViY3MOvRCqf0aBXikj_A1zh3Lq48vZttayPhw/ and setup the IDoCT repository. When running the TestCryptoStreams test, I am getting the following build error:

[INFO] ------------------------------------------------------------------------                                                                              
[INFO] BUILD FAILURE                                                                                                                                         
[INFO] ------------------------------------------------------------------------                                                                              
[INFO] Total time:  03:04 min                                                                                                                                
[INFO] Finished at: 2022-12-04T16:26:42-06:00                                                                                                                
[INFO] ------------------------------------------------------------------------                                                                              
[ERROR] Failed to execute goal on project hadoop-yarn-applications-catalog-webapp: Could not resolve dependencies for project org.apache.hadoop:hadoop-yarn-a
pplications-catalog-webapp:war:3.3.1: Failed to collect dependencies at org.apache.solr:solr-core:jar:7.7.0 -> org.restlet.jee:org.restlet:jar:2.3.0: Failed 
to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.3.0: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.3.0 from/to maven-defaul
t-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [maven-restlet (http://maven.restlet.org, default, releases+snapshots), apache.snapshots (
http://repository.apache.org/snapshots, default, disabled)] -> [Help 1]                                                                                      
[ERROR]                                                                                                                                                      
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.                                                                          
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :hadoop-yarn-applications-catalog-webapp

I tried to look it up and came across the following bug - https://issues.apache.org/jira/browse/HADOOP-17650 which was resolved in the April update. The commit that I am working of of is the one suggested in the document and is after this fix.

commit a3b9c37a397ad4188041dd80621bdeefc46885f2 (HEAD, tag: release-3.3.1-RC3, tag: rel/release-3.3.1, origin/branch-3.3.1)
Author: Wei-Chiu Chuang <weichiu@apache.org>
Date:   Tue Jun 1 16:37:28 2021 +0800

Any suggestions on what might be going wrong?

Here are the related version info:

Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0)
Java version: 18.0.1, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/18.0.1/libexec/openjdk.jdk/Contents/Home
OS name: "mac os x", version: "13.0", arch: "x86_64", family: "mac"
xylian86 commented 1 year ago

Hi @nikhil96sher, Thanks for raising this issue! The commit you are working on is correct.

The main reasons may be

  1. The java version is too high. Can you try to downgrade JAVA version to java 8 or java 11?
  2. Running on the MacOs always causes issues. Can you try to run it on ubuntu?

Feel free to ask if you still encounter the problem!

nikhil96sher commented 1 year ago

Thanks for the suggestions! I was able to get it running with OpenJDK 8.0 and MVN 3.6.3 - on a MacOS. Turns out, I was actually running the mvn command from the hadoop directory and not hadoop-common. Hence, it was trying to build all the hadoop related projects. When I realized that, running with the above versions on hadoop-common worked.

tianyin commented 1 year ago

Thank you for reporting back @nikhil96sher and for resolving the issue @Alex-Lian!