本地通过源码方式启动solr
- Copy the Maven POM templates from under dev-tools/maven/ to the
- maven-build/ directory using the following command from the top-level
- directory:
- ant get-maven-poms
- Note that you will need to do this whenever changes to the POM
- templates are committed. For this reason, it's a good idea run
- "ant get-maven-poms" after you update from origin.
- ant get-maven-poms
- Buildfile: /Users/mazhiqiang/develop/study/solr-5.5.0/build.xml
- resolve:
- resolve:
- ivy-availability-check:
- ivy-fail:
- ivy-configure:
- [ivy:configure] :: Apache Ivy 2.4.0 - 20141213170938 :: http://ant.apache.org/ivy/ ::
- [ivy:configure] :: loading settings :: file = /Users/xxx/develop/study/solr-5.5.0/lucene/ivy-settings.xml
- resolve:
- [ivy:retrieve] downloading https://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar ...
- [ivy:retrieve] ................. (247kB)
- [ivy:retrieve] .. (0kB)
- [ivy:retrieve] [SUCCESSFUL ] junit#junit;4.10!junit.jar (3616ms)
- [ivy:retrieve] downloading https://repo1.maven.org/maven2/com/carrotsearch/randomizedtesting/randomizedtesting-runner/2.3.2/randomizedtesting-runner-2.3.2.jar ...
- [ivy:retrieve] ................ (232kB)
- [ivy:retrieve] .. (0kB)
- [ivy:retrieve] [SUCCESSFUL ] com.carrotsearch.randomizedtesting#randomizedtesting-runner;2.3.2!randomizedtesting-runner.jar (2142ms)
- ivy-availability-check:
- ….
- -append-module-dependencies-properties:
- [echo] Get maven dependencies called under: /Users/mazhiqiang/develop/study/solr-5.5.0/lucene/..
- -get-maven-poms:
- [copy] Copying 57 files to /Users/mazhiqiang/develop/study/solr-5.5.0/maven-build
- BUILD SUCCESSFUL
- Total time: 20 minutes 13 seconds

使用idea启动
- resolve:
- idea:
- [copy] Copying 81 files to /Users/xxx/develop/workspace/github/lucene-solr
- -post-idea-instructions:
- [echo]
- [echo] To complete IntelliJ IDEA setup, you must manually configure
- [echo] File | Project Structure | Project | Project SDK.
- [echo]
- [echo] You won't have to do this in the future if you define property
- [echo] ${idea.jdk}, e.g. in ~/lucene.build.properties, ~/build.properties
- [echo] or lucene/build.properties, with a value consisting of the
- [echo] following two XML attributes/values (adjust values according to
- [echo] JDKs you have defined locally - see
- [echo] File | Project Structure | Platform Settings | SDKs):
- [echo]
- [echo] idea.jdk = project-jdk-name="1.8" project-jdk-type="JavaSDK"
- [echo]
- BUILD SUCCESSFUL
- Total time: 3 minutes 9 seconds
- // String solrHome = (String) config.getServletContext().getAttribute(SOLRHOME_ATTRIBUTE);
- String solrHome = "/Users/xxx/develop/workspace/github/lucene-solr/solr/server/solr";
- objc[5820]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
- Connected to the target VM, address: '127.0.0.1:61273', transport: 'socket'
- 0 INFO (main) [ ] o.e.j.u.log Logging initialized @975ms
- 292 INFO (main) [ ] o.e.j.s.Server jetty-9.3.8.v20160314
- >>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP
- 633 INFO (main) [ ] o.e.j.w.StandardDescriptorProcessor NO JSP Support for /solr, did not find org.eclipse.jetty.jsp.JettyJspServlet
- 697 INFO (main) [ ] o.a.s.s.SolrDispatchFilter SolrDispatchFilter.init(): sun.misc.Launcher$AppClassLoader@58644d46
- 773 INFO (main) [ ] o.a.s.c.SolrResourceLoader new SolrResourceLoader for directory: '/Users/mazhiqiang/develop/workspace/github/lucene-solr/solr/server/solr'
- 9565 INFO (main) [ ] o.a.s.c.SolrResourceLoader JNDI not configured for solr (NoInitialContextEx)
- 9565 INFO (main) [ ] o.a.s.c.SolrResourceLoader solr home defaulted to 'solr/' (could not find system property or JNDI)
- 9582 INFO (main) [ ] o.a.s.c.SolrXmlConfig Loading container configuration from /Users/mazhiqiang/develop/workspace/github/lucene-solr/solr/server/solr/solr.xml
- 9785 INFO (main) [ ] o.a.s.c.CorePropertiesLocator Config-defined core root directory: /Users/mazhiqiang/develop/workspace/github/lucene-solr/solr/server/solr
- 9853 INFO (main) [ ] o.a.s.c.CoreContainer New CoreContainer 313239742
- 9853 INFO (main) [ ] o.a.s.c.CoreContainer Loading cores into CoreContainer [instanceDir=/Users/mazhiqiang/develop/workspace/github/lucene-solr/solr/server/solr]
- 9855 WARN (main) [ ] o.a.s.c.CoreContainer Couldn't add files from /Users/mazhiqiang/develop/workspace/github/lucene-solr/solr/server/solr/lib to classpath: /Users/mazhiqiang/develop/workspace/github/lucene-solr/solr/server/solr/lib
- 9893 INFO (main) [ ] o.a.s.h.c.HttpShardHandlerFactory created with socketTimeout : 600000,connTimeout : 60000,maxConnectionsPerHost : 20,maxConnections : 10000,corePoolSize : 0,maximumPoolSize : 2147483647,maxThreadIdleTime : 5,sizeOfQueue : -1,fairnessPolicy : false,
- 10404 INFO (main) [ ] o.a.s.u.UpdateShardHandler Creating UpdateShardHandler HTTP client with params:
- 10408 INFO (main) [ ] o.a.s.l.LogWatcher SLF4J impl is org.slf4j.impl.Log4jLoggerFactory
- 10409 INFO (main) [ ] o.a.s.l.LogWatcher Registering Log Listener [Log4j (org.slf4j.impl.Log4jLoggerFactory)]
- 10415 INFO (main) [ ] o.a.s.c.CoreContainer Security conf doesn't exist. Skipping setup for authorization module.
- 10416 INFO (main) [ ] o.a.s.c.CoreContainer No authentication plugin used.
- 10615 INFO (main) [ ] o.a.s.c.CorePropertiesLocator Looking for core definitions underneath /Users/mazhiqiang/develop/workspace/github/lucene-solr/solr/server/solr
- 10658 INFO (main) [ ] o.a.s.c.CorePropertiesLocator Found 0 core definitions
- 10746 INFO (main) [ ] o.a.s.s.SolrDispatchFilter user.dir=/Users/mazhiqiang/develop/workspace/github/lucene-solr
- 10746 INFO (main) [ ] o.a.s.s.SolrDispatchFilter SolrDispatchFilter.init() done
- 10772 INFO (main) [ ] o.e.j.s.h.ContextHandler Started o.e.j.w.WebAppContext@2e6a5539{/solr,file:///Users/mazhiqiang/develop/workspace/github/lucene-solr/solr/webapp/web/,AVAILABLE}{solr/webapp/web}
- 10802 INFO (main) [ ] o.e.j.s.ServerConnector Started ServerConnector@6436a7db{HTTP/1.1,[http/1.1]}{0.0.0.0:8983}
- 10802 INFO (main) [ ] o.e.j.s.Server Started @11904ms
- Caused by: java.lang.ClassNotFoundException: com.chenlb.mmseg4j.solr.MMSegTokenizerFactory
- at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
- at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
- at java.lang.Class.forName0(Native Method)
- at java.lang.Class.forName(Class.java:340)
- at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:520)
本地通过源码方式启动solr的更多相关文章
- ubuntu 16.04通过源码方式安装nginx
1.下载nginx源码包 wget http://nginx.org/download/nginx-1.11.12.tar.gz 2.解压该tar包 tar zxvf nginx-1.11.12.t ...
- 通过源码成功启动odoo 10.0
- 如何通过源码包的方式在linux安装python36
背景: python34的安装非常简单,直接用yum就可以安装,但是安装最新版的python36通过yum方式是不行的,需要通过源码包进行安装 具体步骤如下: 1.安装openssl静态库[pip3安 ...
- 通过源码安装PostgresSQL
通过源码安装PostgresSQL 1.1 下载源码包环境: Centos6.8 64位 yum -y install bison flex readline-devel zlib-devel yum ...
- 通过源码分析Java开源任务调度框架Quartz的主要流程
通过源码分析Java开源任务调度框架Quartz的主要流程 从使用效果.调用链路跟踪.E-R图.循环调度逻辑几个方面分析Quartz. github项目地址: https://github.com/t ...
- Kafka详解六:Kafka如何通过源码实现监控
问题导读: 1.kafka的消费者组的消费偏移存储,kafka支持两个版本? 2.ConsumerOffsetChecker类的作用是什么? 3.Kafka如何通过源码实现 ...
- 通过源码了解ASP.NET MVC 几种Filter的执行过程
一.前言 之前也阅读过MVC的源码,并了解过各个模块的运行原理和执行过程,但都没有形成文章(所以也忘得特别快),总感觉分析源码是大神的工作,而且很多人觉得平时根本不需要知道这些,会用就行了.其实阅读源 ...
- Linux下通过源码编译安装程序
本文简单的记录了下,在linux下如何通过源码安装程序,以及相关的知识.(大神勿喷^_^) 一.程序的组成部分 Linux下程序大都是由以下几部分组成: 二进制文件:也就是可以运行的程序文件 库文件: ...
- 通过源码了解ASP.NET MVC 几种Filter的执行过程 在Winform中菜单动态添加“最近使用文件”
通过源码了解ASP.NET MVC 几种Filter的执行过程 一.前言 之前也阅读过MVC的源码,并了解过各个模块的运行原理和执行过程,但都没有形成文章(所以也忘得特别快),总感觉分析源码是大神 ...
随机推荐
- KMP&拓展KMP
KMP算法 说明 KMP算法是一种比较高效的字符串匹配算法,可以在线性时间内求出一个串在另一个串的所有匹配位置. 解析 详解KMP 设模板串是 \(pattern\) 令 \(next[i] = ma ...
- adb 安装软件
一.连接 adb connect 192.168.1.10 输出 connected to 二.查看设备 adb devices 输出 List of devices attached device ...
- Strategy(策略)
意图: 定义一系列的算法,把它们一个个封装起来, 并且使它们可相互替换.本模式使得算法可独立于使用它的客户而变化. 适用性: 许多相关的类仅仅是行为有异.“策略”提供了一种用多个行为中的一个行为来配置 ...
- adb相关指令
adb rootadb connect 172.16.20.162 //通过adb连接远程设备adb pull /data/data/com.xiaomi.voicecontrol /Users/r ...
- npm 报错: npm ERR! Please try running this command again as root/Administrator.
解决方法: 1. 需要删除npmrc文件. 强调:不是nodejs安装目录npm模块下的那个npmrc文件 而是在C:\Users\{账户}\下的.npmrc文件.. 2. 在win8或者win10下 ...
- hdu 5696 区间的价值
套路题 求出来以每个数为最大值/最小值时的一个区间范围, 然后枚举每个数为最大值的情况更新即可, 但是对于重复数的话需要特判一下, 假如用map记录来特判复杂度就是$O(nlogn)$, 不过题目说了 ...
- KMP与AC自动机
KMP算法主要思想就是预处理出失配函数, 从而减少匹配失败时的回溯, 复杂度是$\Theta(m+n)$, 已达到理论下界 c++代码如下 int n, f[N]; char t[N], p[N]; ...
- poj 2096 Collecting Bugs 概率dp 入门经典 难度:1
Collecting Bugs Time Limit: 10000MS Memory Limit: 64000K Total Submissions: 2745 Accepted: 1345 ...
- django-pure-pagination使用方法
1.pip install django-pure-pagination 安装包. 2.加入app: 'pure_pagination', 3.在view中写入分布逻辑. try: page = r ...
- Location对象的页面跳转方法介绍
JavaScript中使用location对象可以通过很多种方式改变浏览器的位置.最常用的方法应该是下面几种: demo.js 1 2 3 location.href = "http://w ...