Installed --> datastax-community-64bit_2.2.7
Created --> Keyspace = INVENTORY and Tablename = Stocks
Able to pump in total 858 , 469 data records
System error to SELECT total of 858 , 469 data records
SELECT * FROM Stocks;
Unable to execute CQL script on localhost: [localhost/127.0.0.1:9042] Operation timed out
Here is Cassandra Keyspace and Table script creation:
CREATE KEYSPACE INVENTORY WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 1};
USE Inventory;
CREATE COLUMNFAMILY Stocks ( Id varchar, ProductId varchar, DealerGroupId varchar, SupplierId varchar, SerialNo1 varchar, SerialNo2 varchar, SerialNo3 varchar, PIN1 varchar, PIN2 varchar, PIN3 varchar, PIN4 varchar, PIN5 varchar, PIN6 varchar, ExpiryDate varchar, GRNId varchar, ProvisionedDate varchar, ModifiedDate varchar, MStockStatusId varchar, IsIntermediate varchar, ReStockOrderId varchar, ReturnRequestId varchar, AllocationOrderId varchar, PRIMARY KEY ((Id));
0
votes
What if I am using Datastax DevCenter 1.5.0 --> an GUI interface to execute SELECT Queries ? Where I can adjust or configure the time out issue ?
– Douglas Foong
2 Answers
1
votes
0
votes
I received Connection timeout while creating my first Keyspace itself. After lots of testing, i finally came upon a solution - follow the below steps in cqlsh
desc keyspaces --- This will list all system keyspaces present
use system_schema; --- Go to any keyspace, here system_schema
cqlsh:system_schema> CREATE KEYSPACE ksp1 ... WITH REPLICATION = { ... 'class' : 'SimpleStrategy', ... 'replication_factor' : 1 ... }; ------------------- This will create 'ksp1'
cqlsh:system_schema> desc keyspaces cycling system_schema system_auth system system_distributed system_traces
cqlsh:system_schema> use cycling;
Thanks,