Reply
Explorer
Posts: 13
Registered: ‎10-28-2016

Kudu java client build failed

Hi,

I am tring to build Kudu Java Client on Ubuntu 14.04 with 'mvn package' ,but the following error occurred:

 

[ERROR] Failed to execute goal on project kudu-client: Could not resolve dependencies for project org.apache.kudu:kudu-client:jar:1.1.0-SNAPSHOT: Could not find artifact org.apache.kudu:interface-annotations:jar:1.1.0-SNAPSHOT in apache.snapshots (https://repository.apache.org/snapshots) -> [Help 1]
[ERROR]

 

Anyone know how to solve it ?

 

Regards,

Bob

Cloudera Employee J-D
Cloudera Employee
Posts: 43
Registered: ‎07-08-2013

Re: Kudu java client build failed

Hi Bob,

 

It looks like we're not pushing snapshot jars for 1.1.0 upstream, but you can find them on Cloudera's mvn repo: https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_vd_cdh5_maven_repo.html

 

Hope this helps,

 

J-D

Cloudera Employee
Posts: 43
Registered: ‎09-28-2015

Re: Kudu java client build failed

Additionally, you might try doing the build from the root of the 'java/'
directory rather than from inside 'java/kudu-client/'. I've noticed that
Maven isn't very good at building the dependencies if you start the build
from a subtree of the project.

-Todd
Explorer
Posts: 13
Registered: ‎10-28-2016

Re: Kudu java client build failed

Thanks Todd,J-D. I tried building it from the root of the 'java/' directory and it does help.
Explorer
Posts: 13
Registered: ‎10-28-2016

Re: Kudu java client build failed

[ Edited ]

Another problem occured though build successfully. I can't pass the tests,like the following:

 

[INFO]
[INFO] Kudu ............................................... SUCCESS [04:52 min]
[INFO] Kudu Annotations ................................... SUCCESS [ 30.520 s]
[INFO] Kudu Java Client ................................... FAILURE [14:14 min]
[INFO] Kudu's MapReduce bindings .......................... SKIPPED
[INFO] Collection of tools that interact directly with Kudu SKIPPED
[INFO] Kudu Spark Bindings ................................ SKIPPED
[INFO] Kudu Flume NG Sink ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19:38 min
[INFO] Finished at: 2016-10-29T11:27:06+08:00
[INFO] Final Memory: 55M/1222M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on project kudu-client: There are test failures.
[ERROR]
[ERROR] Please refer to /data/home/Bob/kudu/java/kudu-client/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 :kudu-client

 

I know little about it. Anyone knows how to solve? Or are there any detailed documents I can refer to?

 

Regards,
Bob

Cloudera Employee J-D
Cloudera Employee
Posts: 43
Registered: ‎07-08-2013

Re: Kudu java client build failed

Hi Bob,

 

You didn't paste the part that shows which tests failed, so it's a little hard to help you. Also, to run the unit tests you need to have built the kudu-master and kudu-tserver binaries.

 

BTW, what are you trying to achieve here? Do you just want jars? Or are you trying to test a modification?

 

Thx,

 

J-D

Explorer
Posts: 13
Registered: ‎10-28-2016

Re: Kudu java client build failed

Thx J-D.

  • The following tests failed:
Spoiler
Tests in error:
TestAlterTable>BaseKuduTest.setUpBeforeClass:83 ? We tried starting a process...
TestAsyncKuduClient.setUpBeforeClass:47->BaseKuduTest.setUpBeforeClass:83 ? W...
TestAsyncKuduSession.setUpBeforeClass:59->BaseKuduTest.setUpBeforeClass:83 ? ...
TestFlexiblePartitioning>BaseKuduTest.setUpBeforeClass:83 ? We tried starting...
TestHybridTime.setUpBeforeClass:55->BaseKuduTest.setUpBeforeClass:83 ? We tri...
TestKuduClient>BaseKuduTest.setUpBeforeClass:83 ? We tried starting a process...
TestKuduSession>BaseKuduTest.setUpBeforeClass:83 ? We tried starting a proces...
TestKuduTable.setUpBeforeClass:44->BaseKuduTest.setUpBeforeClass:83 ? We trie...
TestLeaderFailover.setUpBeforeClass:32->BaseKuduTest.setUpBeforeClass:83 ? We...
TestMasterFailover.setUpBeforeClass:38->BaseKuduTest.setUpBeforeClass:83 ? We...
TestMiniKuduCluster.before:39 ? We tried starting a process (/data/home/wangb...
TestPartitionPruner>BaseKuduTest.setUpBeforeClass:83 ? We tried starting a pr...
TestRowErrors.setUpBeforeClass:34->BaseKuduTest.setUpBeforeClass:83 ? We trie...
TestRowResult.setUpBeforeClass:39->BaseKuduTest.setUpBeforeClass:83 ? We trie...
TestScanPredicate>BaseKuduTest.setUpBeforeClass:83 ? We tried starting a proc...
TestScannerMultiTablet.setUpBeforeClass:43->BaseKuduTest.setUpBeforeClass:83 ?
TestStatistics.setUpBeforeClass:33->BaseKuduTest.setUpBeforeClass:83 ? We tri...
TestTimeouts>BaseKuduTest.setUpBeforeClass:83 ? We tried starting a process (...

and one of the detailed test results is as below:

Spoiler
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.135 sec <<< FAILURE! - in org.apache.kudu.client.TestAlterTable
org.apache.kudu.client.TestAlterTable Time elapsed: 1.135 sec <<< ERROR!
java.lang.Exception: We tried starting a process (/data/home/Bob/kudu/build/latest/bin/kudu-master) but it exited with value=134
at org.apache.kudu.client.MiniKuduCluster.configureAndStartProcess(MiniKuduCluster.java:242)
at org.apache.kudu.client.MiniKuduCluster.startMasters(MiniKuduCluster.java:203)
at org.apache.kudu.client.MiniKuduCluster.startCluster(MiniKuduCluster.java:117)
at org.apache.kudu.client.MiniKuduCluster.<init>(MiniKuduCluster.java:78)
at org.apache.kudu.client.MiniKuduCluster.<init>(MiniKuduCluster.java:46)
at org.apache.kudu.client.MiniKuduCluster$MiniKuduClusterBuilder.build(MiniKuduCluster.java:470)
at org.apache.kudu.client.BaseKuduTest.setUpBeforeClass(BaseKuduTest.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
  • I have built kudu and can access the Master and Tablet Server web UI successfully.
  • I want jars here.
Highlighted
Cloudera Employee J-D
Cloudera Employee
Posts: 43
Registered: ‎07-08-2013

Re: Kudu java client build failed

The full test log will contain the reason why kudu-master couldn't start (all I can get from your log is that it exited with code 134). You can find them in java/kudu-client/target/surefire-reports, look for the -output.txt files such as 

org.apache.kudu.client.TestAlterTable-output.txt.

 

Your master and tserver don't need to be running for the tests to run.

 

You say "I want jars here", you mean that's all you need? They are available on Apache's maven repo, or you can generate them without running the tests with "mvn package -DskipTests".

Announcements