Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # dev - compile hbase in linux and windows problem


Copy link to this message
-
Re: compile hbase in linux and windows problem
Suraj Varma 2011-03-21, 17:34
I think you may be running into an error while executing the
saveVersion.sh under hbase-0.90.1/src directory - this fails if cygwin
is not available on the windows PATH (e.g. if you do ls in windows
command window, does it list files correctly?)

Also - specifically, what command did you run to build hbase on
windows (full command line including maven targets)?

Can you also describe your build machine environment a bit more - are
you behind a proxy or an authenticated proxy for instance? Do you have
cygwin on the machine and is it on your PATH?

One recommendation is to turn off running tests during the build (it
saves quite a bit of time, and you can always run it again, if needed)
... so, use -DskipTests command line argument to turn off the tests
during your build.

If you are still facing the issue after doing all the basic checks
like JAVA_HOME, Maven version, cygwin setup etc, turn on the -e Maven
switches to get fuller stack traces to see what exactly is failing.

I've been building on Windows for a while - and it definitely works.
--Suraj

2011/3/21 Zhoushuaifeng <[EMAIL PROTECTED]>:
> I try to compile hbase in windows, got some problems, can someone help to find out what's the problem?
>
>      1.in windows entironment,I try to compile the hbase (pom.xml) by the Maven's command line[mvn compile],but error happen.
>
>      the ERROR information is :
>
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building HBase 0.90.1
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-antrun-plugin:1.3:run (generate) @ hbase ---
> [INFO] Executing tasks
>    [mkdir] Created dir: E:\workspace\JAVA\0.90.1\hbase-0.90.1\target\hbase-webapps
>     [copy] Copying 4 files to E:\workspace\JAVA\0.90.1\hbase-0.90.1\target\hbase-webapps
>       SLF4J:Failed to load class"org.slf4j.impl.StaticLoggerbinder".
>       SLF4J:See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
>    [mkdir] Created dir: E:\workspace\JAVA\0.90.1\hbase-0.90.1\target\hbase-webapps\master\WEB-INF
>    [mkdir] Created dir: E:\workspace\JAVA\0.90.1\hbase-0.90.1\target\hbase-webapps\regionserver\WEB-INF
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 0.982s
> [INFO] Finished at: Mon Mar 21 10:04:37 CST 2011
> [INFO] Final Memory: 5M/15M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (generate) on project hbase: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "sh": CreateProcess error=2, ????????? -> [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
>
>      2. I copy the windows's repository folder to  Linux,because My Linux  entironment can not access entironment.
>
>      [mvn compile] by Maven ,compile is successful. but the target folder is not same with the hbase-0.90.1.tar.gz.
>
>      there is no jar file. what's wrong?
>
>       -target
>
>              + classes
>              + generated-sources
>              + hbase-webapps
>              + maven-shared-archive-resources
>              - .plxarc
>
> 3. In windows</em