Re: [Aurelius] try to build titan using mvn clean test -P comprehensive, but encounter exception

87 views
Skip to first unread message

Marko Rodriguez

unread,
Oct 2, 2012, 10:48:35 AM10/2/12
to aureliu...@googlegroups.com
Hi,

Do you have a local version of Cassandra running (and the correct version of Cassandra)?

~$ cassandra -f
titan$ mvn clean install

Moreover, "comprehensive" takes a significant amount of time. You might be better off with simply 'mvn clean install.'

HTH,
Marko.


On Oct 1, 2012, at 9:02 PM, Apirom Na Nakorn wrote:

Hello,

Please help, I try to build titan using command "mvn clean test -P comprehensive", but encounter exception as follow :
 
com.thinkaurelius.titan.diskstorage.TemporaryStorageException: Cassandra process failed to bind Thrift-port within timeout.
        at com.thinkaurelius.titan.diskstorage.cassandra.CassandraProcessStarter.startCassandra(CassandraProcessStarter.java:164)
        at com.thinkaurelius.titan.blueprints.ExternalCassandraBlueprintsTest.startUp(ExternalCassandraBlueprintsTest.java:21)
        at com.thinkaurelius.titan.blueprints.LocalBlueprintsTest.doTestSuite(LocalBlueprintsTest.java:117)
        at com.thinkaurelius.titan.blueprints.LocalBlueprintsTest.testGraphTestSuite(LocalBlueprintsTest.java:44)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74) 

Thank you

Best Regards

Mr.Apirom Na Nakorn

--
 
 

Matthias Broecheler

unread,
Oct 2, 2012, 10:50:49 PM10/2/12
to aureliu...@googlegroups.com
Hey Apirom, 
it seems some other process is occupying the cassandra port.
HTH,
Matthias

--
 
 



--
Matthias Broecheler, PhD
http://www.matthiasb.com
E-Mail: m...@matthiasb.com

Apirom Na Nakorn

unread,
Oct 3, 2012, 1:11:08 AM10/3/12
to aureliu...@googlegroups.com
Hi,

    I run maven with the following environment:
- Apache Cassandra 1.1.3
- OS : Window XP => I need to modify variable "cassandraCommand" in CassandraProcessStarter class to be "cassandra.bat"

    Everything works perfectly with "mvn clean install". What if I modify something in Titan and would like to make sure that every function work properly, runing "mvn clean install: is enough ?
    
   Now, I just start Cassandra separately and modify code in CassandraProcessStarter not to start/stop Cassandra and run the test again. Still waiting for the build result

Matthias Broecheler

unread,
Oct 3, 2012, 4:20:45 AM10/3/12
to aureliu...@googlegroups.com
Hey Apirom,

it sounds like there is a problem in starting the external cassandra process on windows. If mvn clean install works for you that means starting cassandra in the same jvm works fine. All of the important functionality is covered by "mvn clean install" with the exception of HBase (because that currently requires an external process for hbase). With the comprehensive test suite you get Hbase coverage and additional performance tests.

I don't have a windows box to figure out why the process won't start under windows. Does anybody have the means to test this out?
Thanks,
Matthias

--
 
 

Apirom Na Nakorn

unread,
Oct 5, 2012, 6:13:09 AM10/5/12
to aureliu...@googlegroups.com
Hi,

Thank you for your reply. I will go with "mvn clean install" option.

Best Regards

Mr.Apirom Na Nakorn 
Reply all
Reply to author
Forward
0 new messages