collection-admin工具的使用

来源:互联网 发布:匡恩网络上市 编辑:程序博客网 时间:2024/05/17 01:27

collection-admin tool usage

This tool can be executed on any FAST ESP node. The collection-admin tool reads $FASTSEARCH/etc/esp4j.properties to find the location of the Adminserver and the default user/password for logging in to the Adminserver.

The general command syntax for collection-admin is collection-admin <operation> [option]

where <operation> indicates the requested operation, such as listing collections (listcollections). Some operations require options such as providing a collection name or pipeline. All available options (preceded with a single ‘-’) are listed for each operation. The operation is specified with the -m option. The available operations are listpipelines, viewpipeline, listmodules, listclusters, listdatasources, modcollection, addcollection, listcollections, viewcollection, and delcollection.

Commands are case-sensitive.

collection-admin tool example

To list all collections:
collection-admin -m listcollections

关于collection-admin工具
这个管理工具可以用来执行FAST ESP管理任务,不管这些collection是在UNIX上还是Windows上.


collection-admin工具的使用
这个工具可以在FAST ESP的任何节点上执行.collection-admin会读取$FASTSEARCH/etc/esp4j.properties,从而找到Adminserver的位置和登录Adminserver默认的用户名和密码.


在命令行中使用collection-admin的方式是 collection-admin <operation> [option]


<operation>指明了请求的是哪种操作,像列出所有的collection(listcollections). 一些操作需要指定其他的选项,比如提供collection的名字或者pipeline. 所有操作的有效的选项(以'_'开头)都在下面的列出来了.这些操作使用的时候要带上-m选项. 所有有效的操作是 listpipelines, viewpipeline, listmodules, listclusters, listdatasources, modcollection, addcollection, listcollections, viewcollection和 delcollection. 
命令是大小写敏感的.
collection-admin例子:
列出所有的collection:
collection-admin -m listcollections
0 0
原创粉丝点击