0

cassndra 用の datastax ODBC ドライバーをインストールしました。また、cql 3 を使用してキースペースといくつかのテーブルを作成しました。しかし、ODBC ドライバーはそれらのテーブルを表示しません。また、odbc のドキュメントでは、ドライバーが現在バージョン 3.0 の Cassandra Query Language (CQL3) をサポートしておらず、ドライバーが CQL 3 で定義されているキースペースと列ファミリーを認識しないことを読みました。そのため、cql 2 を使用するために使用していますドライバーのドキュメントで提案されている次のコマンド:

...\cqlsh” -2

しかし、これは「cqlsh:エラー:そのようなオプションはありません:-2」というエラーを出しています

誰でもこれで私を助けることができますか?

4

2 に答える 2

2

cql2 は廃止され、Cassandra 2.0 で cslqh から削除されました。3.0 ではサーバーからも削除されます。

cql3 のサポートが ODBC ドライバーにいつ追加されるかはわかりません。

于 2014-01-19T14:14:58.917 に答える
1

以前の仕様/バージョンを使用して cqlsh を開始する方法に関するドキュメントは正しくありません... -2 の代わりに --cqlversion を使用する必要があります (以下の注を参照)。ただし、jbellis の回答で述べたように、cql2 のサポートは cassandra の以降のバージョンから削除されました。

CQL Shell for Apache Cassandra

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -C, --color           Always use color output
  --no-color            Never use color output
  -u USERNAME, --username=USERNAME
                        Authenticate as user.
  -p PASSWORD, --password=PASSWORD
                        Authenticate using password.
  -k KEYSPACE, --keyspace=KEYSPACE
                        Authenticate to the given keyspace.
  -f FILE, --file=FILE  Execute commands from FILE, then exit
  -t TRANSPORT_FACTORY, --transport-factory=TRANSPORT_FACTORY
                        Use the provided Thrift transport factory function.
  --debug               Show additional debugging information
  --cqlversion=CQLVERSION
                        Specify a particular CQL version (default: 3.1.1).
                        Examples: "3.0.3", "3.1.0"
  -e EXECUTE, --execute=EXECUTE
                        Execute the statement and quit.
于 2014-08-19T19:38:46.690 に答える