-
2 votesanswersviews
SELECT *语句中的Cassandra ArrayIndexOutOfBoundsException
我有2个列系列,其数据是使用DataStax驱动程序版本1.0.4通过Java应用程序插入的 . 我使用cqlsh 4.1.1(Cassandra 2.0.5,CQL规范3.1.1,Thrift协议19.39.0)将CQLSH转换为集群中的四个节点之一 . 我可以从一个列族("table_A")执行 SELECT * 但不执行另一个列(table_X) . 我正在尝试执行 SE... -
0 votesanswersviews
升级到DSE 5后,Cassandra solr_query无法正常工作
升级到 DSE 5 solr_query 后无效 . 下面是新的DSE,cqlsh和Cassandra版本 . [cqlsh 5.0.1 | Cassandra 3.0.7.1158 | DSE 5.0.0 | CQL规范3.4.0 |原生协议v4] 我正在使用PHP Driver进行连接 . 异常捕获是 对于本机协议版本<4,不得使用CUSTOM_PAYLOAD标志发送帧 和 错... -
17 votesanswersviews
cassandra主键列不能被限制
我第一次在Web应用程序中使用Cassandra,我遇到了查询问题 . 这是我的标签: CREATE TABLE vote ( doodle_id uuid, user_id uuid, schedule_id uuid, vote int, PRIMARY KEY ((doodle_id), user_id, schedule_id) ); 在每个请求中... -
4 votesanswersviews
cassandra ::我可以创建一个没有主键的表吗?
现在我正在学习 Cassandra ,所以我得到了一张没有 primary key 的 table . 但它有一些指数 . 所以这是我的疑问,我可以创建一个没有主键的表 . CREATE TABLE subscription (subscriberid varchar,productid varchar,panaccessproductid varchar,operatorproductid v... -
15 votesanswersviews
无法从不同的主机连接到cassandra节点
我在一台机器上有一个cassandra节点 . 当我从同一个机器上访问cqlsh时,它可以正常工作 . 但是当我尝试使用另一台机器上的“192.x.x.x”连接到它的cqlsh时,我收到一个错误说 连接错误:('无法连接到任何服务器',{'192.xxx':错误(111,“尝试连接到[('192.xxx',9042)] . 上次错误:连接被拒绝”)} ) 这是什么原因?我该如何解决? -
14 votesanswersviews
Apache Cassandra 3.7 CQLSH 'Unable to connect to any servers'
Apache cassandra 3.7版在Ubuntu服务器上运行16.04很好,apache cassandra的所有部分启动没问题,问题是,我去连接使用cqlsh:$ CQLSH(我的IP地址)9160然后它说:连接错误:('Unable to connect to any servers' ,{'10.0.0.13':TypeError('ref() does not take keywo... -
0 votesanswersviews
docker-compose无法启动
我正在尝试使用docker-compose来启动2个图像 - 作为服务器运行的Apache Cassandra - 另一个类似的容器,但运行sql解释器 我对Docker很新,这是我到目前为止所尝试的: 这是我的docker-compose.yml version: '2' services: cassandra-srv: image: cassandra:latest po... -
1 votesanswersviews
将代码从thrift移动到CQL时不需要的KEY列
我们正在运行Datastax Enterprise 4.8.8我们有多个应用程序使用Hector API(Thrift Communication)连接到Cassandra . 作为从Thrift通信转向CQL通信(使用Datastax Cassandra驱动程序)的一部分:我看到一个奇怪的错误:我的ColumnFamily架构中添加了一个额外的KEY列 . ColumnFamily是使用 cas... -
2 votesanswersviews
Cassandra表创建失败,错误请求:输入不匹配
我创建了一个Cassandra键空间跟踪器: CREATE KEYSPACE tracker WITH replication = { 'class': 'SimpleStrategy', 'replication_factor': '3' }; 然后我可以在这个键空间中成功创建一个表: cqlsh:tracker> CREATE TABLE tracker.click_windo... -
4 votesanswersviews
CQLSH连接错误:错误请求:未配置的columnfamily本地
我想在Windows上设置CQLSH . 我做了python编译并尝试启动CQLSH,我在下面得到了这个奇怪的错误 . 我没有一个名为'local'的专栏家族 . 我还没有指定我的键空间 . 那么为什么它抱怨我没有本地的列家族?有人理解这个吗? C:\ apache-cassandra-2.0.1 \ bin> python cqlsh --cqlversion =“3.0.0”连接错误:错... -
1 votesanswersviews
运行远程cqlsh以在Cassandra Cluster上执行命令
所以我的Ubuntu机器上有一个包含6个节点的Cassandra集群,现在我有另一台运行Windows Server 2008的机器 . 我在这台新的Windows机器上安装了DataStax Apache Cassandra,我希望能够运行所有的CQL命令Windows机器到Ubuntu机器上 . 所以就像远程命令执行一样 . 我尝试使用cqlsh在cmd中打开cqlsh,其中包含我的一个节点和... -
2 votesanswersviews
Cassandra cqlsh无法登录非超级用户
遵循this过程以启用DSE身份验证和授权 . cqlsh 能够登录超级用户,但无法登录普通用户(超级用户= false) . 以下是尝试登录普通用户时的错误: Connection error: ('Unable to connect to any servers', {'127.0.0.1': AuthenticationFailed('Failed to authenticate to 12... -
0 votesanswersviews
Cassandra CQLSH:'unicode'对象没有属性'formatter'
我在多节点Cassandra集群中的一个节点的cql shell中的任何选择操作期间面临所述错误 . 'unicode'对象没有属性'formatter' 令人惊讶的是,在所有节点中,我的配置是相同的,即 Python:2.7.5 cqlsh:5.0.1 卡珊德拉:3.11.1 在受影响的节点上似乎有什么问题? Update: 例如:附件是我的问题的快照: 然而,结果在其他节点上正确显示: -
44 votesanswersviews
Cassandra cqlsh - 连接被拒绝
我刚刚开始使用Cassandra(datastax),版本2.1.3和cqlsh版本5.0.1 . Cassandra启动良好,集群即时运行 . Cqlsh无法正常工作(在任何节点上)并发出以下错误: 连接错误:('无法连接到任何服务器',{'127.0.0.1':错误(111,“尝试连接到[('127.0.0.1',9042)] . 最后一个错误:连接被拒绝”)}) 我尝试用主机自己的ip,... -
7 votesanswersviews
Cassandra - 删除不工作
有时;当我执行DELETE时;它不起作用 . 我的配置:[cqlsh 5.0.1 | Cassandra 3.0.3 | CQL规范3.4.0 |原生协议v4] cqlsh:my_db> SELECT * FROM conversations WHERE user_id=120 AND conversation_id=2 AND peer_type=1; user_id | conver... -
2 votesanswersviews
get_num_processes()不带关键字参数(CSV < - > CASSANDRA)
我想将cassandra数据库导出到csv文件,但是 cqlsh:marvel> SELECT * FROM personajes; name | skills ------------+-------- Iron Man | Tech Spider Man | Lab cqlsh:marvel> COPY personajes(名称,技能)TO 'te... -
1 votesanswersviews
Apache Cassandra COPY TO命令失败,错误= {},last_host = 10.19.2.3226.81 rows / s
我试图通过cqlsh使用 COPY TO 命令将一个表的内容复制到另一个表(以重新创建分区键) . 但是,它到目前为止(通常大约有50,000条记录)然后失败并出现以下错误: [cqlsh 5.0.1 | Cassandra 2.1.9.791 | DSE 4.8.0 | CQL规范3.2.0 | Native protocol v3] cqlsh> COPY keyspace_name.... -
3 votesanswersviews
在Cassandra CQL中Varchar和文本类型之间有什么区别
Cassandra CQL中Varchar和文本数据类型之间的区别是什么 . https://docs.datastax.com/en/cql/3.0/cql/cql_reference/cql_data_types_c.html 当我尝试创建一个字段数据类型为varchar的表时,它将创建为文本数据类型 CREATE TABLE test(empID int,first_name varc... -
10 votesanswersviews
如何为远程连接配置cassandra
我正在尝试配置Cassandra Datastax Community Edition在Windows上进行远程连接, Cassandra Server安装在Windows 7 PC上, With the local CQLSH it connects perfectly to the local server. 但当我尝试连接 with CQLSH from another PC in the ... -
23 votesanswersviews
cqlsh连接错误:'ref() does not take keyword arguments'
我已经尝试了this post和Cassandra doc的所有措施 . 我已经尝试运行所有版本的Cassandra,包括来自tarball和Debian软件包的最新版本3.7,但是当我执行 cqlsh 时,我一直遇到错误 . 错误: 连接错误:('无法连接到任何服务器',{'127.0.0.1':TypeError('ref()不接受关键字参数',)}) 在将Linux Mint从17.3升... -
10 votesanswersviews
如何使用cqlsh连接到Cassandra(remotehost)
我不能cqlsh到远程主机 ./cqlsh xx.xx.x.xxx 9042 Connection error: ('Unable to connect to any servers', {'10.101.33.163': ConnectionException(u'Did not get expected SupportedMessage response; inste... -
3 votesanswersviews
哪个版本的cqlsh与Cassandra 2.1.9兼容?
我面临着问题populate_io_cache_on_flush is not a column defined in this metadata中提到的同样问题 . 根据answer在第answer的第2条评论中指定的解决方案,我需要 "Use the same client library than the server is. i.e. after a ubuntu updates... -
7 votesanswersviews
无法使用cqlsh连接到cassandra docker
我运行Cassandra docker容器: docker pull cassandra run --name cassandra -p 9042:9042 -p 9160:9160 -d cassandra netstat -tpln是: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name LI... -
23 votesanswersviews
cqlsh连接错误:'ref() does not take keyword arguments'
我已经尝试了this post和Cassandra doc的所有措施 . 我已经尝试运行所有版本的Cassandra,包括来自tarball和Debian软件包的最新版本3.7,但是当我执行 cqlsh 时,我一直遇到错误 . 错误: 连接错误:('无法连接到任何服务器',{'127.0.0.1':TypeError('ref()不接受关键字参数',)}) 在将Linux Mint从17.3升... -
0 votesanswersviews
由于磁盘空间不足,我无法打开Cassandra
我设置了一个新的Cassandra并使用 ./cassandra 打开它,但它失败了 . 在system.log中,它显示以下错误: 错误13:30:31启动时遇到异常java.lang.RuntimeException:java.lang.RuntimeException:java.util.concurrent.ExecutionException:java.lang.RuntimeExcep... -
0 votesanswersviews
在Cassandra中更新表时间歇性地出现InvalidQueryException
我面临着一个特殊的问题 . 我们已经设置了LOCAL_QUORUM的一致性 . 我有一个长期运行的工作,不时更新数据库 . 在这些更新之间,我们间歇地看到以下问题: com.datastax.driver.core.exceptions.InvalidQueryException: SERIAL is not supported as conditional update commit consi... -
2 votesanswersviews
如何在Cassandra中使用cqlsh插入带有map <text,boolean>字段的自定义类型?
我收到这样的错误: field is not of type frozen<map<text, boolean>> 插入自定义类型对象的任何示例,其中字段的类型为 frozen<map<text, boolean>> ? 知道如何用nodejs cassandra-driver做到这一点吗? UPDATE 试图@Olivier Michallat提... -
0 votesanswersviews
如何查询Set中用户定义类型的字段
我正在使用cassandra 5.1,我想查询Set中用户定义类型的字段 . 我创建了我的类型: CREATE TYPE public.fluxes ( filter_name text, flux float, flux_prec smallint, flux_error float, flux_error_prec smallint, flux_... -
-1 votesanswersviews
InvalidRequest:code = 2200 [无效查询] message =“未知标识符emp_id”
我创建了键空间并在其中创建了表,它在插入值时给出了错误,我错过了什么吗? cqlsh> create keyspace dev WITH replication = {'class':'SimpleStrategy','replication_factor':1}; cqlsh> use dev ...; cqlsh:dev> create table emp(empid int... -
0 votesanswersviews
为什么我的观点具体化观点不反映这些变化?
嗨,实际上我在一个项目上使用cassandra,但我有一个物化视图的问题,在片刻解释我在cassandra和问题中的设置 . 我在Google Cloud中有两个实例,每个实例都有一个具有下一个要求的节点: Cassandra 3.10.0版 CQLSH版本5.0.1 在服务器上 1核心 - CPU Haswell 6.5GB RAM HDD 240GB Ubuntu...