ibm-cloud

Analytics for Apache Hadoop launch fails with ssl_error_weak_server_ephemeral_dh_key

↘锁芯ラ 提交于 2019-12-12 03:58:58
问题 I created service for Analytics for Apache Hadoop and while launching it fails with SSL error 回答1: It is a known issue after last Firefox upgrade. Temporal workaround from Mozilla Support: In FireFox, enter "about:config" in the URL field and press enter. Accept the "This might void your warranty!" warning :) In the search field at the top, enter "security.ssl3.dhe_rsa_aes" Double click each result (128 and 256) to toggle the Value to "false" Now retry your site - it should work now. Remember

How do i declare and increment local variables in db2?

风格不统一 提交于 2019-12-12 03:45:52
问题 I want to show row number for each of result set row, I have this query in mySQL SELECT @rownum := @rownum + 1 row, e.* FROM Employee e, (SELECT @rownum := 0) r Here @rownum is local variable and would increment its value for each result row. How do i write this query in db2 ( ibm's dashdb ) ? 回答1: If you're just looking to number the output rows, you can use the row_number() function: select row_number() over() as row, e.* from Employee e 回答2: If you are looking to set a variable and set a

Recognize undefined Entities in Watson Conversation

北战南征 提交于 2019-12-12 03:34:31
问题 Please, I wanted to know if it is possible to catch different entities on Watson conversation without defining their values. For example, I am working on a Mobile up for room booking in my company and I can't define all the room's names so I want that my Bot recognize the name just according to the used pattern for example "Book @room for tomorrow" and whatever I put in place of @room it takes it as a room name. thank you 回答1: Its now available check out https://console.bluemix.net/docs

An internal error has occurred. The application may still be initializing or the URL used is invalid

寵の児 提交于 2019-12-12 03:33:42
问题 When I try opening the dashDB console from Bluemix, I occasionally get the following error message: An internal error has occurred. The application may still be initializing or the URL used is invalid. Check the URL and try again. For more information, view the server log files. How can I fix this? 回答1: The problem seems to be a cookie caching issue. Get the domain name from the browser window that is displaying the error message. E.g. awh-yp-small02.services.dal.bluemix.net Open cookie page,

bx cf logs gives “Error dialing traffic controller server” when switching region

怎甘沉沦 提交于 2019-12-12 03:26:01
问题 I need a script to collect logs which must switch between regions via a bx login -a . I'm using the bluemix cli so that I can login using an apikey. But when I switch regions the bx cf logs app_name goes haywire. [Ops]$ bx cf logs AppName Invoking 'cf logs AppName'... FAILED Error dialing traffic controller server: websocket: bad handshake. Please ask your Cloud Foundry Operator to check the platform configuration (traffic controller is wss://doppler.eu-gb.bluemix.net:443). [Ops]$ bx api API

Connecting to a postgresql db using JDBC from the Bluemix Apache Spark service

a 夏天 提交于 2019-12-12 03:25:31
问题 I have a problem connecting to my postgresql 8.4 db using Apache Spark service on Bluemix. My code is: %AddJar https://jdbc.postgresql.org/download/postgresql-8.4-703.jdbc4.jar -f val sqlContext = new org.apache.spark.sql.SQLContext(sc) sqlContext.load("jdbc", Map("url" -> "jdbc:postgresql://<ip_address>:5432/postgres? user=postgres&password=<password>", "dbtable" -> "table_name")) And I get the error: Name: java.sql.SQLException Message: No suitable driver found for jdbc:postgresql://:5432

Unable to debug Liberty for Java on Bluemix from Eclipse

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 03:17:41
问题 Eclipse shows liberty-HelloWorld application in "Developing, Debugging" mode. However, none of the breakpoints are being hit and I see the following error message in the logs: Updated app with guid 902a2568-1c6f-473b-88a4-8ba972df59f6 ({"environment_json"=>"PRIVATE DATA HIDDEN"}) Updated app with guid 902a2568-1c6f-473b-88a4-8ba972df59f6 ({"state"=>"STOPPED"}) Stopping app instance (index 0) with guid 902a2568-1c6f-473b-88a4-8ba972df59f6 Stopped app instance (index 0) with guid 902a2568-1c6f

Error on client side when using iBM Bluemix tone analyzer token fetched on server side

荒凉一梦 提交于 2019-12-12 02:46:57
问题 I've already gotten a token on the server side and stored it in a cookie, but I can't seem to figure out why I'm getting an error when I query the api with that token. Here's the jQuery ajax request I'm sending: $.ajax({ url:'https://gateway.watsonplatform.net/tone-analyzer/api/v3/tone', data:{ 'X-Watson-Authorization-Token':readCookie('token'), 'text':input, 'version':'v3', 'version_date':'2016-05-19' }, dataType:'jsonp', contentType:'application/json', method:'GET', success:function(tone){

PHP MQTT subscribe not consistent

萝らか妹 提交于 2019-12-12 02:15:34
问题 I am trying to display some values using MQTT on a PHP based page. The PHP code contains the subscriber. I am using Bluemix IoT service for the MQTT broker. Also, the messages are published via Python code on local machine. When I try to display values on pages using page refresh, the page sometimes fails to display the values. There is no problem at the publisher end as the values are successfully displayed by Bluemix IoT service. My code is as follows: <?php // include class require(

How to schedule my Apache Spark application to run everyday at 00.30 AM(night) in IBM Bluemix?

白昼怎懂夜的黑 提交于 2019-12-12 01:58:14
问题 Hi All & IBM Bluemix team, I am using IBM Analytics for Apache Spark service in IBM Bluemix. I have developed a Apache Spark application and I want to run everyday at 00.30 AM in the night. How to schedule my Apache Spark application to run everyday at 00.30 AM(night) in IBM Bluemix? 回答1: You can use any scheduling tool like (Crontab on linux) that will allow you to run spark-submit.sh script from your machine at a specific time.(in your case 00:30am) A typical crontab entry would look like