how to load schema file into Cassandra with cqlsh

喜你入骨 提交于 2019-12-03 08:05:32

cqlsh takes a file to execute via the -f or --file option, not as a positional argument (like the host and port), so the correct form would be:

python "C:\Program Files (x86)\DataStax Community\apache-cassandra\bin\cqlsh" localhost 9160 -f mySchemaFile

Note: I'm not 100% sure about whether you'd use -f or \f in Windows.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!