Python 如何为Solr设置dsetool身份验证?
我一直在玩Datastax Enterprise,而且我是新来的,我尝试使用dsetool create_core命令在Cassandra中为我的表自动生成Solr模式。我使用的是Datastax Enterprise 4.6.5 我在文档中看到使用JMX或Kerberos对dsetool进行身份验证。现在,我使用的是内部身份验证,但是如果我尝试运行create_core命令,dsetool会请求HTTP身份验证 我对JMX或Kerberos一无所知,而且我对Cassandra和Solr也是新手,所以我有3个问题Python 如何为Solr设置dsetool身份验证?,python,authentication,solr,datastax-enterprise,Python,Authentication,Solr,Datastax Enterprise,我一直在玩Datastax Enterprise,而且我是新来的,我尝试使用dsetool create_core命令在Cassandra中为我的表自动生成Solr模式。我使用的是Datastax Enterprise 4.6.5 我在文档中看到使用JMX或Kerberos对dsetool进行身份验证。现在,我使用的是内部身份验证,但是如果我尝试运行create_core命令,dsetool会请求HTTP身份验证 我对JMX或Kerberos一无所知,而且我对Cassandra和Solr也是新手
由于内部身份验证不支持dsetool create_core,因此可以直接使用Solr HTTP API创建核心。从命令行中尝试以下操作:
curl "http://localhost:8983/solr/admin/cores?action=CREATE&name=<keyspace>.<table>&generateResources=true"
curl”http://localhost:8983/solr/admin/cores?action=CREATE&name=.&generateResources=true"
我相信DSE Solr中有一些自定义操作可用(即推断模式
)。我学习如何知道dsetool做什么的一种方法是strace
命令,提取HTTP操作,然后使用curl
/wget
/等重新执行操作。