如何用dbvis查看solrcloud数据

引自:https://cwiki.apache.org/confluence/display/solr/Solr+JDBC+-+DbVisualizer

For DbVisualizer, you will need to create a new driver for Solr using the DbVisualizer Driver Manager. This will add several SolrJ client .jars to the DbVisualizer classpath. The files required are:

在DbVisualizer中,你只需要在DbVisualizer的驱动管理器中增加一个新的Solr驱动即可,也就是说将SolrJ的客户端jar包添加到DbVisualizer的类路径中。需要添加的类文件如下:

  • all .jars found in $SOLR_HOME/dist/solrj-lib
  • the SolrJ .jar found at $SOLR_HOME/dist/solr-solrj-<version>.jar

Once the driver has been created, you can create a connection to Solr with the connection string format outlined in the generic section and use the SQL Commander to issue queries.

Setup Driver

Open Driver Manager

From the Tools menu, choose Driver Manager to add a driver.

Create a New Driver

Name the Driver

Provide a name for the driver, and provide the URL format: jdbc:solr://<zk_connection_string>/?collection=<collection>. Do not fill in values for the variables "zk_connection_string" and "collection", those will be provided later when the connection to Solr is configured. The Driver Class will also be automatically added when the driver .jars are added.

Add Driver Files to Classpath

The driver files to be added are:

  • all .jars in $SOLR_HOME/dist/solrj-lib
  • the SolrJ .jar found in $SOLR_HOME/dist/solr-solrj-<version>.jar

 

Review and Close Driver Manager

Once the driver files have been added, you can close the Driver Manager.

Create a Connection

Next, create a connection to Solr using the driver just created.

Use the Connection Wizard

Name the Connection

Select the Solr driver

Specify the Solr URL

Provide the Solr URL, using the ZooKeeper host and port and the collection. For example,jdbc:solr://localhost:9983?collection=test

Open and Connect to Solr

Once the connection has been created, double-click on it to open the connection details screen and connect to Solr.

Open SQL Commander to Enter Queries

When the connection is established, you can use the SQL Commander to issue queries and view data.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值