Hi,

The the exact command you ran (stress-tool with options) could be useful to
help you on that.

However, Im able to create keyspace, tables and insert data using cqlsh and
> it is replicating fine to all the nodes.


Having the schema might be useful too.

Did you ran the cqlsh and the stress-tool from the same server ? If not,
you might want to check the port you use (9042/9160/...) are open.
Also, cqlsh uses local_one by default too. If both commands were run
against the same DC, from the same machine they should behave the same way.
Are they ?

C*heers,

-----------------
Alain

The Last Pickle
http://www.thelastpickle.com


2016-01-22 9:57 GMT+01:00 Bhuvan Rawal <bhu1ra...@gmail.com>:

> Hi,
>
> i have created a POC cluster with 2 DC , each having 4 nodes with DSE
> 4.8.1 installed.
>
> On issuing cassandra stress im getting an error  and data is not being
> inserted:
> *com.datastax.driver.core.exceptions.UnavailableException: Not enough
> replica available for query at consistency LOCAL_ONE (1 required but only 0
> alive)*
>
> However, Im able to create keyspace, tables and insert data using cqlsh
> and it is replicating fine to all the nodes.
>
> Details of the cluster can be found below (all the nodes seem to be alive
> and kicking):
>
> $ nodetool status Datacenter: Analytics =====================
> Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load
> Tokens Owns Host ID Rack UN 10.41.55.17 428.5 KB 256 ?
> 39d6d585-e641-4046-9d0b-797356597b5e rack1 UN 10.41.55.19 404.44 KB 256 ?
> 69edf930-efd9-4d74-a798-f3d4ac02e516 rack1 UN 10.41.55.18 423.21 KB 256 ?
> b74bab13-09b2-4760-bce9-c8ef05e50f6d rack1 UN 10.41.55.20 683.23 KB 256 ?
> fb5c4fed-6e1e-4ea8-838d-358106906830 rack1 Datacenter: Cassandra
> ===================== Status=Up/Down |/
> State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID
> Rack UN 10.41.55.15 209.4 KB 256 ? ffc3b9a0-5d5c-4a3d-a99e-49d255731278
> rack1 UN 10.41.55.21 227.44 KB 256 ? c68deba4-b9a2-43fc-bb13-6af74c88c210
> rack1 UN 10.41.55.23 222.71 KB 256 ? 8229aa87-af00-48fa-ad6b-3066d3dc0e58
> rack1 UN 10.41.55.22 218.72 KB 256 ? c7ba84fd-7992-41de-8c88-11574a72db99
> rack1
>
> Regards,
> Bhuvan Rawal
>
>
>

Reply via email to