You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Yapu Jia (Person Consulting)" <v-...@microsoft.com> on 2016/02/26 04:36:42 UTC
problem about build development env
Hi,
I use the Hortonworks Sandbox 2.2.4 to bulid my development env.
I refer to the offical doc about development env and success in step(mvn clean install -DskipTests).
But, Failure in step(Run unit trests), include:
mvn test -Dtest=org.apache.kylin.job.BuildCubeWithEngineTest -DfailIfNoTests=false -Dhdp.version=2.2 -P sandbox
mvn test -Dtest=org.apache.kylin.job.BuildIIWithEngineTest -DfailIfNoTests=false -Dhdp.version=2.2 -P sandbox
The failure info is
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Kylin:HadoopOLAPEngine ............................. SUCCESS [ 4.458 s]
[INFO] Kylin:AtopCalcite .................................. SUCCESS [ 5.050 s]
[INFO] Kylin:Common ....................................... SUCCESS [ 21.077 s]
[INFO] Kylin:Metadata ..................................... SUCCESS [ 3.027 s]
[INFO] Kylin:Dictionary ................................... SUCCESS [ 2.193 s]
[INFO] Kylin:Cube ......................................... SUCCESS [ 6.438 s]
[INFO] Kylin:InvertedIndex ................................ SUCCESS [ 0.966 s]
[INFO] Kylin:Job .......................................... FAILURE [01:02 min]
[INFO] Kylin:Storage ...................................... SKIPPED
[INFO] Kylin:Query ........................................ SKIPPED
[INFO] Kylin:JDBC ......................................... SKIPPED
[INFO] Kylin:RESTServer ................................... SKIPPED
[INFO] Kylin:Monitor ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:48 min
[INFO] Finished at: 2016-02-26T02:39:12+00:00
[INFO] Final Memory: 40M/722M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project kylin-job: There are test failures.
[ERROR]
[ERROR] Please refer to /root/kylin/job/../target/surefire-reports for the individual test results.
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :kylin-job
Therefore, I don't kown how fix it. I skip the step (Run unit trests) and go to next step (lunch Kylin Web Server).
There have a problem is that I can't lunch org.apache.kylin.rest.DebugTomcat . The error is "Selection does not contain a main type".
So, how to fix these problem and build development env about Kylin.
Thanks,
Yapu
Re: problem about build development env
Posted by hongbin ma <ma...@apache.org>.
if you merely want to run test cases, you don't have to keep a web server
running. suggest to strictly follow
http://kylin.apache.org/development/howto_test.html, it's step by step
On Fri, Feb 26, 2016 at 3:55 PM, Yapu Jia (Person Consulting) <
v-yapjia@microsoft.com> wrote:
> Thank you hongbin, but I also can't mvn test successful.
>
> And, I can't understand your reply
> in 2.x you don't need separately run it anymore
> How should I lunch Kylin web server?
>
> Best Regards,
> Yapu
>
> -----Original Message-----
> From: hongbin ma [mailto:mahongbin@apache.org]
> Sent: Friday, February 26, 2016 12:54 PM
> To: dev@kylin.apache.org
> Subject: Re: problem about build development env
>
> hi
>
> are you following
> https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fkylin.apache.org%2fdevelopment%2fhowto_test.html%3f&data=01%7c01%7cv-yapjia%40064d.mgd.microsoft.com%7c868c8ed5c5ac497f806108d33e68eb30%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=jIGwfeacmkvTpMbGc%2bo7dCVXavLcCDVuOBZlCC67MNk%3d
>
> in 1.x BuildCubeWithEngineTest is used for provisioning the sandbox, it
> should not combine with -DfailIfNoTests.
>
> in 2.x you don't need separately run it anymore
>
>
>
>
>
> --
> Regards,
>
> *Bin Mahone | 马洪宾*
> Apache Kylin:
> https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fkylin.io&data=01%7c01%7cv-yapjia%40064d.mgd.microsoft.com%7c868c8ed5c5ac497f806108d33e68eb30%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=RLM302hJl%2bnHcItxkBt%2bphVYU9G1nEzmgGlTol13FA8%3d
> Github: https://github.com/binmahone
>
--
Regards,
*Bin Mahone | 马洪宾*
Apache Kylin: http://kylin.io
Github: https://github.com/binmahone
RE: problem about build development env
Posted by "Yapu Jia (Person Consulting)" <v-...@microsoft.com>.
Thank you hongbin, but I also can't mvn test successful.
And, I can't understand your reply
in 2.x you don't need separately run it anymore
How should I lunch Kylin web server?
Best Regards,
Yapu
-----Original Message-----
From: hongbin ma [mailto:mahongbin@apache.org]
Sent: Friday, February 26, 2016 12:54 PM
To: dev@kylin.apache.org
Subject: Re: problem about build development env
hi
are you following https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fkylin.apache.org%2fdevelopment%2fhowto_test.html%3f&data=01%7c01%7cv-yapjia%40064d.mgd.microsoft.com%7c868c8ed5c5ac497f806108d33e68eb30%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=jIGwfeacmkvTpMbGc%2bo7dCVXavLcCDVuOBZlCC67MNk%3d
in 1.x BuildCubeWithEngineTest is used for provisioning the sandbox, it should not combine with -DfailIfNoTests.
in 2.x you don't need separately run it anymore
--
Regards,
*Bin Mahone | 马洪宾*
Apache Kylin: https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fkylin.io&data=01%7c01%7cv-yapjia%40064d.mgd.microsoft.com%7c868c8ed5c5ac497f806108d33e68eb30%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=RLM302hJl%2bnHcItxkBt%2bphVYU9G1nEzmgGlTol13FA8%3d
Github: https://github.com/binmahone
Re: problem about build development env
Posted by hongbin ma <ma...@apache.org>.
hi
are you following http://kylin.apache.org/development/howto_test.html?
in 1.x BuildCubeWithEngineTest is used for provisioning the sandbox, it
should not combine with -DfailIfNoTests.
in 2.x you don't need separately run it anymore
--
Regards,
*Bin Mahone | 马洪宾*
Apache Kylin: http://kylin.io
Github: https://github.com/binmahone