Can't connect Watson IoT Platform to Cloudant

感情迁移 提交于 2019-12-13 03:23:01

问题


I've been trying for some time now to connect my Watson IoT Platform to a Cloudant database as a Historian service.

I´ve followed instructions from a variety of tutorials available but one service never appears as an possible connection to the other, or as an extension.

Here is one tutorial that I've tried https://console.bluemix.net/docs/services/IoT/cloudant_connector.html#cloudant_main

This is my resources dashboard. I've read that I should create both services in the same space (projetos.frondizi@gmail.com / dev), but when I'm creating the Cloudant service it won't let me choose.

Any insights on how to connect these services?

Thanks!


回答1:


You need to create an alias from the Cloudant service so that the IoT Service can recognize it. That can be done via cf console, as such:

1) Install cf https://console.bluemix.net/docs/cli/reference/ibmcloud/download_cli.html#install_use

2) Run below commands:

ibmcloud login -a https://api.ng.bluemix.net

ibmcloud target --cf-api https://api.ng.bluemix.net -o projetos.frondizi@gmail.com -s dev

ibmcloud resource service-alias-create iot-cloudat-alias --instance-name 'Cloudant-zw'

If successful, you can see the alias under the IoT service in the IBM Cloud dashboard.

3) Launch the IoT Dashboard and setup extension



来源:https://stackoverflow.com/questions/54275906/cant-connect-watson-iot-platform-to-cloudant

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