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

Use correct port for sstableloader #503

Merged
merged 2 commits into from May 24, 2016
Merged

Conversation

nastra
Copy link
Contributor

@nastra nastra commented May 24, 2016

Looks like ccm is connecting to the thrift port by default instead of the binary port 9042.

$ ccm node1 bulkload /tmp/dataset1/keyspace1/standard1/ -v
All host(s) tried for query failed (tried: /127.0.0.1:9160 (com.datastax.driver.core.exceptions.TransportException: [/127.0.0.1] Cannot connect))
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:9160 (com.datastax.driver.core.exceptions.TransportException: [/127.0.0.1] Cannot connect))
    at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:231)
    at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:77)
    at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1414)
    at com.datastax.driver.core.Cluster.init(Cluster.java:162)
    at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:333)
    at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:308)
    at com.datastax.driver.core.Cluster.connect(Cluster.java:250)
    at org.apache.cassandra.utils.NativeSSTableLoaderClient.init(NativeSSTableLoaderClient.java:70)
    at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:159)
    at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:104)

Also -p port can't be used because it complains about too many arguments:

$ ccm node1 bulkload -p 9042 /tmp/dataset1/keyspace1/standard1/

Too many arguments

@JeremiahDJordan
Copy link
Contributor

needs to be based on version. 2.1 is thrift still, don't remember if 2.2 is thrift or native.

@nastra
Copy link
Contributor Author

nastra commented May 24, 2016

2.2 already uses native according to https://issues.apache.org/jira/browse/CASSANDRA-8358

@ptnapoleon
Copy link
Contributor

+1

@ptnapoleon ptnapoleon merged commit 233bda0 into riptano:master May 24, 2016
@nastra nastra deleted the patch-1 branch May 24, 2016 17:25
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

Successfully merging this pull request may close these issues.

None yet

3 participants