|
Zhoushuaifeng
2011-03-21, 08:52
Suraj Varma
2011-03-21, 17:34
Zhoushuaifeng
2011-03-22, 04:03
Stack
2011-03-22, 05:06
Zhoushuaifeng
2011-03-23, 06:30
Zhoushuaifeng
2011-03-23, 06:35
|
-
compile hbase in linux and windows problemZhoushuaifeng 2011-03-21, 08:52
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 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!
-
Re: compile hbase in linux and windows problemSuraj 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
-
Re: compile hbase in linux and windows problemZhoushuaifeng 2011-03-22, 04:03
Thanks a lot,
After using cygwin, the first problem solved and build successful. My linux is behand a proxy and have some problem to access internet, linux and windows env is below: windows: 1.hbase version:0.90.1 2.Maven version:3.0.3 3.Java version:1.6.0_23 4.OS:windows7(online) Linux: 1.hbase version:0.90.1 2.Maven version:3.0.3 3.Java version:1.6.0_22 4.OS:"linux", version: "2.6.32.12-0.7-default", arch: "amd64", family: "unix" The second problem below, do you have some idea? > > 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 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! -----邮件原件----- 发件人: Suraj Varma [mailto:[EMAIL PROTECTED]] 发送时间: 2011年3月22日 1:34 收件人: dev@hbase.apache.org 主题: Re: compile hbase in linux and windows problem 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
-
Re: compile hbase in linux and windows problemStack 2011-03-22, 05:06
2011/3/21 Zhoushuaifeng <[EMAIL PROTECTED]>:
> My linux is behand a proxy and have some problem to access internet, linux and windows env is below: > Can you get one of your network admins to help you w/ the hbase connection going via proxy? Its hard for us from here to give you help about your network. >> 2. I copy the windows's repository folder to Linux,because My Linux entironment can not access entironment. Are you sure that'll work? Do they have the same layout? I suppose they do but I'm not sure. >> >> [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? >> What mvn commands did you run? Did you do: mvn clean install assembly:single or to skip tests mvn clean -DskipTests install assembly:single St.Ack
-
Re: compile hbase in linux and windows problemZhoushuaifeng 2011-03-23, 06:30
Hi,
See my answer inline below start with //zhou: -----邮件原件----- 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 代表 Stack 发送时间: 2011年3月22日 13:07 收件人: dev@hbase.apache.org 主题: Re: compile hbase in linux and windows problem 2011/3/21 Zhoushuaifeng <[EMAIL PROTECTED]>: > My linux is behand a proxy and have some problem to access internet, linux and windows env is below: > Can you get one of your network admins to help you w/ the hbase connection going via proxy? Its hard for us from here to give you help about your network. //zhou: Our network problem on linux is because of some policy of our company, That's why I'm trying to compile hbase in linux without connection to internet. >> 2. I copy the windows's repository folder to Linux,because My Linux entironment can not access entironment. Are you sure that'll work? Do they have the same layout? I suppose they do but I'm not sure. //zhou: ■ my linux still can not access internet and I copy the windows's repository folder to Linux, it work and do not download the dependencies files that be downloaded in windows. in Linux, by the command line [mvn clean -DskipTests install assembly:single], I get the hbase-0.90.1.tar.gz file in \target folder. Now I wonder is there anything wrong to execute Maven command line in linux with repository from windowns? I mean that the Maven's dependencies files are not the same between linux and windows, even the pom.xml is same? >> >> [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? >> What mvn commands did you run? Did you do: mvn clean install assembly:single or to skip tests mvn clean -DskipTests install assembly:single //zhou: I use 【mvn clean -DskipTests install assembly:single】 and get the hbase-0.90.1.tar.gz in \target folder. St.Ack
-
Re: compile hbase in linux and windows problemZhoushuaifeng 2011-03-23, 06:35
Now I get hbase-0.90.1.tar.gz by [mvn clean -DskipTests install assembly:single].
when I execute [mvn clean install assembly:single],some tests are NG. Does it mean that hbase-0.90.1.tar.gz (got by [mvn clean -DskipTests install assembly:single]) is wrong? so I plan to analyze this problem. 1.I compared hbase-0.90.1.tar.gz(installed by myself) and hbase-0.90.1.tar.gz(download from apache site), several files are not same: hbase-0.90.1.jar hbase-0.90.1-tests.jar jaxb-api-2.1.jar(in lib folder) 2.I plan to run the tests based on hbase-0.90.1.tar.gz(installed by myself) and hbase-0.90.1.tar.gz(download from apache site). the problem is: how to run test based on hbase-0.90.1.tar.gz (compiled by myself) and hbase-0.90.1.tar.gz(from apache site) are exist) to test hbase-0.90.1.tar.gz(installed by myself) have problem or not. thanks. Zhou Shuaifeng(Frank) HUAWEI TECHNOLOGIES CO.,LTD. ------------------------------------------------------------------------------------------------------------------------------------- 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! -----邮件原件----- 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 代表 Stack 发送时间: 2011年3月22日 13:07 收件人: dev@hbase.apache.org 主题: Re: compile hbase in linux and windows problem 2011/3/21 Zhoushuaifeng <[EMAIL PROTECTED]>: > My linux is behand a proxy and have some problem to access internet, linux and windows env is below: > Can you get one of your network admins to help you w/ the hbase connection going via proxy? Its hard for us from here to give you help about your network. >> 2. I copy the windows's repository folder to Linux,because My Linux entironment can not access entironment. Are you sure that'll work? Do they have the same layout? I suppose they do but I'm not sure. >> >> [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? >> What mvn commands did you run? Did you do: mvn clean install assembly:single or to skip tests mvn clean -DskipTests install assembly:single St.Ack |