SOLR配置麻烦(SOLR configuration troule)
我正在按照Youtube上的“在Windows Tutorial上运行Nutch和Solr”教程(第1部分)并尝试正确配置Solr。 我在C:\ Program Files \ Apache Software Foundation \ Tomcat 7.0 \ webapps \ solr \ WEB-INF \ web.xml文件中进行了更改,如教程中所述 - 将solr主路径放入:
<env-entry-value>C:\cygwin64\home\solr\example\solr</env-entry-value>
我在浏览器中获益:
HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init failure: Error opening new searcher, trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Error opening new searcher at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:745) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:307) at ...
当我将文件夹C:\ cygwin64 \ home \ solr \ example \ solr的内容复制到C:\ solr中的新文件夹并将solr路径更改为:
<env-entry-value>C:\solr</env-entry-value>
它工作正常。 当我设置Java系统属性solr.solr.home时,我的Solr Home:Windows> Start> Monitor Tomcat> Java Tab> Java Options - >输入以下条目:
-Dsolr.solr.home=c:\solr
它在这个cae中工作得很好,但是当我把它放入时:
-Dsolr.solr.homeC:\cygwin64\home\solr\example\solr
我希望solr能像在教程中那样在cygwin下工作,因为稍后可能需要在该文件夹中,而我无法在问题所在的地方找到它。 提前致谢。
I am following the tutorial "Running Nutch and Solr on Windows Tutorial" (Part 1) from Youtube and trying to configure properly Solr. I make the change in the C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\solr\WEB-INF\web.xml file as explained in the tutorial - putting the solr home path:
<env-entry-value>C:\cygwin64\home\solr\example\solr</env-entry-value>
And I gain in the browser:
HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init failure: Error opening new searcher, trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Error opening new searcher at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:745) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:307) at ...
When I copy the content of the folder C:\cygwin64\home\solr\example\solr to a new folder at C:\solr and the change the solr path to:
<env-entry-value>C:\solr</env-entry-value>
it works fine. It is the same situation when I Set the Java system property solr.solr.home my Solr Home:Windows > Start > Monitor Tomcat > Java Tab > Java Options -> Enter the following entry:
-Dsolr.solr.home=c:\solr
It works fine in this cae, but not when I put:
-Dsolr.solr.homeC:\cygwin64\home\solr\example\solr
I want solr to work under cygwin as in the tutorial, since it might be needed in that folder later, and I can't get it where could be the problem. Thanks in advance.
原文:https://stackoverflow.com/questions/25963457
最满意答案
CFMutableDictionary
的文档说:
CFDictionary
Reference提供了管理字典的基本接口。The documentation for
CFMutableDictionary
says:The basic interface for managing dictionaries is provided by
CFDictionary
Reference.... which leads you to
CFDictionaryGetValue()
.
相关问答
更多-
对字典中的值进行排序以检索每个键的最大值(Sorting Values in a dictionary to retrieve the maximum value for each key)[2023-02-27]
值应该是整数列表,而不是字符串列表。 In [29]: dic = {'bob':[0,5,1], 'annie':[2,4,0], 'charles':[0,7,0]} In [30]: for k in sorted(dic.keys()): print k, max(dic[k]) ....: annie 4 bob 5 charles 7 The values should be lists of integers, not lists of strings. In [2 ... -
你正在做的是你将字典推入数组。 如果person.id是唯一的,那么你可以这样做: var personDict = {} personDict[person.id] = person 然后personDict[personID]将工作。 如果你想保留你的结构,那么你必须在数组内搜索它: var personArray = []; personArray.push({ key: person.id, value:person }); var personID = person.id; ...
-
您可以with()函数而不是all()来调用。 所以,如果您尝试以下方法: $requirements = Requirement::with('destination', 'applier', 'doc')->get(); 使它成为dd($requirements)并查看输出。 希望它会奏效。 You can call with() function instead of all(). So if you try this following : $requirements = Requiremen ...
-
如何从CFMutableDictionary中检索特定键的值(How to retrieve the values for the particular key from CFMutableDictionary)[2023-05-01]
CFMutableDictionary的文档说: CFDictionary Reference提供了管理字典的基本接口。 ...这CFDictionaryGetValue()您引导至CFDictionaryGetValue() 。 The documentation for CFMutableDictionary says: The basic interface for managing dictionaries is provided by CFDictionary Reference. ... whi ... -
如何使用我的哈希键作为正则表达式来检索值?(How can I use my hash keys as regexes to retrieve values? [closed])[2021-11-28]
听起来好像你想要Tie :: RegexpHash ,它允许你为一个正则表达式的哈希键赋值,然后通过传递与正则表达式匹配的任何键来检索值。 来自文档的示例: use Tie::RegexpHash; my %hash; tie %hash, 'Tie::RegexpHash'; $hash{ qr/^5(\s+|-)?gal(\.|lons?)?/i } = '5-GAL'; $hash{'5 gal'}; # returns "5-GAL" $hash{'5GAL'}; # re ... -
假设配置文件只包含var = value声明,每个声明占用一行。 configfile=./Configuration.conf . "$configfile" declare -A configlist while IFS='=' read -r key val ; do # skip empty / commented lines and obviously invalid input [[ $key =~ ^[[:space:]]*[_[:alpha:]] ]] || continue ...
-
你能做的是: Map
> tempMap = new HashMap >(); tempMap.put("1", new LinkedList ()); tempMap.get("1").add("X"); tempMap.get("1").add("Y"); tempMap.get("1").add("Z"); for(String value : tempMap.get("1")) { //do some ... -
您可以使用allKeysForObject获取与值匹配的键。 您的词典可能有多个键用于同一个对象。 You can get the keys matching the value with allKeysForObject. Your dictionary could have more than one key for the same object.
-
Array('Test', 'Testing', 'Tester'), 1 => Array('Test2')); Print_R($Array[0]); // Array ( [0] => Test [1] => Testing [2] => Tester ) ?> 啊,我忘记了嵌套数组。 对不起,哈哈,但是对于那些可能需要答案的人来说,你走了。 Array('Test' ...
-
首先,您可以按原样将NSvalue放在CFMutableDictionary中,因此答案是“使用NSValue”。 但我认为你的其余问题是“没有使用任何Cocoa对象。” 在这种情况下,只需创建一个非保留的CFMutableDictionary,您就可以将任何指针放入其中。 有关示例代码,请参阅“定义自定义集合回调” 。 我经常使用这些。 请记住,这些仍然必须是指针,因此您将不得不在堆上分配结构,而不是堆栈。 这意味着内存管理现在是您的问题。 当然你可以创建一个自定义的回调集,它可以做你想做的任何事情,所以 ...