2017-09-18 18 views
0

Cassandraクラスタとcassandra-sharp .Netクライアントドライバを接続しようとしましたが、"有効なエンドポイントが見つかりません"例外が発生します。それはCassandraのシャープgithubの上にあるように、私は(https://github.com/pchalamet/cassandra-sharp)サンプル・クライアント・コードを実行すると、私は、クラスタへの接続を開いた後、任意の操作上のエラーを取得し、そのような本コマンドを実行すると:Cassandra-sharp例外 "有効なエンドポイントが見つかりません"

using (ICluster cluster = ClusterManager.GetCluster("Cassandra")) 
{ 
    ICqlCommand cmd = cluster.CreatePocoCommand(); 
    Task t = cmd.Execute("Select * from system_schema.keyspaces").AsFuture(); 
...} 

ときIこの行のデバッグを開始すると、ツリービューのすべてのエンドポイントが表示されます。ICluster - > SingleConnectionPerEndpointStrategy - > _endpointStrategy - > NearestEndpointStrategy - > bannedEndpoints(自分のIPアドレスのリストを含む)、0エンドポイントは正常です。

また、cqlplus.exeユーティリティ(cassandra-sharpドライババイナリから)でホストに接続しようとすると、同じエラーが発生します。 /dbglogフラグを使えば、このようなメッセージを示しています

Creating connection to 192.168.1.3

Readyfying connection for 192.168.1.3

Starting writing frame for stream [email protected]

Done writing frame for stream [email protected]

Failed building connection System.AggregateException: One or more errors occurred. ---> System.OperationCanceledException: The operation was canceled.

--- End of inner exception stack trace ---

at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)

at CassandraSharp.Transport.LongRunningConnection.ReadifyConnection() in ...\LongRunningConnection.cs:line 444

... Error creating transport for endpoint 192.168.1.3 : One or more errors occurrd.

... - marking 192.168.1.3 for recovery

Command execution failed with error: Can't find any valid endpoint

私はカサンドラ・シャープドライバ3.7.0とカサンドラバージョン3.11.0の最新バージョンを使用しています。私のApp.configファイルはOKのようです。コードは理想的なので、クラスタの構成が間違っている可能性があります。ネットワークは1つのスイッチでシンプルで、すべてのpingが実行され、すべてのCassandraポートはクライアントPCのWindowsファイアウォールで開かれます。設定ファイルから必要な追加情報を追加できます。cassandra.yaml、f.e.私はPropertyFileSnitchを使用しています。 cqlshコンソールはすべて正常に動作します。ノードデールのステータスは、アップ&ノーマルです。

クラスタの設定や.Netドライバの問題、それを解決する方法は何ですか?カサンドラの専門家の助けが必要です。ありがとうございました!

答えて

関連する問題