cassandra - 如何列出 Cassandra shell 中的所有用户?
问题描述
在 CQL shell 中,如何列出所有用户?我似乎在 Stack Overflow 上的任何地方都找不到它。
解决方案
Prior to the introduction of roles in Cassandra 2.2, authentication and authorization were based around the concept of a USER.
Cassandra 2.2 onward CQL uses database roles to represent users and group of users. So to list users use below command accordingly.
LIST USERS; -- cassandra version < 2.2
LIST ROLES; -- cassandra version >= 2.2
推荐阅读
- css - 将单位添加到计算
- r - 如何在 R 中加载多个“.RData”并将它们组合为 mcmc 列表?
- python - 使用带有单元格边框的 2.color_scale 导出 excel
- mysql - 考虑到高性能,使用 sql 获得所需的输出?
- python - 熊猫特定条件下的 pd.eval()
- python - Web Scraping:试图检索所有歌曲,但它只返回一首歌词
- python - 用于识别 NumPy 数组中的数组的方法
- android - React-native Axios 在 iOS 中工作,但在 Android 中不调用
- keras - 增强 keras 模型输出并作为第二个模型的输入
- php - 我在 Laravel 中的搜索功能有问题