Tag: datastax node driver

在数据库查询完成之前,Cassandra nodejs eachRow返回

我使用Cassandra与nodejs来获取eachRow大表。 我需要在每一行插入数据,但由于某种原因,它不会等待查询,并在完成之前完成。 client.eachRow(query, [], { prepare: true, autoPage : true, fetchSize: 500 }, function(index, row) { // DB query / insert or update , function(err, result) { // Finish all rows. }); 有什么build议么?

公开在Kubernetes上运行的Cassandra

我正在Kubernetes上运行Cassandra(3个实例),并想将其暴露给外部,我的应用程序还没有在Kubernetes中。 所以我策划了一个负载平衡的服务,如下所示: apiVersion: v1 kind: Service metadata: namespace: getquanty labels: app: cassandra name: cassandra annotations: kubernetes.io/tls-acme: "true" spec: clusterIP: ports: – port: 9042 name: cql nodePort: 30001 – port: 7000 name: intra-node nodePort: 30002 – port: 7001 name: tls-intra-node nodePort: 30003 – port: 7199 name: jmx nodePort: 30004 selector: app: cassandra type: LoadBalancer 这是结果是: NAME […]