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
compile hbase in linux and windows problem
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] Building HBase 0.90.1
[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] ------------------------------------------------------------------------
[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] 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] 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?


              + classes
              + generated-sources
              + hbase-webapps
              + maven-shared-archive-resources
              - .plxarc

3. In windows and in Linux, Maven version , hbase version  and the repository's content is same.

      but why in Linux, compile was successful.but in windows,ERROR happened?

4.In Linux , execute [mvn clean install] command line , all the T E S T S fail.

Zhou Shuaifeng(Frank)
This e-mail and its attachments contain confidential information from HUAWEI, which
is intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!