问题标签 [cqlsh]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
cassandra - 使用 Kerberos 的 Cqlsh
我正在尝试使用启用了kerberos 的 cassandra cluster登录 cqlsh shell。我能够使用 cassandra 用户登录到 cqlsh shell,但我无法使用任何其他用户登录。
如果我尝试使用说测试用户登录,那么它会为我显示以下错误。
但是在我的用户表中,我有测试用户。
测试用户有kerberos的票。谁能帮助我。
cassandra - 在 cqlsh 中获取 Cassandra 数据中心名称
如何获取数据中心的名称cqlsh
?它是 的构造函数所必需的DCAwareRoundRobinPolicy
。
cassandra - cassandra:通过一些过滤以相反的顺序获取宽行的列
我知道 cassandra 不支持按二级索引排序,但我真的不希望按功能排序。我想要的只是能够以升序或降序获取存储在列族中的列,因为 cassandra 已经对列名进行了排序。
我想将 cassandra 中的时间序列数据建模为宽行。我需要按升序或降序访问这些数据。我还想创建几个二级索引来进行选择查询。所以我的列族 at_data 看起来像,
如果我将数据添加到此列族。
并希望在状态与 1 匹配的情况下按降序获取“数据”。所以我创建了查询,从 at_data 中选择 *,其中 acct_bucket_id='1:1' 和 status=1 order by ts desc;
并得到错误,Bad Request: ORDER BY with 2ndary index is not supported。
我如何实现这一目标?
谢谢,施里达尔
cassandra - cql 3 和 cassandra 2.0.1 的未知属性“compaction_strategy_class”
使用这种 cassandra 配置:
当我尝试这样做时:
我收到此错误:
我知道 SizeTieredCompactionStrategy 是默认策略,但我还想修改 sstables 大小,并且:
给我这个错误:
我阅读了 cql 文档,应该是正确的,有人知道可能是什么问题吗?
谢谢
cassandra - me.prettyprint.hector.api.exceptions.HInvalidRequestException:InvalidRequestException(不匹配的输入'('期待')')
我正在尝试在表“standardevents”中插入一些值。这是执行的查询。
我在执行之前打印查询,我得到
执行后我得到一个异常
但是,当我在 cqlsh 客户端中运行此查询时,会插入值。 提前致谢。
cassandra - 使用 SSTableLoader 将批量数据插入 cassandra 后需要采取哪些必要步骤?
卡桑德拉的新手在这里。
我通过从 CSV 文件创建 SSTables 将 5000 万条记录插入到 cassandra,然后使用 SSTableLoader 将它们加载到数据库中。是否需要采取任何后 SSTableLoader 步骤?例如:做一个节点工具修复..等
我面临的问题是,当我尝试通过二级索引查询时,我无法检索一些记录,即使在查询所有记录时该记录显示在列表中。
例如:select * from columfamily limit 50
然后,当我使用 value2 作为二级索引从其中一条记录中查询时,它将返回 0 行。
任何帮助深表感谢!
cassandra - 无法创建嵌套集合数据类型
我无法在 Cassandra 的另一个集合中创建集合。请在下面找到错误详细信息
在这里,我尝试使用 Map 类型创建名为 feechedule 的列,并且 Map 具有 List 类型的值。
有人可以建议我如何在 Cassandra 中实现它。我的 Cassandra 版本详细信息如下:
提前致谢,
cassandra - 删除 cassandra 中的所有键空间
如何删除 cassandra 中的所有键空间,我有一个要求,我必须删除一些测试脚本创建的所有键空间。
谢谢
cassandra - 条件查询在 cql 3.0.0 中不起作用
我正在尝试在 cassandra CQL 中执行条件查询,但它给了我类似的错误
我正在执行上面的查询,它给了我下面的错误
错误请求:第 1:55 行输入“;”没有可行的替代方案 也许您打算使用 CQL 2?启动 cqlsh 时尝试使用 -2 选项。
cqlsh:events> select * from standardevents where name='ActivityPg_view';
我正在执行上面的查询,它给了我下面的错误
错误请求:使用 Equal 运算符的 by-columns 子句中不存在索引列
当我尝试使用 CQL 2 执行时
它给了我以下错误,
错误请求:具有“等于”运算符的 by-columns 子句中不存在索引列
cqlsh:events> select * from standardevents where name='ActivityPg_view';
它给了我以下错误,
错误请求:带有“等于”运算符的 by-columns 子句中不存在索引列 也许您打算使用 CQL 3?在启动 cqlsh 时尝试使用 -3 选项。
那么有人可以提出问题以及如何解决这个问题并执行条件查询吗?
cassandra - Can the Kundera API handle MyObj inside MyParentObj when used with Cassandra
I've seen a lot of Kundera examples where the object being store is fairly simple. You have something like a Car.class and it contains a couple String variables maybe an int mapped using the @Column annotation. I've even seen some List, Set and Map variables as well as the cqlsh to create a column of those types.
What I haven't seen is a custom object I created within an object and how that would be represented in a Cassandra DB.
For example:
Could I store ContainerShip into Cassandra, using Kundera with em.persist(myShip)?
If I can what would the cqlsh for creating the "container" column look like?