1

我已经设置了 solr、camel-toolbox:fcrepo-indexing-solr 并将 indexable 属性添加到存储库对象中。那么,我还需要设置 fuseki 或 sesame 还是单独设置 solr 就可以了?

我正在做一些交易,创建新对象或更新。但我在 solr 查询页面中找不到任何索引对象。

从 netstat,我可以看到来自 61616(JMS 端口)44863 和 44862(camel-solr-indexing 端口)的通信,反之亦然。

但没有与 solr 独立服务器通信。所以,我猜索引对象根本没有在 solr 中创建。

我在这里想念什么?

我可以找到两个日志:transaction.log 和 velocity.log。如果我在 Fedora 对象上完成的最近交易有任何条目,我想获取信息。但我什么也找不到。供您参考,velocity.log 的结尾如下:

.

.

.

2016-04-03 16:50:25,230 - ResourceManager:使用加载器 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 找到 /views/mode-root.vsl

2016-04-03 16:50:25,230 - ResourceManager:使用加载器 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 找到 /views/mode-root.vsl

2016-04-03 16:50:25,231 - 无法从 ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 加载资源“/views/mode-repository.vsl”:ClasspathResourceLoader 错误:找不到资源 /views/模式存储库.vsl

2016-04-03 16:50:25,231 - 无法从 ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 加载资源“/views/mode-repository.vsl”:ClasspathResourceLoader 错误:找不到资源 /views/模式存储库.vsl

2016-04-03 16:50:25,231 - 无法从 ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 加载资源“/views/nt-base.vsl”:Classpat hResourceLoader 错误:找不到资源/views /nt-base.vsl

2016-04-03 16:50:25,231 - 无法从 ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 加载资源“/views/nt-base.vsl”:Classpat hResourceLoader 错误:找不到资源/views /nt-base.vsl

2016-04-03 16:50:25,232 - 无法从 ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 加载资源“/views/mix-created.vsl”:类 spathResourceLoader 错误:找不到资源 /views /mix-created.vsl

2016-04-03 16:50:25,232 - 无法从 ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 加载资源“/views/mix-created.vsl”:类 spathResourceLoader 错误:找不到资源 /views /mix-created.vsl

2016-04-03 16:50:25,235 - ResourceManager:找到 /views/jcr-nodetypes.vsl 与加载器 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader

2016-04-03 16:50:25,235 - ResourceManager:找到 /views/jcr-nodetypes.vsl 与加载器 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader

2016-04-03 16:50:25,238 - ResourceManager:使用加载器 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 找到 /views/node.vsl

2016-04-03 16:50:25,238 - ResourceManager:使用加载器 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 找到 /views/node.vsl

2016-04-03 16:50:25,241 - 资源管理器:使用加载器 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 找到 /views/fcr-versions.vsl

2016-04-03 16:50:25,241 - 资源管理器:使用加载器 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 找到 /views/fcr-versions.vsl

2016-04-03 16:50:25,243 - 资源管理器:使用加载器 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 找到 /views/fcr-fixity.vsl

2016-04-03 16:50:25,243 - 资源管理器:使用加载器 org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 找到 /views/fcr-fixity.vsl

并且 transaction.log 仅包含以下内容:

2016-04-03 16:50:18,286 [main] INFO com.arjuna.ats.arjuna - ARJUNA012163:在端口 35848 上启动服务 com.arjuna.ats.arjuna.recovery.ActionStatusService

2016-04-03 16:50:18,298 [main] INFO com.arjuna.ats.arjuna - ARJUNA012337:TransactionStatusManagerItem 主机:127.0.0.1 端口:35848

2016-04-03 16:50:18,328 [main] INFO com.arjuna.ats.arjuna - ARJUNA012170:TransactionStatusManager 在端口 35848 和主机 127.0.0.1 上启动,服务为 com.arjuna.ats

.arjuna.recovery.ActionStatusService

但是端口 35848 上的 netstat 输出中没有正在运行的服务。

4

1 回答 1

0

我想确保任何可能偶然发现它的其他人都可以使用这个解决方案。这个问题也由 OP 发布在 Fedora Community Google Group ( https://groups.google.com/forum/#!searchin/fedora-community/triplestore/fedora-community/Fo4o98P_Tk4/H2WCGl8kEAAJ ) 并由那里的成员回答。

提炼:他们建议使用 Apache Camel 来捕获 Fedora Commons 4.x 事件并将内容/更新发送到搜索引擎,例如 Solr。Solr 将作为 Fedora Commons 系统的外部搜索服务。最后,推荐使用 Karaf 作为部署 Apache Camel 的一种方式。

我在下面引用了答案。

您将在此页面的“部署”下找到一些信息:https ://wiki.duraspace.org/display/FEDORA4x/Setup+Camel+Message+Integrations

不过,基本上,第一次启动 Karaf 时,您使用 $KARAF_HOME/bin/karaf

从控制台中,您安装“服务包装器”:

$> 功能:安装包装器 $> 包装器:安装

然后,您可以退出 karaf 会话 (CTRL-d)。从那里,Karaf 可以作为系统服务启动:

    service karaf-service start 

或手动:

    $KARAF_HOME/bin/karaf-service start 

现在,为了连接到 Karaf,您可以使用 SSH:

    ssh -p8101 -lkaraf localhost (the default pw is 'karaf') 

或者简单地说:

    $KARAF_HOME/bin/client 

有关更多详细信息,我会推荐 Karaf 文档:http ://karaf.apache.org/documentation.html

于 2016-04-05T14:24:41.877 回答