微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何通过 shell 访问 Amazon Keyspaces?

如何解决如何通过 shell 访问 Amazon Keyspaces?

我尝试在 AWS shell 中编写 cqlsh,但没有返回任何输出。我提到了这个tutorial

输出:- bash: cqlsh: command not found

解决方法

是的,您可以使用 cqlsh 通过 AWS Cloudshell 访问 Amazon Keyspaces。 Amazon Keyspaces 工具包的存储库有一个 shell 脚本,用于在 AWS 云 shell 中设置 cqlsh。 Amazon Keyspaces 工具包是为 Amazon Keyspaces 中的最佳实践配置的常用开发人员工具的存储库。

这里是 github 示例的链接:https://github.com/aws-samples/amazon-keyspaces-toolkit/tree/master/aws-cloudshell

以下是帮助您入门的步骤。

运行以下命令下载并执行安装脚本 wget https://raw.githubusercontent.com/aws-samples/amazon-keyspaces-toolkit/master/aws-cloudshell/setup.sh bash 设置.sh

通过使用 cqlsh-expansion,它还允许您使用 Sigv4 身份验证方法,该方法支持 Python Cassandra 驱动程序。如需了解更多信息,请访问 Github 页面,了解我们的 Sigv4 插件和 Python 驱动程序https://github.com/aws/aws-sigv4-auth-cassandra-python-driver-plugin。

该插件依赖于 AWS SDK for Python (Boto3),使用 boto3.Session 获取凭证以使用 cqlsh-expansion 连接到 Amazon 密钥空间

Mat F = A.clone();
Mat G;
A.copyTo(G);

附加信息 cqlsh-扩展https://github.com/aws-samples/amazon-keyspaces-toolkit/tree/master/cqlsh-expansion#readme AWS CloudShell https://docs.aws.amazon.com/cloudshell/latest/userguide/welcome.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。