Hi All I am new in Cassandra and got an assignment where I need to List all the available keyspaces in Cassandra and save to a .txt file
I have tried all possible codes and searched many sites but still I am unable to succeed.
I have tried below codes in order to save the available keyspaces in .txt file.
cqlsh -e 'DESCRIBE KEYSPACE firstkeyspace' > test.txt;
cqlsh -e "DESCRIBE KEYSPACE firstkeyspace" > pathtosomekeyspace.txt
cqlsh -e "DESC KEYSPACE firstkeyspace" > firstkeyspace_schema.txt;
cqlsh -e "DESC KEYSPACES" > firstkeyspace_schema.txt
I am getting error and unable to fix it.
SyntaxException: line 1:0 no viable alternative at input 'cqlsh' ([cqlsh]...)
I have also checked with single quote but still not working. Request you all to help me to solve this problem. Thanks in advance.