[ https://issues.apache.org/jira/browse/CASSANDRA-8411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14232818#comment-14232818 ]
Benedict edited comment on CASSANDRA-8411 at 12/3/14 10:45 AM: --------------------------------------------------------------- Looks likely to be a trivial bug when providing n=1 with all other parameters default - since this is a stress tool, I don't think anybody has tried running it with only 1 insert before! If you want it to work in the meantime, try providing n=1000, say was (Author: benedict): Looks likely to be a trivial bug when providing n=1 with all other parameters default - since this is a stress tool, I don't think anybody has tried running it with only 1 insert before! > Cassandra stress tool fails with NotStrictlyPositiveException on example > profiles > --------------------------------------------------------------------------------- > > Key: CASSANDRA-8411 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8411 > Project: Cassandra > Issue Type: Bug > Components: Tools > Environment: Linux Centos > Reporter: Igor Meltser > Priority: Trivial > > Trying to run stress tool with provided profile fails: > dsc-cassandra-2.1.2/tools $ ./bin/cassandra-stress user n=1 > profile=cqlstress-example.yaml ops\(insert=1\) -node .... > INFO 06:21:35 Using data-center name 'datacenter1' for > DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct > datacenter name with DCAwareRoundRobinPolicy constructor) > Connected to cluster: Benchmark Cluster > INFO 06:21:35 New Cassandra host /....:9042 added > Datatacenter: datacenter1; Host: /.....; Rack: rack1 > Datatacenter: datacenter1; Host: /....; Rack: rack1 > Datatacenter: datacenter1; Host: ..../....; Rack: rack1 > INFO 06:21:35 New Cassandra host ..../....:9042 added > INFO 06:21:35 New Cassandra host /....:9042 added > Created schema. Sleeping 3s for propagation. > Exception in thread "main" > org.apache.commons.math3.exception.NotStrictlyPositiveException: standard > deviation (0) > at > org.apache.commons.math3.distribution.NormalDistribution.<init>(NormalDistribution.java:108) > at > org.apache.cassandra.stress.settings.OptionDistribution$GaussianFactory.get(OptionDistribution.java:418) > at > org.apache.cassandra.stress.generate.SeedManager.<init>(SeedManager.java:59) > at > org.apache.cassandra.stress.settings.SettingsCommandUser.getFactory(SettingsCommandUser.java:78) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:61) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > The tool is 2.1.2 version, but the tested Cassandra is 2.0.8 version -- This message was sent by Atlassian JIRA (v6.3.4#6332)