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