Cassandra-stress混合压测报错:无效参数问题排查请求
Troubleshooting "Invalid parameter us..." Error in Cassandra-Stress Mixed Workload Command
Let's break down what's causing that frustrating "Invalid parameter us..." error in your cassandra-stress command—it's a tiny syntax slip-up that's easy to fix.
The error is directly pointing to the user profile=./cassandra.yaml segment of your command. Cassandra-stress has no user profile parameter; you've accidentally added an extra, unnecessary user keyword here. The correct way to specify a custom workload profile is simply profile=./cassandra.yaml.
Here's your corrected command with that extra user removed (all other valid parameters are preserved):
~/cassandra-stress mixed ratio(write=5,read=1) n=100000 profile=./cassandra.yaml duration=15m 'ops(insert=10)' cl=QUORUM -rate threads=100 -mode native cql3 port=9042 user=cassandra password=cassandra -transport truststore=/home/../../truststore.jks truststore-password="*********" keystore=/home/../../../cassandra-keystore.jks keystore-password="*******" ssl-protocol=****** ssl-alg=******* ssl-ciphers=************* -node $NODES -port native=9042 jmx=7199
A couple quick follow-up checks to ensure everything runs smoothly:
- Verify that your
cassandra.yamlprofile file exists at the specified path and uses valid cassandra-stress syntax (it should properly define your target schema and operations). - Note that your authentication username is already correctly set later in the command with
user=cassandra, so there's no need to repeat any user-related flags before the profile parameter.
内容的提问来源于stack exchange,提问作者Arun
相关产品推荐
相关产品推荐

