如何运行具有内部身份验证的独立hiveserver2?

时间:2014-12-16 13:40:27

标签: datastax-enterprise

我有使用内部验证的Datastax DSE(4.5)集群(使用org.apache.cassandra.auth.PasswordAuthenticator)。我可以run a standalone hiveserver2吗?怎么样?到目前为止,我还没有在Datastax文档中找到任何相关信息。 This page没有运行hiveserver2的示例。

1 个答案:

答案 0 :(得分:1)

你可以启动dse hive --service hiveserver2 --hiveconf cassandra.username = cassandra --hiveconf cassandra.password = cassandra

然后使用beeline连接到它

直线> !connect jdbc:hive2:// localhost:10000?cassandra.username = cassandra; cassandra.password = cassandra org.apache.hive.jdbc.HiveDriver