You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to set up a cassandra cluster and keyspace using Apache-Gora Cassandra mapping but the operation repeatedly fails as the my cassandra db requires a username and password. I am using https://gora.apache.org/current/gora-cassandra.html for set up.
My stack trace is given below. I would appreciate any assistance on how to resolve this issue. I am using gora-cassandra-0.3 that depends on hector-client 1.1.0. From the dep tree
InvalidRequestException(why:You have not logged in)
at org.apache.cassandra.thrift.Cassandra$describe_keyspace_result.read(Cassandra.java:26589)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:80)
at org.apache.cassandra.thrift.Cassandra$Client.recv_describe_keyspace(Cassandra.java:1169)
at org.apache.cassandra.thrift.Cassandra$Client.describe_keyspace(Cassandra.java:1156)
at me.prettyprint.cassandra.service.AbstractCluster$8.execute(AbstractCluster.java:309)
at me.prettyprint.cassandra.service.AbstractCluster$8.execute(AbstractCluster.java:1)
at me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:103)
at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:258)
at me.prettyprint.cassandra.service.AbstractCluster.describeKeyspace(AbstractCluster.java:319)
at org.apache.gora.cassandra.store.CassandraClient.checkKeyspace(CassandraClient.java:113)
at org.apache.gora.cassandra.store.CassandraClient.initialize(CassandraClient.java:86)
at org.apache.gora.cassandra.store.CassandraStore.initialize(CassandraStore.java:85)
at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:222)
at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:85)
at org.apache.nutch.crawl.Crawler.run(Crawler.java:181)
at org.apache.nutch.crawl.Crawler.run(Crawler.java:335)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.Crawler.main(Crawler.java:416)
The text was updated successfully, but these errors were encountered:
I have been trying to set up a cassandra cluster and keyspace using Apache-Gora Cassandra mapping but the operation repeatedly fails as the my cassandra db requires a username and password. I am using https://gora.apache.org/current/gora-cassandra.html for set up.
Looking at the source code, I can see that the no authentication credentials are being passed ThriftKeyspaceDefinition.
https://github.com/hector-client/hector/blob/master/core/src/main/java/me/prettyprint/cassandra/service/AbstractCluster.java#L130
My stack trace is given below. I would appreciate any assistance on how to resolve this issue. I am using gora-cassandra-0.3 that depends on hector-client 1.1.0. From the dep tree
[INFO] +- org.apache.gora:gora-cassandra:jar:0.3:compile
[INFO] | +- org.apache.cassandra:cassandra-thrift:jar:1.1.2:compile
[INFO] | | - org.apache.thrift:libthrift:jar:0.7.0:compile
[INFO] | +- org.hectorclient:hector-core:jar:1.1-0:compile
[INFO] | | +- commons-pool:commons-pool:jar:1.5.3:compile
InvalidRequestException(why:You have not logged in)
at org.apache.cassandra.thrift.Cassandra$describe_keyspace_result.read(Cassandra.java:26589)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:80)
at org.apache.cassandra.thrift.Cassandra$Client.recv_describe_keyspace(Cassandra.java:1169)
at org.apache.cassandra.thrift.Cassandra$Client.describe_keyspace(Cassandra.java:1156)
at me.prettyprint.cassandra.service.AbstractCluster$8.execute(AbstractCluster.java:309)
at me.prettyprint.cassandra.service.AbstractCluster$8.execute(AbstractCluster.java:1)
at me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:103)
at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:258)
at me.prettyprint.cassandra.service.AbstractCluster.describeKeyspace(AbstractCluster.java:319)
at org.apache.gora.cassandra.store.CassandraClient.checkKeyspace(CassandraClient.java:113)
at org.apache.gora.cassandra.store.CassandraClient.initialize(CassandraClient.java:86)
at org.apache.gora.cassandra.store.CassandraStore.initialize(CassandraStore.java:85)
at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:222)
at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:85)
at org.apache.nutch.crawl.Crawler.run(Crawler.java:181)
at org.apache.nutch.crawl.Crawler.run(Crawler.java:335)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.Crawler.main(Crawler.java:416)
The text was updated successfully, but these errors were encountered: