cqlsh

cassandra version Error

梦想的初衷 提交于 2019-12-11 06:07:28
问题 Hi anyone instruct me which version of cassandra should I use to run cqlsh-3.4.3, So that i will be able to run GROUP BY queries. Currently My environment is [cqlsh 5.0.1 | Cassandra 3.9 | CQL spec 3.4.2 | Native protocol v4] Error on trying bin/cqlsh --cqlversion=3.4.3 Connection error: ('Unable to connect to any servers', {'127.0.0.1': ProtocolError("cql_version '3.4.3' is not supported by remote (w/ native protocol). Supported versions: [u'3.4.2']",)}) Please Suggest.Thanks. Same Error

get_num_processes() takes no keyword arguments (CSV <-> CASSANDRA)

眉间皱痕 提交于 2019-12-11 02:37:34
问题 I want to export a cassandra DB to a csv file, but cqlsh:marvel> SELECT * FROM personajes ; name | skills ------------+-------- Iron Man | Tech Spider Man | Lab cqlsh:marvel> COPY personajes (name, skills) TO 'temp.csv'; get_num_processes() takes no keyword arguments Tested in: [cqlsh 5.0.1 | Cassandra 2.1.14 | CQL spec 3.2.1 | Native protocol v3] [cqlsh 5.0.1 | Cassandra 3.0.5 | CQL spec 3.4.0 | Native protocol v4] Thank you 回答1: Delete pylib/cqlshlib/copyutil.so and copyutil.c (if you have

Cassandra Copy command-Connection heartbeat failure

ε祈祈猫儿з 提交于 2019-12-11 02:07:20
问题 I am getting following error in Cqlsh. The copy command runs for a few seconds and then stops. Look forward to your help. Thanks, Connected to DRM at 127.0.0.1:9042. [cqlsh 5.0.1 | Cassandra 2.1.8 | CQL spec 3.2.0 | Native protocol v3] Use HELP for help. cqlsh> use myworld; cqlsh:myworld> copy citizens (id, first_name, last_name, house_no, street, city, country,ssn,phone,bank_name,account_no) from '/home/rashmi/Documents/MyData/Road/PeopleData-18-Jun-1.txt'; Processed 110000 rows; Write:

Cassandra cqlsh query fails with no error

核能气质少年 提交于 2019-12-11 01:46:46
问题 I have been trying to run a query like this: SELECT COUNT(*) FROM sensors WHERE sensor_id = 1 and date = '2014-11'; on a column family. The WHERE clause filters down to a partition key with around 2 million columns. I expect to get a count result of approx. 2 million, but instead I get this error: errors={}, last_host=[THE_IP_OF_MY_SERVER] if I run the query to get the columns it returns the data just fine, but it cannot return the count. I understand the performance issues such count query

error on /127.0.0.1 connection (com.datastax.driver.core.TransportException: [/127.0.0.1] Unexpected exception triggered), no more host to try

耗尽温柔 提交于 2019-12-11 00:58:59
问题 I am trying to connect Cassandra with Java under Windows Environment. Following are application/OS/lib version. -Windows 7 -Java 7 -Cassandra 2.1.12 Code: Cluster clst; Session ses; clst= Cluster.builder().addContactPoint("127.0.0.1").withPort(9042).build(); Cassandra and nodetool is running. Below is the status of nodetool. C:\Program Files\DataStax Community\apache-cassandra\bin>nodetool -h localhost status Starting NodeTool Datacenter: datacenter1 ======================== Status=Up/Down |/

custom cassandra / cqlsh time_format

半城伤御伤魂 提交于 2019-12-10 18:46:00
问题 System: CentOS 6.7 x86_64 cqlsh 5.0.1 | Cassandra 2.2.1 | CQL spec 3.3.0 I'm having problem inserting (copy csv file) timestamp field with the format '%d-%m-%Y %H:%M:%S' , This format not supported by default, so I've created it manually in the ~/.cassandra/cqlshrc file: [ui] time_format = %d-%m-%Y %H:%M:%S and started cqlsh again, but I'm still unable to insert: system@cqlsh> insert into nir.nir_test (END_DATE) values ('01-09-2015 18:55:50'); InvalidRequest: code=2200 [Invalid query] message

Cassandra does not start cause of an AbstractMethodError with JDK to 8u161?

可紊 提交于 2019-12-09 14:03:44
问题 My Cassandra won't start on a new installed root... /var/log/cassandra/debug.log prints: ERROR [main] 2018-02-03 07:13:46,463 CassandraDaemon.java:706 - Exception encountered during startup java.lang.AbstractMethodError: org.apache.cassandra.utils.JMXServerUtils$Exporter.exportObject root@srv49023:~# java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode) root@srv49023:~# systemctl status

How to connect Cassandra to localhost using cqlsh?

喜欢而已 提交于 2019-12-09 05:04:20
问题 I set rpc_port to the public IP address, and now I can connect to Cassandra just fine from an outside server. However, I cannot connect from the Cassandra server itself, using cqlsh I am getting an error.Thar are: Connection error: Could not connect to localhost:9160 Is there a configuration, I can change to be able to connect from the server itself ? 回答1: Check the cassandra.yaml file on the line with rpc_port : normally by default = 9160 Login to the machine hosting cassandra Try cqlsh 127

Pickling Error running COPY command: CQLShell on Windows

做~自己de王妃 提交于 2019-12-09 00:41:21
问题 We're running a copy command in CQLShell on Windows 7. At first, we ran into an "IMPROPER COPY COMMAND": COPY ourdata(data_time, data_ID, dataBlob) FROM 'TestData.csv' WITH HEADER = true; We later started receiving this error after running the same command: Error starting import process: Can't pickle <type 'thread.lock'>: it's not found as thread.lock can only join a started process cqlsh:testkeyspace> Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Program

Cqlsh with client to node SSL encryption

拥有回忆 提交于 2019-12-08 03:18:55
问题 Am trying to enable client to node SSL encryption in my DSE server. My cqlshrc file looks like below [connection] hostname = 127.0.0.1 port = 9160 factory = cqlshlib.ssl.ssl_transport_factory [ssl] certfile = /path/to/dse_node0.cer validate = true ;; Optional, true by default. [certfiles] ;; Optional section, overrides the default certfile in the [ssl] section. 1.2.3.4 = /path/to/dse_node0.cer When I tried to login into cqlsh shell then am getting the below error Connection error: Could not