need help installing hector

60 views
Skip to first unread message

Ousmane Diallo

unread,
Feb 10, 2014, 12:39:55 PM2/10/14
to hector...@googlegroups.com
Hello,
I'm new user of cassandra and I would like to use hector as client to interract with my cassandra database.
I have installed :
I tried to install hector package with the maven command : mvn clean package
I got many errors and I tried to correct but it doesn't work.  Below are the list of errors and I also join these files :
  •  ./install.log
  • ./pom.xml
  • ./core/pom.xml
  • ./test/pom.xml
  • ./object-mapper/pom.xml
Any help is welcome, Thanks you!


Running me.prettyprint.cassandra.service.CassandraHostConfiguratorTest
11:19:39,174 ERROR CassandraHost:93 - Unable to resolve host h1
11:19:39,275 ERROR CassandraHost:93 - Unable to resolve host h2
11:19:39,290 ERROR CassandraHost:93 - Unable to resolve host h3
.........
Running me.prettyprint.cassandra.serializers.PrefixedSerializerTest
11:21:23,631 ERROR PrefixedSerializer:64 - Unprefixed value received, throwing exception...
11:21:23,643 ERROR PrefixedSerializer:64 - Unprefixed value received, throwing exception...
11:21:23,647 ERROR PrefixedSerializer:64 - Unprefixed value received, throwing exception...
11:21:23,651 ERROR PrefixedSerializer:64 - Unprefixed value received, throwing exception...
11:21:23,656 ERROR PrefixedSerializer:64 - Unprefixed value received, throwing exception...
..............
11:22:01,944 ERROR HConnectionManager:102 - Transport exception host to HConnectionManager: 127.0.0.1(127.0.0.1):9180
me.prettyprint.hector.api.exceptions.HectorTransportException: Unable to open transport to 127.0.0.1(127.0.0.1):9180 , java.net.ConnectException: Connection refused
        at me.prettyprint.cassandra.connection.client.HThriftClient.open(HThriftClient.java:185)
        at me.prettyprint.cassandra.connection.client.HThriftClient.open(HThriftClient.java:40)
        at me.prettyprint.cassandra.connection.ConcurrentHClientPool.createClient(ConcurrentHClientPool.java:179)
        at me.prettyprint.cassandra.connection.ConcurrentHClientPool.<init>(ConcurrentHClientPool.java:61)
        at me.prettyprint.cassandra.connection.RoundRobinBalancingPolicy.createConnection(RoundRobinBalancingPolicy.java:68)
        at me.prettyprint.cassandra.connection.HConnectionManager.addCassandraHost(HConnectionManager.java:95)
        at me.prettyprint.cassandra.connection.HConnectionManagerListenerTest.testOnAddCassandraHostFail(HConnectionManagerListenerTest.java:47)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:146)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
        at com.sun.proxy.$Proxy0.invoke(Unknown Source)
        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:145)
        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:70)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
Caused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused
        at org.apache.thrift.transport.TSocket.open(TSocket.java:183)
        at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81)
        at me.prettyprint.cassandra.connection.client.HThriftClient.open(HThriftClient.java:179)
        ... 36 more
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at org.apache.thrift.transport.TSocket.open(TSocket.java:178)
        ... 38 morr
...............
11:22:01,971 ERROR HConnectionManager:429 - MARK HOST AS DOWN TRIGGERED for host 127.0.0.1(127.0.0.1):9170
11:22:01,972 ERROR HConnectionManager:433 - Pool state on shutdown: <ConcurrentCassandraClientPoolByHost>:{127.0.0.1(127.0.0.1):9170}; IsActive?: true;
...........
11:22:01,982 ERROR HConnectionManager:429 - MARK HOST AS DOWN TRIGGERED for host 127.0.0.1(127.0.0.1):9170
11:22:01,983 ERROR HConnectionManager:433 - Pool state on shutdown: <ConcurrentCassandraClientPoolByHost>:{127.0.0.1(127.0.0.1):9170}; IsActive?: true;
............
11:22:06,242 ERROR HConnectionManager:59 - Could not start connection pool for host localhost(127.0.0.1):9170
................
11:22:45,779 ERROR HConnectionManager:429 - MARK HOST AS DOWN TRIGGERED for host 127.0.0.1(127.0.0.1):9170
11:22:45,779 ERROR HConnectionManager:433 - Pool state on shutdown: <ConcurrentCassandraClientPoolByHost>:{127.0.0.1(127.0.0.1):9170}; IsActive?: true;
...............
11:22:46,244 ERROR HConnectionManager:429 - MARK HOST AS DOWN TRIGGERED for host 127.0.0.1(127.0.0.1):9170
11:22:46,246 ERROR HConnectionManager:433 - Pool state on shutdown: <ConcurrentCassandraClientPoolByHost>:{127.0.0.1(127.0.0.1):9170}; IsActive?: true;
..............
11:22:46,270 ERROR HConnectionManager:429 - MARK HOST AS DOWN TRIGGERED for host 127.0.0.1(127.0.0.1):9170
11:22:46,270 ERROR HConnectionManager:433 - Pool state on shutdown: <ConcurrentCassandraClientPoolByHost>:{127.0.0.1(127.0.0.1):9170}; IsActive?: true;
.............
11:22:46,270 ERROR HConnectionManager:429 - MARK HOST AS DOWN TRIGGERED for host 127.0.0.1(127.0.0.1):9170
11:22:46,270 ERROR HConnectionManager:433 - Pool state on shutdown: <ConcurrentCassandraClientPoolByHost>:{127.0.0.1(127.0.0.1):9170}; IsActive?: true;
...............

11:22:46,284 ERROR HConnectionManager:102 - Transport exception host to HConnectionManager: 127.0.0.1(127.0.0.1):9180
me.prettyprint.hector.api.exceptions.HectorTransportException: Unable to open transport to 127.0.0.1(127.0.0.1):9180 , java.net.ConnectException: Connec
tion refused
        at me.prettyprint.cassandra.connection.client.HThriftClient.open(HThriftClient.java:185)
        at me.prettyprint.cassandra.connection.client.HThriftClient.open(HThriftClient.java:40)
        at me.prettyprint.cassandra.connection.ConcurrentHClientPool.createClient(ConcurrentHClientPool.java:179)
        at me.prettyprint.cassandra.connection.ConcurrentHClientPool.<init>(ConcurrentHClientPool.java:61)
        at me.prettyprint.cassandra.connection.RoundRobinBalancingPolicy.createConnection(RoundRobinBalancingPolicy.java:68)
        at me.prettyprint.cassandra.connection.HConnectionManager.addCassandraHost(HConnectionManager.java:95)
        at me.prettyprint.cassandra.connection.HConnectionManagerTest.testAddCassandraHostFail(HConnectionManagerTest.java:42)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:146)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
        at com.sun.proxy.$Proxy0.invoke(Unknown Source)
        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:145)
        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:70)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
Caused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused
        at org.apache.thrift.transport.TSocket.open(TSocket.java:183)
        at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81)
        at me.prettyprint.cassandra.connection.client.HThriftClient.open(HThriftClient.java:179)
        ... 36 more
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at org.apache.thrift.transport.TSocket.open(TSocket.java:178)
        ... 38 more
.............
Running me.prettyprint.hector.api.ddl.ComparatorTypeTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.111 sec
Running me.prettyprint.hector.api.ClockResolutionTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.232 sec
Running me.prettyprint.hector.api.KeyspaceCreationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.044 sec
Running me.prettyprint.hector.api.CompositeTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.527 sec

Results :

Failed tests:

Tests run: 322, Failures: 4, Errors: 0, Skipped: 4

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] hector ............................................ SUCCESS [0.804s]
[INFO] test .............................................. SUCCESS [2.108s]
[INFO] hector-core ....................................... FAILURE [7:28.065s]
[INFO] hector-object-mapper .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7:32.100s
[INFO] Finished at: Mon Feb 10 11:23:15 EST 2014
[INFO] Final Memory: 34M/877M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.1:test (default-test) on project hector-core: There are test failures.
[ERROR]
[ERROR] Please refer to /home/odiallo/Install/hector/core/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 :hector-core

Ousmane Diallo
pom.xml
core_pom.xml
test_pom.xml
objMap_pom.xml
install.log
Reply all
Reply to author
Forward
0 new messages