While performing an INSERT with CL as LOCAL_ONE why the below error occur?
An error occurred on line 3: Provided value LOCAL_ONE is not allowed for Write Consistency Level (disallowed values are: [ANY, ONE, LOCAL_ONE])
GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.
While performing an INSERT with CL as LOCAL_ONE why the below error occur?
An error occurred on line 3: Provided value LOCAL_ONE is not allowed for Write Consistency Level (disallowed values are: [ANY, ONE, LOCAL_ONE])
DataStax Astra databases include guardrails that enforce best practices so new (and even experienced) developers are off to a good start when using Apache Cassandra.
One of those best practices is to use a strong consistency level when writing data. The recommendation is to use LOCAL_QUORUM
or QUORUM
to mitigate against data loss in the event of a replica being unavailable.
For more information, see the DataStax Astra documentation. Cheers!
6 People are following this question.
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2022 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use