gpt4 book ai didi

authentication - 具有PasswordAuthenticator和模式自动创建功能的DataStax Enterprise Hive

转载 作者:行者123 更新时间:2023-12-02 21:48:21 24 4
gpt4 key购买 nike

如何配置Hive使用用户名/密码连接到我的Cassandra数据库? Hive配置为自动创建架构,并且在禁用Cassandra身份验证时可以正常运行。当然,如果启用身份验证,配置单元会给我一条错误消息...

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient



在哪里可以指定用户名/密码?我在DataStax文档中找不到有关Hive的任何信息...谢谢

最佳答案

查看以下文档页面:Configuring and using internal authentication并向下滚动至Hadoop部分。

您应该能够将用户名/密码作为dse hive命令的一部分提供,如下所示:

$ dse hive -hiveconf cassandra.username=foo -hiveconv cassandra.password=bar

关于authentication - 具有PasswordAuthenticator和模式自动创建功能的DataStax Enterprise Hive,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23277121/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com