鲁春利的工作笔记,好记性不如烂笔头
1、查看帮助
在Admin UI的底部可以连接到相应网站,查看关于Solr的帮助信息。
2、Dashboard
Admin UI的默认页面,主要包括:
实例的信息(如solr服务启动时间)
版本信息(solr以及lucene的版本信息)
JVM配置参数(如
-DSTOP.KEY=solrrocks
-DSTOP.PORT=7983
-Djetty.home=/lucl/solr-5.3.0/server
-Djetty.port=8983
-Dsolr.install.dir=/lucl/solr-5.3.0
以及主机系统信息(如内存、交换空间、文件描述符及JVM内存使用情况)。
3、Logging
以Core(索引库)为单位创建日志文件,另外可以设置日志级别。
说明:Solr的日志级别还是挺细的,可以对于某个类进行单独配置。
4、Core Admin
用来管理Solr的Core(索引库),CoreAdminHandler类封装了其功能实现。
5、Java Properties
Solr运行是的配置参数,可以通过-D参数名=参数值的方式覆盖默认参数。
6、Thread Dump
The Thread Dump screen lets you inspect the currently active threads alt="Solr-5.3.0学习笔记(二)Solr Admin UI">
7、Manage Core
通过Admin UI执行Add Core时总提示错误:
于是通过命令脚本执行创建:
[hadoop@nnode solr-5.3.0]$ bin/solr create -c test_core Setup new  core instance 目录://solr/test_core lucl/solr-5.3.0/服务器 Creating new  core “test_core”, using 命令: http://localhost: 8983/solr/admin/核心? action=CREATE& name=test_core& instanceDir=test_core { “responseHeader”:{才能 ,,,“状态”:0, ,,,“QTime”: 3876}, “核心”才能:“test_core”} [hadoop@nnode solr-5.3.0] $
说明:对于创建失败的,可以使用bin/solr删除- c索引库名称进行删除。
查看索引库的目录结构
(hadoop@nnode 服务器),美元pwd/lucl/solr-5.3.0/服务器 (hadoop@nnode 服务器),美元cd solr [hadoop@nnode solr] $ ll 总用量,20 drwxr-xr-x 5, hadoop hadoop 4096年,8月,,12,17:16 configsets -rw-r——r, 1, hadoop hadoop 3037年,8月,,12,17:16 固定 -rw-r——r, 1, hadoop hadoop 1887年,8月,,12,17:16 solr.xml drwxrwxr-x 4, hadoop hadoop 4096年,1月,,25,20:24 test_core -rw-r——r, 1, hadoop hadoop , 501, 8月,,12,17:16 zoo.cfg [hadoop@nnode solr],美元cd test_core/[hadoop@nnode test_core] $ ll 总用量,12 drwxrwxr-x 3, hadoop hadoop 4096年,1月,,21,12:28 相依 -rw-rw-r,, 1, hadoop hadoop ,, 79年,1月,,25,20:24 core.properties drwxrwxr-x 4, hadoop hadoop 4096年,1月,,25,20:24 数据 [hadoop@nnode test_core],美元cd conf/[hadoop@nnode 相依],美元会 总用量,148 -rw-rw-r,, 1, hadoop hadoop , 3974, 8月,,12,17:16 currency.xml -rw-rw-r,, 1, hadoop hadoop , 1348, 8月,,12,17:16 elevate.xml drwxrwxr-x 2, hadoop hadoop , 4096年,1月,,21,12:28 朗 -rw-rw-r,, 1, hadoop hadoop 55614, 8月,,12,17:16 managed-schema -rw-rw-r,, 1, hadoop hadoop ,, 308, 8月,,12,17:16 params.json -rw-rw-r,, 1, hadoop hadoop ,, 873, 8月,,12,17:16 protwords.txt -rw-rw-r,, 1, hadoop hadoop 61532, 8月,,12,17:16 xml -rw-rw-r,, 1, hadoop hadoop ,, 781, 8月,,12,17:16 stopwords.txt null null null null null null nullSolr-5.3.0学习笔记(二)Solr管理UI