ibm-cloud

How to troubleshoot a DSX scheduled notebook?

六眼飞鱼酱① 提交于 2019-11-27 07:25:00
问题 I have a DSX notebook that I can run manually usng the DSX user interface and it populates some data in a Cloudant database. I have scheduled the notebook to run hourly. Overnight I would have expected the job to have run many times, but the Cloudant database has not been updated. How can I debug the scheduled job? Are there any logs that I can check to verify that the notebook has actually been executed? Is the output from my notebook saved to log files? Where can I find these files? 回答1:

When does the Apache Kafka client throw a “Batch Expired” exception?

梦想的初衷 提交于 2019-11-27 06:53:34
Using the Apache Kafka Java client (0.9), I'm trying to send a long series of records to the broker using the Kafka Producer class . The asynchronous send method returns immediately for a while, then starts blocking on each call for a short time period. After around thirty seconds, the client starts throwing exceptions ( TimeoutException ), with the message "Batch expired" . What circumstances cause this exception to be thrown? This exception indicates you are queueing records at a faster rate than they can be sent. When you call the send method, the ProducerRecord will be stored in an

How do I add an action to watson conversation response?

北战南征 提交于 2019-11-27 05:37:09
I've created intent, entity and dialog without a problem. But right now I'm trying to make it so when the user send "goodbye", the application would close. According to the doc, I'll have to name an action that goes along with an intent. How do I do that? Is it through code or through the conversation workspace platform? You can use context variables or action variables for that. How to use context variables? Add in your Advance response the "context" and the values, check my example. I've used the conversation simple for that. In your Watson Developer Cloud - IBM Bluemix - Watson Conversation

How to remove a context variable in Watson Assistant service on IBM Cloud

非 Y 不嫁゛ 提交于 2019-11-27 04:53:06
问题 I am using this, but this only sets it to empty, { "context": { "time": "", "place": "", "things": "", "transport": "" }, "output": {} } I also tried "time": "null" and "time": "$time.remove" 回答1: For those using Watson Assistant on an older API version: The best is to use context.remove() in the output section. I usually have an extra child node for cleanup. { "output": { "text": {}, "deleted": "<? context.remove('eventName') ?> <? context.remove('queryPredicate') ?>" } } Because deleted is

Fabric composer integration with Bluemix blockchain service

守給你的承諾、 提交于 2019-11-27 02:28:23
问题 Can a composer fabric business network, .bna file, be deployed to the bluemix blockchain service today? If so, is there a connection profile example that someone can share? Thanks. 回答1: You can use Composer with the Bluemix Blockchain service today. However, you must be running a local copy of the Composer Playground as the version of Composer running on Bluemix (fabric-composer.mybluemix.net) only supports the web connection profile at the moment. You can set up a local copy of the Composer

Public URLs For Objects In Bluemix Object Storage Service

主宰稳场 提交于 2019-11-26 23:17:40
问题 I would like to upload a number of photos to the Bluemix Object Storage service and then display them in a web app. Right now a GET request to the photo in the object storage container requires and auth token. Is there any way I can create a public URL to the object that would not require an auth token for a GET request? I see there is an option of creating temporary URLs to objects but I don't want the URL to be temporary I want it to live forever. Is the only option to create a long lived

How to make Watson Conversation Api Invoke a web Application Url when User Enters an Input?

我怕爱的太早我们不能终老 提交于 2019-11-26 16:57:34
问题 I have a spring mvc application and I would like to make my user call a bot and the bot based on user input should access a url and based on the response provide an answer.How could I achieve this in Java? 回答1: There is no direct way to do it. However, Watson Conversation does provide a mechanism to handle such requests. You will need to tell the calling Java app that a url needs to be invoked. This is done by using two features: Context.request skip_user_input A request is a special context

When does the Apache Kafka client throw a “Batch Expired” exception?

怎甘沉沦 提交于 2019-11-26 12:39:32
问题 Using the Apache Kafka Java client (0.9), I\'m trying to send a long series of records to the broker using the Kafka Producer class. The asynchronous send method returns immediately for a while, then starts blocking on each call for a short time period. After around thirty seconds, the client starts throwing exceptions (TimeoutException), with the message \"Batch expired\" . What circumstances cause this exception to be thrown? 回答1: This exception indicates you are queueing records at a