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

Andres de la Peña commented on CASSANDRA-15731:
-----------------------------------------------

If I'm right that syntax is not supported, and the {{-node}} option is meant to 
only accept addresses without port. It is only possible to specify a single 
common port with the {{-port}} option:
{code}
./tools/bin/cassandra-stress write n=10 -port native=9042 -node 
127.0.0.1,127.0.0.2
{code}
I think that being able to somehow specify per-node ports might be useful, but 
since it's a new feature it shouldn't be included in 4.0.

> cassandra-stress fails when we  specify a port per node
> -------------------------------------------------------
>
>                 Key: CASSANDRA-15731
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15731
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Alan Boudreault
>            Assignee: Andres de la Peña
>            Priority: Normal
>             Fix For: 4.0-beta
>
>
> {code}
> $ ./tools/bin/cassandra-stress write n=10 -node 127.0.0.1:9046,127.0.0.1:9048
> ...
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Failed to add 
> contact point: 127.0.0.1:9046
>       at 
> org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:148)
>       at 
> org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:116)
>       at 
> org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:66)
>       at 
> org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:156)
>       at org.apache.cassandra.stress.StressAction.run(StressAction.java:56)
>       at org.apache.cassandra.stress.Stress.run(Stress.java:143)
>       at org.apache.cassandra.stress.Stress.main(Stress.java:62)
> Caused by: java.lang.IllegalArgumentException: Failed to add contact point: 
> 127.0.0.1:9046
>       at 
> com.datastax.driver.core.Cluster$Builder.addContactPoint(Cluster.java:922)
>       at 
> org.apache.cassandra.stress.util.JavaDriverClient.connect(JavaDriverClient.java:131)
>       at 
> org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:139)
>       ... 6 more
> Caused by: java.net.UnknownHostException: 127.0.0.1:9046: invalid IPv6 address
>       at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1341)
>       at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1298)
>       at 
> com.datastax.driver.core.Cluster$Builder.addContactPoint(Cluster.java:919)
>       ... 8 more
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to