cqlsh

Cassandra `COPY FROM`unable to coerce GMT date string to a formatted date (long)

老子叫甜甜 提交于 2019-12-01 21:03:25
I have been trying to use COPY FROM to insert into a Cassandra table that has a timestamp type column. However, I encountered the following error: code=2200 [Invalid query] message="unable to coerce '2015-03-06 18:11:33GMT' to a formatted date (long)" Aborting import at record #3. Previously-inserted values still present. 0 rows imported in 0.211 seconds. The content of the CSV file was actually created with a COPY TO command. My TZ environment variable has been set to GMT . I did some searching and found a post here that mentioned using Z instead of GMT as the timezone in the data string, i.e

PicklingError when copying a very large cassandra table using cqlsh

感情迁移 提交于 2019-11-30 23:02:34
When I try to copy a table to cassandra using the command: copy images from 'images.csv' I get the error: 'PicklingError: Can't pickle <class 'cqlshlib.copyutil.ImmutableDict'>: attribute lookup cqlshlib.copyutil.ImmutableDict failed' I have successfully imported all of my other tables, but this one is not working. The only difference with this one is that it contains large binary blobs for images. Here is a sample row from the csv file: b267ba01-5420-4be5-b962-7e563dc245b0,,0x89504e...[large binary blob]...426082,0,7e700538-cce3-495f-bfd2-6a4fa968bdf6,pentium_e6600,01fa819e-3425-47ca-82aa

Cassandra - Delete not working

自闭症网瘾萝莉.ら 提交于 2019-11-30 20:16:26
Sometimes; when I perform a DELETE; it doesn't work. My config : [cqlsh 5.0.1 | Cassandra 3.0.3 | CQL spec 3.4.0 | Native protocol v4] cqlsh:my_db> SELECT * FROM conversations WHERE user_id=120 AND conversation_id=2 AND peer_type=1; user_id | conversation_id | peer_type | message_map ---------+-----------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

How do you create the first user in Cassandra DB

允我心安 提交于 2019-11-30 17:24:16
How does one create the first user in a cassandra database? I tried: CREATE USER username WITH PASSWORD ""; and its says: Bad Request: Only superusers are allowed to perform CREATE USER queries But I have never created a user before this attempt, so how do you create the first user in a cassandra database? This seems a little strange because it's like a chicken and egg problem, but people use Cassandra so I am sure there must be a solution somewhere. Once you have enabled Authentication and Authorization, you can log-in (to your local Cassandra instance) as the default Cassandra admin user

Cassandra timeout cqlsh query large(ish) amount of data

。_饼干妹妹 提交于 2019-11-30 17:13:56
I'm doing a student project involving building and querying a Cassandra data cluster. When my cluster load was light ( around 30GB ) my queries ran without a problem, but now that it's quite a bit bigger (1/2TB) my queries are timing out. I thought that this problem might arise, so before I began generating and loading test data I had changed this value in my cassandra.yaml file: request_timeout_in_ms (Default: 10000 ) The default timeout for other, miscellaneous operations. However, when I changed that value to like 1000000, then cassandra seemingly hung on startup -- but that could've just

How to configure cassandra for remote connection

為{幸葍}努か 提交于 2019-11-30 11:07:59
问题 I am trying to configure Cassandra Datastax Community Edition for remote connection on windows, Cassandra Server is installed on a Windows 7 PC, With the local CQLSH it connects perfectly to the local server. But when i try to connect with CQLSH from another PC in the same Network, i get this error message: Connection error: ('Unable to connect to any servers', {'MYHOST': error(10061, "Tried connecting to [('HOST_IP', 9042)]. Last error: No connection could be made because the target machine

Cassandra cqlsh Unable to connect to any servers - 127.0.0.1:9160 (closed)> is already closed

本秂侑毒 提交于 2019-11-30 08:14:50
I installed Cassandra on OSX. When trying to run cqlsh from /bin/, I get the following error: > Connection error: ('Unable to connect to any servers', {'127.0.0.1': > ConnectionShutdown('Connection <AsyncoreConnection(4522252560) > 127.0.0.1:9160 (closed)> is already closed',)}) I had difficulty installing Cassandra, and had used brew install cassandra, installed DSE from datastax, and downloaded a binary from Apache. Peter Dietz I think the issue was the result of having a previous installation that wasn't properly uninstalled. My user .cassandra directory had some default configs, that must

How do you create the first user in Cassandra DB

陌路散爱 提交于 2019-11-30 01:00:20
问题 How does one create the first user in a cassandra database? I tried: CREATE USER username WITH PASSWORD ""; and its says: Bad Request: Only superusers are allowed to perform CREATE USER queries But I have never created a user before this attempt, so how do you create the first user in a cassandra database? This seems a little strange because it's like a chicken and egg problem, but people use Cassandra so I am sure there must be a solution somewhere. 回答1: Once you have enabled Authentication

Cassandra timeout cqlsh query large(ish) amount of data

江枫思渺然 提交于 2019-11-30 00:42:51
问题 I'm doing a student project involving building and querying a Cassandra data cluster. When my cluster load was light ( around 30GB ) my queries ran without a problem, but now that it's quite a bit bigger (1/2TB) my queries are timing out. I thought that this problem might arise, so before I began generating and loading test data I had changed this value in my cassandra.yaml file: request_timeout_in_ms (Default: 10000 ) The default timeout for other, miscellaneous operations. However, when I

How to configure cassandra for remote connection

◇◆丶佛笑我妖孽 提交于 2019-11-29 23:19:18
I am trying to configure Cassandra Datastax Community Edition for remote connection on windows, Cassandra Server is installed on a Windows 7 PC, With the local CQLSH it connects perfectly to the local server. But when i try to connect with CQLSH from another PC in the same Network, i get this error message: Connection error: ('Unable to connect to any servers', {'MYHOST': error(10061, "Tried connecting to [('HOST_IP', 9042)]. Last error: No connection could be made because the target machine actively refused it")}) So i am wondering how to configure correctly (what changes should i make on