[ 
https://issues.apache.org/jira/browse/CASSANDRA-16529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17305197#comment-17305197
 ] 

Adam Holmberg commented on CASSANDRA-16529:
-------------------------------------------

Thanks. 
ccm PR for your consideration: https://github.com/riptano/ccm/pull/731

> cassandra-stress fails when node with port specified
> ----------------------------------------------------
>
>                 Key: CASSANDRA-16529
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16529
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tool/stress
>            Reporter: Adam Holmberg
>            Assignee: Adam Holmberg
>            Priority: Normal
>             Fix For: 4.0-rc
>
>
> When running {{cassandra-stress .... -node 127.0.0.1:53439}}
> {noformat}
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Failed to add 
> contact point: 127.0.0.1:53439
>       at 
> org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:146)
>       at 
> org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:114)
>       at 
> org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:66)
>       at 
> org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:154)
>       at org.apache.cassandra.stress.StressAction.run(StressAction.java:56)
>       at org.apache.cassandra.stress.Stress.run(Stress.java:155)
>       at org.apache.cassandra.stress.Stress.main(Stress.java:63)
> Caused by: java.lang.IllegalArgumentException: Failed to add contact point: 
> 127.0.0.1:53439
>       at 
> com.datastax.driver.core.Cluster$Builder.addContactPoint(Cluster.java:943)
>       at 
> org.apache.cassandra.stress.util.JavaDriverClient.connect(JavaDriverClient.java:134)
>       at 
> org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:137)
>       ... 6 more
> Caused by: java.net.UnknownHostException: 127.0.0.1:53439: invalid IPv6 
> address
>       at java.net.InetAddress.getAllByName(InetAddress.java:1170)
>       at java.net.InetAddress.getAllByName(InetAddress.java:1127)
>       at 
> com.datastax.driver.core.Cluster$Builder.addContactPoint(Cluster.java:939)
>       ... 8 more
> {noformat}
> It may work using {{-port native=53439}}, but that would not be suitable for 
> {{-node ... whitelist}} when nodes are on different ports.
> I'm not sure if {{host:port}} ever worked here, but {{ccm}} [seems to think 
> it 
> should|https://github.com/riptano/ccm/blob/6a519280e1775fe8777f93310b93b3ccb1ffd976/ccmlib/cluster.py#L645],
>  and it's handled 
> [elsewhere|https://github.com/apache/cassandra/blob/c591978f4d265e42d0132418005ba63a99278c75/tools/stress/src/org/apache/cassandra/stress/settings/SettingsNode.java#L102]
>  in the tool.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to