Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Error running javah command: Error executing command line #298

Open
emrosales opened this issue Mar 10, 2018 · 2 comments
Open

Error running javah command: Error executing command line #298

emrosales opened this issue Mar 10, 2018 · 2 comments

Comments

@emrosales
Copy link

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

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

c:.m2

@emrosales
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants