Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to Cassandra does not ask for credentials #668

Open
krishnanand opened this issue Sep 18, 2014 · 0 comments
Open

Connecting to Cassandra does not ask for credentials #668

krishnanand opened this issue Sep 18, 2014 · 0 comments

Comments

@krishnanand
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant