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

ClassCastException for Cassandra workload #55

Open
twavv opened this issue Apr 14, 2021 · 0 comments
Open

ClassCastException for Cassandra workload #55

twavv opened this issue Apr 14, 2021 · 0 comments

Comments

@twavv
Copy link

twavv commented Apr 14, 2021

java -jar yb-sample-apps.jar --workload CassandraKeyValue --nodes 127.0.0.1:9042
0 [main] INFO com.yugabyte.sample.Main  - Starting sample app...
66 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Using a randomly generated UUID : 6eff3463-6bc5-4458-a7e7-b60659f0eaf9
73 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - App: CassandraKeyValue
74 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Run time (seconds): -1
74 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Adding node: 127.0.0.1:9042
74 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Num reader threads: 24, num writer threads: 2
75 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Num unique keys to insert: 1000000
75 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Num keys to update: -1000001
75 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Num keys to read: -1
75 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Value size: 0
75 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Restrict values to ASCII strings: false
75 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Perform sanity check at end of app run: false
75 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Table TTL (secs): -1
75 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Local reads: false
75 [main] INFO com.yugabyte.sample.common.CmdLineOpts  - Read only load: false
Exception in thread "main" java.lang.ClassCastException: class com.datastax.driver.core.TranslatedAddressEndPoint cannot be cast to class java.net.InetSocketAddress (com.datastax.driver.core.TranslatedAddressEndPoint is in unnamed module of loader 'app'; java.net.InetSocketAddress is in module java.base of loader 'bootstrap')
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
        at com.yugabyte.sample.apps.AppBase.createCassandraClient(AppBase.java:271)
        at com.yugabyte.sample.apps.AppBase.getCassandraClient(AppBase.java:138)
        at com.yugabyte.sample.apps.AppBase.createTablesIfNeeded(AppBase.java:537)
        at com.yugabyte.sample.Main.run(Main.java:167)
        at com.yugabyte.sample.Main.main(Main.java:247)

Happens with current release, but works fine with release 1.3.0 (didn't check anything in between).

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