[ https://jira.fiware.org/browse/HELP-13376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fernando Lopez deleted HELP-13376:
----------------------------------
> [fiware-stackoverflow] How I specify the Fiware-Service and Fiware-ServicePath fields at Orion that set the name of MySQL database and table in Cygnus?
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HELP-13376
> URL: https://jira.fiware.org/browse/HELP-13376
> Project: Help-Desk
> Issue Type: Monitor
> Reporter: Backlog Manager
> Labels: fiware, fiware-cygnus, fiware-orion
>
> Created question in FIWARE Q/A platform on 23-04-2015 at 09:04
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/29816214/how-i-specify-the-fiware-service-and-fiware-servicepath-fields-at-orion-that-set
> +Question:+
> How I specify the Fiware-Service and Fiware-ServicePath fields at Orion that set the name of MySQL database and table in Cygnus?
> +Description:+
> So far I have configured ContextBroker to send data to Cygnus which in turn saves data by default names in database.
> But what if I want to target a specific database with a specific table?
> I know I have to set:
> dbName=<fiware-service>
> tableName=<fiware-servicePath>_<entityId>_<entityType>
> I dont know where that file is, and I know it isnt in /etc/sysconfig/contextBroker because that folder doesnt exist.
> EDIT1: here is my updatecontext:
> (curl localhost:1026/NGSI10/updateContext -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Fiware-Service: FiwareDatabase' --header 'Fiware-ServicePath: /AllSensors' -d @- ) <<EOF
> {
> "contextElements": [
> {
> "type": "Television",
> "isPattern": "false",
> "id": "TV2",
> "attributes": [
> {
> "name": "channel",
> "type": "integer",
> "value": "14"
> },
> {
> "name": "volume",
> "type": "float",
> "value": "9"
> }
> ]
> }
> ],
> "updateAction": "APPEND"
> }
> EOF
> As I said the table does get automatically created but the database doesnt.
--
This message was sent by Atlassian JIRA
(v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy