- 浏览: 2487281 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
solr(7)4.10.4 on Jetty
1. Preparation
Java 1.7 or greater.
> java -version
java version "1.7.0_80"
Find a right release version of SOLR for me from here http://mirror.cogentco.com/pub/apache/lucene/solr/
I download and unzip this file solr-4.10.4.tgz.
> wget http://mirror.cogentco.com/pub/apache/lucene/solr/4.10.4/solr-4.10.4.tgz
Unzip the file and place them in the working directory
> sudo ln -s /home/carl/tool/solr-4.10.4 /opt/solr-4.10.4
2. Start the Solr Server
> cd /opt/solr/example/
to Start the Solr with Jetty
> java -jar start.jar
INFO org.eclipse.jetty.server.Server – jetty-8.1.10.v20130312
INFO org.eclipse.jetty.deploy.providers.ScanningAppProvider – Deployment monitor /home/carl/tool/solr-4.10.4/example/contexts at interval 0
INFO org.eclipse.jetty.deploy.DeploymentManager – Deployable added: /home/carl/tool/solr-4.10.4/example/contexts/solr-jetty-context.xml
INFO org.eclipse.jetty.webapp.WebInfConfiguration – Extract jar:file:/home/carl/tool/solr-4.10.4/example/webapps/solr.war!/ to /home/carl/tool/solr-4.10.4/example/solr-webapp/webapp
haha, a lot of useful information,
/home/carl/tool/solr-4.10.4/example/webapps/solr.war
/home/carl/tool/solr-4.10.4/example/contexts/solr-jetty-context.xml
jetty version = jetty-8.1.10.v20130312
Then visit page http://ubuntu-pilot:8983/solr/#/, our SOLR server is up and running.
Command line can do add, update, query and etc, so the solrJ.
Search UI
http://ubuntu-pilot:8983/solr/collection1/browse
3. Understand of Multicore
If you have collections for Documents, People, Stocks which are completely unrelated entities.
Host unrelated entities separately so that they don’t impact each other
Having a different configuration for each core with different behavior
Performing activities on each core differently ( Update data, Load, Reload, Replication)
Keep the size of the core in check and configure caching accordingly.
When we use Command Line, we will make sure the core name is in the path.
http://host:8983/solr/core0/update ….
When we use Spring Data Solr, we have MulticoreSolrServerFactory
http://projects.spring.io/spring-data-solr/
@SolrDocument(solrCoreName=“core1”)
class Bean1 {
...
}
factory = new MulticoreSolrServerFactory(new HttpSolrServer(“http://host:8983”));
SolrServer solrServer = factory.getSolrServer(Bean1.class);
Join the Search on Multiple Cores
http://stackoverflow.com/questions/12665797/is-solr-4-0-capable-of-using-join-for-multiple-core
{!join from=fromField to=toField fromIndex=fromCoreName}fromQuery
Have 2 cores
brands {id, name}
products {id, name, brand_id}
BRANDS: {1, Apple} {2, Alibaba} {3, Hundsun}
PRODUCTS: {1, iPhone, 1}, {2, iPad, 1} ...
http://host:8983/solr/brands/select?q=*:*&fq={!join from=brand_id to=id fromIndex=products}name:iPad
It will translates to something like:
SELECT b.* FROM brands b INNER JOIN products p ON b.id=p.brand_id WHERE p.name=“iPad”;
{id: “1”, name:”Apple"}
4. Clustering of SOLR
A little about SolrCores and Collections
SolrCore is essentially a single index. Multiple indexes, we should create multiple SolrCores.
Shard Cluster
https://wiki.apache.org/solr/SolrCloud
ZooKeeper + 2 Jetty Instances
Shard Cluster and Shard Replicas
https://wiki.apache.org/solr/SolrCloud
Shard Cluster with Shard Replicas and Zookeeper Ensemble
https://wiki.apache.org/solr/SolrCloud
2 shards, 2 replica and multiple zookeepers
http://blademastercoder.github.io/2015/04/18/solr-SolrCloud%20.html
That is push mode. But we are using pull mode.
https://wiki.apache.org/solr/SolrReplication
References:
http://sillycat.iteye.com/admin/blogs/2227066
http://lucene.apache.org/solr/4_10_4/tutorial.html
http://wiki.apache.org/solr/
http://wiki.apache.org/solr/CoreAdmin
http://stackoverflow.com/questions/19274590/switching-solr-cores-when-adding-documents
http://docs.ckan.org/en/latest/maintaining/solr-multicore.html
SOLR Cluster/Cloud
http://www.cnblogs.com/clarechen/p/4573290.html
http://blademastercoder.github.io/2015/04/18/solr-SolrCloud%20.html
https://wiki.apache.org/solr/SolrCloud
http://wiki.apache.org/solr/SolrJetty#MultiWebappJndi
1. Preparation
Java 1.7 or greater.
> java -version
java version "1.7.0_80"
Find a right release version of SOLR for me from here http://mirror.cogentco.com/pub/apache/lucene/solr/
I download and unzip this file solr-4.10.4.tgz.
> wget http://mirror.cogentco.com/pub/apache/lucene/solr/4.10.4/solr-4.10.4.tgz
Unzip the file and place them in the working directory
> sudo ln -s /home/carl/tool/solr-4.10.4 /opt/solr-4.10.4
2. Start the Solr Server
> cd /opt/solr/example/
to Start the Solr with Jetty
> java -jar start.jar
INFO org.eclipse.jetty.server.Server – jetty-8.1.10.v20130312
INFO org.eclipse.jetty.deploy.providers.ScanningAppProvider – Deployment monitor /home/carl/tool/solr-4.10.4/example/contexts at interval 0
INFO org.eclipse.jetty.deploy.DeploymentManager – Deployable added: /home/carl/tool/solr-4.10.4/example/contexts/solr-jetty-context.xml
INFO org.eclipse.jetty.webapp.WebInfConfiguration – Extract jar:file:/home/carl/tool/solr-4.10.4/example/webapps/solr.war!/ to /home/carl/tool/solr-4.10.4/example/solr-webapp/webapp
haha, a lot of useful information,
/home/carl/tool/solr-4.10.4/example/webapps/solr.war
/home/carl/tool/solr-4.10.4/example/contexts/solr-jetty-context.xml
jetty version = jetty-8.1.10.v20130312
Then visit page http://ubuntu-pilot:8983/solr/#/, our SOLR server is up and running.
Command line can do add, update, query and etc, so the solrJ.
Search UI
http://ubuntu-pilot:8983/solr/collection1/browse
3. Understand of Multicore
If you have collections for Documents, People, Stocks which are completely unrelated entities.
Host unrelated entities separately so that they don’t impact each other
Having a different configuration for each core with different behavior
Performing activities on each core differently ( Update data, Load, Reload, Replication)
Keep the size of the core in check and configure caching accordingly.
When we use Command Line, we will make sure the core name is in the path.
http://host:8983/solr/core0/update ….
When we use Spring Data Solr, we have MulticoreSolrServerFactory
http://projects.spring.io/spring-data-solr/
@SolrDocument(solrCoreName=“core1”)
class Bean1 {
...
}
factory = new MulticoreSolrServerFactory(new HttpSolrServer(“http://host:8983”));
SolrServer solrServer = factory.getSolrServer(Bean1.class);
Join the Search on Multiple Cores
http://stackoverflow.com/questions/12665797/is-solr-4-0-capable-of-using-join-for-multiple-core
{!join from=fromField to=toField fromIndex=fromCoreName}fromQuery
Have 2 cores
brands {id, name}
products {id, name, brand_id}
BRANDS: {1, Apple} {2, Alibaba} {3, Hundsun}
PRODUCTS: {1, iPhone, 1}, {2, iPad, 1} ...
http://host:8983/solr/brands/select?q=*:*&fq={!join from=brand_id to=id fromIndex=products}name:iPad
It will translates to something like:
SELECT b.* FROM brands b INNER JOIN products p ON b.id=p.brand_id WHERE p.name=“iPad”;
{id: “1”, name:”Apple"}
4. Clustering of SOLR
A little about SolrCores and Collections
SolrCore is essentially a single index. Multiple indexes, we should create multiple SolrCores.
Shard Cluster
https://wiki.apache.org/solr/SolrCloud
ZooKeeper + 2 Jetty Instances
Shard Cluster and Shard Replicas
https://wiki.apache.org/solr/SolrCloud
Shard Cluster with Shard Replicas and Zookeeper Ensemble
https://wiki.apache.org/solr/SolrCloud
2 shards, 2 replica and multiple zookeepers
http://blademastercoder.github.io/2015/04/18/solr-SolrCloud%20.html
That is push mode. But we are using pull mode.
https://wiki.apache.org/solr/SolrReplication
References:
http://sillycat.iteye.com/admin/blogs/2227066
http://lucene.apache.org/solr/4_10_4/tutorial.html
http://wiki.apache.org/solr/
http://wiki.apache.org/solr/CoreAdmin
http://stackoverflow.com/questions/19274590/switching-solr-cores-when-adding-documents
http://docs.ckan.org/en/latest/maintaining/solr-multicore.html
SOLR Cluster/Cloud
http://www.cnblogs.com/clarechen/p/4573290.html
http://blademastercoder.github.io/2015/04/18/solr-SolrCloud%20.html
https://wiki.apache.org/solr/SolrCloud
http://wiki.apache.org/solr/SolrJetty#MultiWebappJndi
发表评论
-
Update Site will come soon
2021-06-02 04:10 1612I am still keep notes my tech n ... -
Stop Update Here
2020-04-28 09:00 263I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 433NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 312Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 323Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 294Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 381Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 377Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 329Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 400VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 337Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 417NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 363Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 293Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 209GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 392GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 276GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 265Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 261Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 253Serverless with NodeJS and Tenc ...
相关推荐
solr-4.10.4.jar
亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,
Apache solr 4.10 文档搜索工具 支持多节点搜索
亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,亲测可用,
码头用于部署Solr的Jetty应用程序。 默认情况下,不包含任何核心。 必须将它们添加到配置中。安装下载并运行: java -jar start.jar从以下位置查看应用程序: http://localhost:8985/solr/版本号索尔4.10.4 码头8.1....
1.ik中文分词器适配最新版本solr7和solr8,下载后解压,将target下的ik-analyzer-7.7.1.jar包放入Solr服务的`Jetty`或`Tomcat`的`webapp/WEB-INF/lib/`目录下。 2.将`resources`目录下的5个配置文件放入solr服务的`...
solr7,ik-analyzer中文分词,带配置文件,放到solr的classes目录即可配置自己的分词规定
OpenShift Apache Solr 4.10.4 快速入门这是一个 OpenShift Quickstart 存储库,可帮助您快速启动和运行 Apache Solr 4.10.4。安装要安装快速入门,请使用以下命令 # Create your application to host your Apache ...
solr定时索引使用到的定时调度器jar包, 可使用于solr7.x版本
Solr,SolrCloud, Windows, Tomcat, Apache 在Windows操作系统上进行Solr的云安装与配置
ik-analyzer-solr7,支持 solr7,内含 jar 包和详细使用文档
ik-analyzer-solr7(支持solr7),数据类型long改为plong
环境搭建:centos7及solr7版本 描述:最新版本的solr内置了jetty容器,可以支持jetty部署,从而不需要发布到tomcat下面 首先同样先在/usr/local/mypackage上传最新的solr.tar 解压tgz包 进入bin目录 ./solr start ...
在windows7级以上版本,使用tomcat中间件,部署solr7.x,并创建开发工程文档。为想用solr做全文索引的人一起学习交流一下。
solr 使用官方指南,solr 使用官方指南solr 使用官方指南solr 使用官方指南
支持solr6.x的中文分词,对solr7的支持暂时没有测试过
在solr5以前solr的启动都有tomcat作为容器,但是从solr5以后solr内部集成jetty服务器,可以通过bin目录中脚本直接启动。就是从solr5以后跟solr4最大的区别是被发布成一个独立的应用。
该分词器支持solr7.x