我需要在 fedora commons 中设置 triplestore 和 solr 进行外部搜索吗?
do I need to set up triplestore along with solr for external search in fedora commons?
我已经设置了 solr、camel-toolbox:fcrepo-indexing-solr 并将可索引 属性 添加到存储库对象中。
那么,我还需要设置 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 : found /views/mode-root.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,230 - ResourceManager : found /views/mode-root.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,231 - Could not load resource '/views/mode-repository.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader:
ClasspathResourceLoader Error: cannot find resource /views/mode-repository.vsl
2016-04-03 16:50:25,231 - Could not load resource '/views/mode-repository.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader:
ClasspathResourceLoader Error: cannot find resource /views/mode-repository.vsl
2016-04-03 16:50:25,231 - Could not load resource '/views/nt-base.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: Classpat
hResourceLoader Error: cannot find resource /views/nt-base.vsl
2016-04-03 16:50:25,231 - Could not load resource '/views/nt-base.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: Classpat
hResourceLoader Error: cannot find resource /views/nt-base.vsl
2016-04-03 16:50:25,232 - Could not load resource '/views/mix-created.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: Clas
spathResourceLoader Error: cannot find resource /views/mix-created.vsl
2016-04-03 16:50:25,232 - Could not load resource '/views/mix-created.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: Clas
spathResourceLoader Error: cannot find resource /views/mix-created.vsl
2016-04-03 16:50:25,235 - ResourceManager : found /views/jcr-nodetypes.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,235 - ResourceManager : found /views/jcr-nodetypes.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,238 - ResourceManager : found /views/node.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,238 - ResourceManager : found /views/node.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,241 - ResourceManager : found /views/fcr-versions.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,241 - ResourceManager : found /views/fcr-versions.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,243 - ResourceManager : found /views/fcr-fixity.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,243 - ResourceManager : found /views/fcr-fixity.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
和transaction.log只包含这个:
2016-04-03 16:50:18,286 [main] INFO com.arjuna.ats.arjuna - ARJUNA012163: Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 35848
2016-04-03 16:50:18,298 [main] INFO com.arjuna.ats.arjuna - ARJUNA012337: TransactionStatusManagerItem host: 127.0.0.1 port: 35848
2016-04-03 16:50:18,328 [main] INFO com.arjuna.ats.arjuna - ARJUNA012170: TransactionStatusManager started on port 35848 and host 127.0.0.1 with service com.arjuna.ats
.arjuna.recovery.ActionStatusService
但是在端口 35848 上的 netstat 输出中没有 运行 服务。
我想确保这个解决方案可供其他可能偶然发现它的人使用。这个问题也由 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 事件并将 content/updates 发送到搜索引擎,例如 Solr。 Solr 将作为 Fedora Commons 系统的外部搜索服务。最后,推荐使用 Karaf 作为部署 Apache Camel 的方式。
我在下面引用了答案。
You will find some information on this page under "Deployment": https://wiki.duraspace.org/display/FEDORA4x/Setup+Camel+Message+Integrations
Basically, though, the first time you start Karaf, you use $KARAF_HOME/bin/karaf
From within the console, you install the "service wrapper":
$> feature:install wrapper
$> wrapper:install
Then, you can quit the karaf session (CTRL-d). From there, Karaf can be started either as a system service:
service karaf-service start
or manually:
$KARAF_HOME/bin/karaf-service start
Now, in order to connect to Karaf, you can either use SSH:
ssh -p8101 -lkaraf localhost (the default pw is 'karaf')
or simply:
$KARAF_HOME/bin/client
For more details, I would recommend the Karaf documentation: http://karaf.apache.org/documentation.html
我已经设置了 solr、camel-toolbox:fcrepo-indexing-solr 并将可索引 属性 添加到存储库对象中。 那么,我还需要设置 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 : found /views/mode-root.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,230 - ResourceManager : found /views/mode-root.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,231 - Could not load resource '/views/mode-repository.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: ClasspathResourceLoader Error: cannot find resource /views/mode-repository.vsl
2016-04-03 16:50:25,231 - Could not load resource '/views/mode-repository.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: ClasspathResourceLoader Error: cannot find resource /views/mode-repository.vsl
2016-04-03 16:50:25,231 - Could not load resource '/views/nt-base.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: Classpat hResourceLoader Error: cannot find resource /views/nt-base.vsl
2016-04-03 16:50:25,231 - Could not load resource '/views/nt-base.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: Classpat hResourceLoader Error: cannot find resource /views/nt-base.vsl
2016-04-03 16:50:25,232 - Could not load resource '/views/mix-created.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: Clas spathResourceLoader Error: cannot find resource /views/mix-created.vsl
2016-04-03 16:50:25,232 - Could not load resource '/views/mix-created.vsl' from ResourceLoader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: Clas spathResourceLoader Error: cannot find resource /views/mix-created.vsl
2016-04-03 16:50:25,235 - ResourceManager : found /views/jcr-nodetypes.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,235 - ResourceManager : found /views/jcr-nodetypes.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,238 - ResourceManager : found /views/node.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,238 - ResourceManager : found /views/node.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,241 - ResourceManager : found /views/fcr-versions.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,241 - ResourceManager : found /views/fcr-versions.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,243 - ResourceManager : found /views/fcr-fixity.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2016-04-03 16:50:25,243 - ResourceManager : found /views/fcr-fixity.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
和transaction.log只包含这个:
2016-04-03 16:50:18,286 [main] INFO com.arjuna.ats.arjuna - ARJUNA012163: Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 35848
2016-04-03 16:50:18,298 [main] INFO com.arjuna.ats.arjuna - ARJUNA012337: TransactionStatusManagerItem host: 127.0.0.1 port: 35848
2016-04-03 16:50:18,328 [main] INFO com.arjuna.ats.arjuna - ARJUNA012170: TransactionStatusManager started on port 35848 and host 127.0.0.1 with service com.arjuna.ats
.arjuna.recovery.ActionStatusService
但是在端口 35848 上的 netstat 输出中没有 运行 服务。
我想确保这个解决方案可供其他可能偶然发现它的人使用。这个问题也由 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 事件并将 content/updates 发送到搜索引擎,例如 Solr。 Solr 将作为 Fedora Commons 系统的外部搜索服务。最后,推荐使用 Karaf 作为部署 Apache Camel 的方式。
我在下面引用了答案。
You will find some information on this page under "Deployment": https://wiki.duraspace.org/display/FEDORA4x/Setup+Camel+Message+Integrations
Basically, though, the first time you start Karaf, you use $KARAF_HOME/bin/karaf
From within the console, you install the "service wrapper":
$> feature:install wrapper $> wrapper:install
Then, you can quit the karaf session (CTRL-d). From there, Karaf can be started either as a system service:
service karaf-service start
or manually:
$KARAF_HOME/bin/karaf-service start
Now, in order to connect to Karaf, you can either use SSH:
ssh -p8101 -lkaraf localhost (the default pw is 'karaf')
or simply:
$KARAF_HOME/bin/client
For more details, I would recommend the Karaf documentation: http://karaf.apache.org/documentation.html