yahoo / CaffeOnSpark

Distributed deep learning on Hadoop and Spark clusters.
Apache License 2.0
1.27k stars 358 forks source link

Error running javah command: Error executing command line #298

Open emrosales opened 6 years ago

emrosales commented 6 years ago

Hi... I Like to share a couple of things: First as I'm new to hadoop, for teaching purposes I followed a couple of tutorials for installing, Then, I overcome the problem of .net + SDK7.1...during building hadoop I had got a warning and an error warninf concerning maven-gpg-plugin that was missing in line 133 of the pom.xml. I have realized that there wasnot a mention of the plugin in the pluginManagement section, so I added and the warning disapear... Second and more serious, I have got the following error:

[ERROR] Failed to execute goal org.codehaus.mojo:native-maven-plugin:1.0-alpha-8:javah (default) on project hadoop-common: Error running javah command: Error executing command line. Exit code:1 -> [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/MojoExecutionException

Checking the ouput (I redirect the output to a file, I'm including) I realized that the command line

[INFO] --- native-maven-plugin:1.0-alpha-8:javah (default) @ hadoop-common --- [INFO] cmd.exe /X /C "C:\Progra~1\Java\jdk1.8.0_161\bin\javah -d C:\hadoop-3.0.0-src\hadoop- ... org.apache.hadoop.crypto.OpensslCipher org.apache.hadoop.crypto.random.OpensslSecureRandom org.apache.hadoop.util.NativeCrc32"

is too long...and my guess is that line was not executed, thus the error. logfile.txt

I'm running in windows 7, it is the only platform I have got so far, as I said it is for teaching purposes... Is there any way to work-around the too long command line?? Thanks

javatutorials2016 commented 6 years ago

Hi there, I face the same issue and fixed it by changing the maven m2 location in settings.xml.

c:\.m2
emrosales commented 6 years ago

Hi again...which file? the one located inside maven/conf directory? thanks