ibm-cloud

IBM Bluemix sc not defined

不想你离开。 提交于 2019-12-25 04:26:59
问题 I am getting the following error when I try to run one of the samples that is given for the Apache Spark service on IBM Bluemix: NameErrorTraceback (most recent call last) <ipython-input-5-7de9805c358e> in <module>() ----> 1 set_hadoop_config(credentials_1) <ipython-input-2-e790e4773aec> in set_hadoop_config(credentials) 1 def set_hadoop_config(credentials): 2 prefix = "fs.swift.service." + credentials['name'] ----> 3 hconf = sc._jsc.hadoopConfiguration() 4 hconf.set(prefix + ".auth.url",

Watson IoT Platform stuck in “Binding” state connecting to Cloudant

旧时模样 提交于 2019-12-25 03:44:22
问题 I've been trying for a few days now to use Cloudant as my Watson IoT Platform´s Historian service, but still no success. I've finally managed to connect them with help I got here: Can't connect Watson IoT Platform to Cloudant, so I was able to set the bucket interval, and so on. But though I can see them as connected in each "Connections" tab, no databases were created, and I can´t see Cloudant when I'm setting up my board Card. When I get to the Extensions page on WIoTP and click on the gear

How to pass variables as context to IBM Cloud Watson Assistant with V2?

妖精的绣舞 提交于 2019-12-25 03:34:52
问题 I am trying to use the new API version V2 for IBM Cloud Watson Assistant. Instead of sending a message for a workspace I need to send a message to an assistant. The context structure has global and skill-related sections now. How would my app pass in values as context variables? Where in the structure would they need to be placed? I am using the Python SDK. I am interested in sending information as part of client dialog actions. 回答1: Based on testing the Python SDK and the API V2 using a tool

How does MQ Light assure that message is not removed from queue if app crashes during processing?

隐身守侯 提交于 2019-12-25 01:19:10
问题 How can a receiving app control that the message is not taken out of the queue, till it sends an acknowledgement of the message? For example, a scenario where the receiving app gets the message and crashes post that, the message from MQ perspective would have been sent but the receiving app would not have yet processed it and in that sense there is a possibility of losing messages. Is there a way that we can control when MQ takes off that message from the queue? Similar question from sending

bluemix container cannot add user-defined service and Watson service together

那年仲夏 提交于 2019-12-25 01:17:57
问题 I have created a user-defined service (Compose Mongo DB) and Watson Dialog Service. I want to bind both services to my app deployed in IBM Container, however, I am not able to do. I tried these, but none works: I tried using BIND_TO , but I can only bind 1 service (e.g. Use comma separated using UI - BIND_TO : MongoBridge, WatsonBridge ) When I create bridge CF with 2 services bind, it doesn't work either (e.g. Using UI - BIND_TO : MongoWatsonBridge where MongoWatsonBridge has user-defined

How can I save a binary file to my project assets using project-lib python?

守給你的承諾、 提交于 2019-12-25 00:57:08
问题 The project lib documentation shows how to save a pandas dataframe to the project assets: # Import the lib from project_lib import Project project = Project(sc,"<ProjectId>", "<ProjectToken>") # let's assume you have the pandas DataFrame pandas_df which contains the data # you want to save in your object storage as a csv file project.save_data("file_name.csv", pandas_df.to_csv()) # the function returns a dict which contains the asset_id, bucket_name and file_name # upon successful saving of

How to retrieve the name node host name using Ambari?

时光怂恿深爱的人放手 提交于 2019-12-24 21:18:51
问题 The python-ambariclient library has an api for retrieving the host_components: ambari.services(service_name).components(component_name).host_components How can I extract the name_node for an IBM Analytics Engine cluster? I think I need to make the call: GET https://xxxx.bi.services.us-south.bluemix.net:9443/api/v1/clusters/AnalyticsEngine/services/HDFS/components/NAMENODE?fields=host_components Which retrieves the following information: { "href" : "https://xxxx.bi.services.us-south.bluemix

How to connect the back end and the front end and use the Discovery API in IBM cloud app services?

て烟熏妆下的殇ゞ 提交于 2019-12-24 19:43:36
问题 I am very new to using APIs so please excuse me. I am currently using a Python-Django App service from IBM cloud app services and the IBM Watson Discovery resouce. I have followed all the steps given here: https://console.bluemix.net/docs/apps/tutorials/tutorial_web.html#before-you-begin I have a machine that has docker and so the app got built successfully. However I am lost as to how I am supposed to get the front end ( which I am writing in bootstrap, javascript ) to connect to the backend

DB2 Warehouse on Cloud default PLSQL compatibility

为君一笑 提交于 2019-12-24 18:45:00
问题 How can I find if a DB2 Warehouse on Cloud instance is enabled for Oracle compatibility? What is the default compatibility mode for DB2WoC instance which was provisioned from IBM Cloud? Is there a way to toggle the mode? Thanks. 回答1: Oracle compatibility can only be set at the time of provision. It can't be changed afterwards. If you need to change the setting, you would need to raise a Ticket and see if support will copy your data into a new instance. Alternatively, provision a new instance

My Node Red dashboard disappeared, my app says “not running” but won't restart

こ雲淡風輕ζ 提交于 2019-12-24 18:40:50
问题 I am starting from the position of near absolute ignorance here. I successfully set up a Bluemix account, added devices, got API keys, connected my Raspberry Pi running Node Red and a temperature sensor to Node Red on Bluemix, created a dashboard and was able to get data back and forth between Watson/Bluemix and my Pi. Cool. Unfortunately, I got all that way without ever really understanding the navigation of Watson/Bluemix nor all the terminology. I made NR work both ways and was happy. Then