Rush installation and integration with Orion Context Broker

泄露秘密 提交于 2019-12-02 13:09:05

问题


After having running the listener and one time a consumer in the Rush, I run:

contextBroker -rush localhost:5001

I made sure to use Orion 0.17 instead of 0.14 and what It's shown after enter to the /version url is:

<orion>
<version>0.17.0</version>
<uptime>0 d, 0 h, 12 m, 14 s</uptime>
<git_hash>127793ff921b37a6a570cd315ddce9a3ec541ccf</git_hash>
<compile_time>Fri Nov 28 09:41:22 CET 2014</compile_time>
<compiled_by>fermin</compiled_by>
<compiled_in>centollo</compiled_in>
</orion>

Now Rush relayer works fine, what it's shown in the terminal is :

[root@fiware ngsi-proxy]# contextBroker -rush localhost:5001INFO@15:49:27  contextBroker.cpp[1348]: Orion Context Broker is running
[root@fiware ngsi-proxy]# INFO@15:49:27  MongoGlobal.cpp[164]: Successful connection to database
INFO@15:49:27  contextBroker.cpp[1157]: Connected to mongo at localhost:orion
INFO@15:49:28  MongoGlobal.cpp[483]: Database Operation Successful ({ conditions.type: "ONTIMEINTERVAL" })
INFO@15:49:28  contextBroker.cpp[1435]: Startup completed
[root@fiware ngsi-proxy]# INFO@16:01:41  rest.cpp[667]: Starting transaction from 181.64.209.16:8204/version
INFO@16:01:41  rest.cpp[380]: Transaction ended
INFO@16:01:42  rest.cpp[667]: Starting transaction from 181.64.209.16:8204/favicon.ico
WARNING@16:01:42  badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@16:01:42  rest.cpp[380]: Transaction ended

回答1:


You should use http://myorionserver:1026 for filling the NGSI Server URL setting as this is the URL for your Orion Context Broker instance. Make sure your orion context broker is accessible from outside by opening the following URL: http://myorionserver:1026/version. You should obtain something similar this:

<orion>
  <version>0.17.0</version>
  <uptime>0 d, 4 h, 38 m, 48 s</uptime>
  <git_hash>127793ff921b37a6a570cd315ddce9a3ec541ccf</git_hash>
  <compile_time>Fri Nov 28 09:41:22 CET 2014</compile_time>
  <compiled_by>fermin</compiled_by>
  <compiled_in>centollo</compiled_in>
</orion>

Check your firewall configuration if you have problems connecting to your orion server. Everything else seems to be ok.

UPDATE: After your update, seems that the problem is related to the version of the Orion Context Broker you were using. Rush integration needs at least version 0.14.1, but I recommend you to use at least version 0.17 as this version contains, among other things, important fixes regarding Rush integration. In general is always a good idea to update to the latest stable version of Context Broker ;-)



来源:https://stackoverflow.com/questions/27318463/rush-installation-and-integration-with-orion-context-broker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!