ibm-cloud

IBM Watson Knowledge Studio 2.0 - deploying a rule-based model is experimental. What does that mean?

廉价感情. 提交于 2019-12-13 10:38:00
问题 When building a rule-based model in Watson Knowledge Studio, a reminder appears saying:- The rule-based model that you build here can be deployed and used by other Watson services for experimental purposes only. In the online documentation, at the beginning of chapter "Deploying a rule-based annotator to IBM Watson Discovery", another similar mention appears:- Attention: This is currently an experimental feature of the service. I started building an application based on a WKS custom rule

Unable to Change Content-Type to “application/json; charset=UTF-8”

做~自己de王妃 提交于 2019-12-13 10:19:28
问题 I am using IBM API connect with Gateway script to change content type to "application/json; charset=UTF-8" but looks like by default it gives "application/json" in header. I am calling Google Translate API and needs to pass some special character. What am I missing here? 回答1: Just answering to my own question. I have used "application/json; charset=UTF-8" in the map policy just before sending the JSON response and it worked. If it is not set properly then Gateway Script wont be able to change

Sign up 404 page

血红的双手。 提交于 2019-12-13 09:06:59
问题 Is anyone else getting a 404 page when trying to sign up for a bluemix account? Here is the link to the website: https://console.ng.bluemix.net 回答1: On IBM Bluemix status page has been published a notification for an issue on the platform https://developer.ibm.com/bluemix/support/#status IBM Bluemix Platform issue on US South region IBM Bluemix users are getting an error when trying to log into the US South region through the web console UI and the CLI. The operations team is investigating

How to print the answer returned by IBM Watson Assistant?

℡╲_俬逩灬. 提交于 2019-12-13 08:58:53
问题 I have a Python Flask app that tries to use IBM Watson Assistant. Below is a code snippet that invokes the message API function. How do I print the returned answer? import json, _watson, requests, jsonify import watson_developer_cloud from flask import Flask, render_template from flask_socketio import SocketIO, send @app.route('/') def index(): return render_template('index.html') @socketio.on('message') def handleMessage(msg): print("Message: "+msg) msg = _watson.conversacion(msg) send(msg,

How to download node application (Source code) deployed as a cloud foundry app in IBM bluemix?

杀马特。学长 韩版系。学妹 提交于 2019-12-13 08:34:51
问题 I have created a cloud foundry app to deploy node js application in bluemix. I have used the commands which they given in Getting Started, to deploy my node js application from local to bluemix. Application is deployed successfully and app starts running. Now I have to download the code (the entire project folder) I have deployed, how can I do this? 回答1: It isn't recommended to write files to the filesystem in a Cloud Foundry app on Bluemix, it's purely a runtime. If you need to store files,

How to get an API key for MessageHub's management rest API?

空扰寡人 提交于 2019-12-13 07:23:32
问题 I need to programmmtically create topics - see my other question here: MessageHub - api for creating topics? The MessageHub Management API requires an apiKey to interact with it. How do I generate an API key? I'm guessing this is a generic bluemix authentication service, but I'm not sure where this resides or how I can interact with it. 回答1: Go to the Bluemix console and navigate to Message Hub’s Bluemix dashboard by clicking on your service. Then switch to the “Service Credentials” tab and

Import from python library on bluemix

☆樱花仙子☆ 提交于 2019-12-13 07:21:35
问题 I need to use the following imports in a Jupyter notebook on IBM Bluemix import swiftclient from keystoneclient import client If I were on my local workstation, I could use pip to install the libraries, but how do I do it on Bluemix? Another post suggests adding a requirements.txt file and a Procfile file into the root directory of my Python application, but I don't see how to do this with a notebook. Any suggestions? Here is the code: #!pip install --upgrade pip !pip install python

how to debug failed oozie workflows on Analytics for Apache Hadoop?

血红的双手。 提交于 2019-12-13 07:17:38
问题 I'm trying to run an oozie workflow on Bluemix Analytics for Apache Hadoop , but it it failing. The output from calling Workflow status is as follows: ... { "errorMessage": "Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]", "status": "ERROR", "stats": null, "data": null, "transition": "fail", "externalStatus": "FAILED/KILLED", "cred": "null", "conf": "<shell xmlns=\"uri:oozie:shell-action:0.2\"> <job-tracker>****:8050</job-tracker> <name-node>hdfs://****:8020</name-node>

Bluemix port binding

梦想与她 提交于 2019-12-13 06:52:34
问题 Official instructions state the following: ice ip bind <Address> <Your_Container> where <Address> is the returned IP address. Your application is set up and ready to use. If you used ibmliberty as your base image in the Dockerfile, as in the previous example, you can access your running IBM WebSphere® Application Server Liberty Profile server by pointing your web browser to: http://:9080/ I got the list of my IPs using "sudo ice ip list". Then I tried to bind the IP using three different

%AddJar for hellospark_2.10-1.0.jar giving Name: java.util.zip.ZipException Message: error in opening zip file

此生再无相见时 提交于 2019-12-13 06:45:40
问题 Using Bluemix (console.ng.bluemix.net) Spark notebook to run the above step. I am getting an exception error. This is my build (using standard procedure outlined with docs; used sbt). I tried bunch of others from publicly posted on github as well as jazz hub. All stop at this very first step, with an exception. I am unable to proceed further - this started at around this time yesterday (was not a problem previously). Thank you. 来源: https://stackoverflow.com/questions/36873865/addjar-for