ibm-cloud

IBM mobile app builder does not see documents in Cloudant database, why?

落花浮王杯 提交于 2019-12-10 23:49:28
问题 I followed the steps in this link Questions and it worked for the connection to the cloudant database. But the " Mobile App Builder " says: there are no documents, but there are over 2000 documents. What is wrong with my configuration? Regards, Thomas 回答1: Mobile App Builder does not support nested objects at the time. The documents in your database contain one nested object. At this time, you could put all the fields in the first level of JSON (date, time, image, etc.), and it should work.

How Can I parse out JSON in a Node-RED Function

一笑奈何 提交于 2019-12-10 22:21:03
问题 I am working with Node-RED in Bluemix for IoT. How can I parse out the individual pieces of information (like the cmdmsg and the tempr) in a function node so I can use it in other nodes in the flow? I'm getting an error when I try (see below) I am receiving the JSON complete message object (from an IoT in Node) that I see in my "debug" node when I set it to look at the complete message object. see the object below. It appears to me that the JSON is formatted correctly. I tried putting the

Cloud foundry app status or health notification?

断了今生、忘了曾经 提交于 2019-12-10 22:17:22
问题 Is there a way to get some notification when a Cloud Foundry application fails or is unreachable? I mean to register to some deployed app and if the status of the application is changed to failed or something, I want to receive a notification. 回答1: On Pivotal Cloud Foundry, when a app crashes, an event is emitted thru the firehose. PCF Metrics tile, available from Pivotal, can be deployed to your PCF foudnation. PCF Metrics will track all events for apps running on the foundation and are

Connecting IBM mobile app builder to Cloudant JSON data - bluemix-mobile-services

风格不统一 提交于 2019-12-10 22:16:05
问题 I am using the IBM Bluemix Mobile App Builder tool and understand that it is currently experimental, but I have been having problems connecting the tool to an existing JSON data source. I have tried connecting to the Cloudant instance within Bluemix, but can't find a way to bind the App Builder tool to the Cloudant DB within Bluemix. I see "Mobile App Builder-6v is not currently authorized to access other service instances. I also tried using the credentials inside Bluemix to get to the JSON

how to add a jar to python notebook on bluemix spark?

本秂侑毒 提交于 2019-12-10 21:43:09
问题 I would like to use spark jdbc with python. First step was to add a jar: %AddJar http://central.maven.org/maven2/org/apache/hive/hive-jdbc/2.0.0/hive-jdbc-2.0.0.jar -f However, the response: ERROR: Line magic function `%AddJar` not found. How can I add JDBC jar files in a python script? 回答1: Presently, this is not possible only from a python notebook; but it is understood as an important requirement. What you can do until this is supported, is from the same spark service instance of your

Bluemix Android Push Notification unable to implement custom sound notification

依然范特西╮ 提交于 2019-12-10 21:28:01
问题 I'm trying to implement Bluemix Push Notification custom sound in Android with Mobile First Services Starter (MFSS) and/or Mobile App Builder. At the moment I can send simple push notifications to devices and works well. The problem comes when I want to play a sound for notification. With MFSS I'm trying using this code: MFPPushNotificationListener notificationListener = new MFPPushNotificationListener() { @Override public void onReceive(final MFPSimplePushNotification message) Log.e("message

Not able to get my application logs using “cf logs my-cool-app” command (CF version 6.11)

会有一股神秘感。 提交于 2019-12-10 21:24:21
问题 I am trying view logs of my running application on Bluemix using : "cf logs my-cool-app" command (CF version 6.11) . If fails with : FAILED Loggregator endpoint missing from config file Anyone seen this issue? 回答1: The problem appears to stem from the use of the 6.11 codebase for CF CLI and the current version of CloudFoundry that Bluemix is running. Good news is that an upcoming upgrade will alleviate the problem. We're investigating potential workarounds. This is just an issue with the CF

How can I change the version of Java used in Bluemix?

大兔子大兔子 提交于 2019-12-10 21:09:52
问题 I have an old legacy Java app that I am trying to run in Bluemix. I would like to use either Java 1.5 or Java 1.6. How would I do this? 回答1: You need to use the Java buildpack, the Java buildpack is available at https://github.com/cloudfoundry/java-buildpack. To use it when you deploy your app you can either add it to manifest.yml or use the Cloud Foundry CLI to specify the buildpack. You can do that with the following. cf push myappname -b https://github.com/cloudfoundry/java-buildpack.git

Why kafka-python fails to connect to Bluemix message hub service?

浪子不回头ぞ 提交于 2019-12-10 21:05:13
问题 I'm trying to connect to a Bluemix Message Hub instance on http://bluemix.net. This simple script #!/usr/bin/env python from kafka import KafkaProducer from kafka.errors import KafkaError kafka_brokers_sasl = [ "kafka01-prod01.messagehub.services.us-south.bluemix.net:9093", "kafka02-prod01.messagehub.services.us-south.bluemix.net:9093", "kafka03-prod01.messagehub.services.us-south.bluemix.net:9093", "kafka04-prod01.messagehub.services.us-south.bluemix.net:9093", "kafka05-prod01.messagehub

Timeout connecting to message-hub on Bluemix

北城余情 提交于 2019-12-10 19:12:55
问题 I'm trying to connect to a Message Hub Service. I can connect if I use the REST API but when I try to connect from my Java program there's always a timeout I'm using the next configuration: Properties producerProps = new Properties(); producerProps.put(SslConfigs.SSL_PROTOCOL_CONFIG, "TLSv1.2"); producerProps.put(SslConfigs.SSL_ENABLED_PROTOCOLS_CONFIG, "TLSv1.2"); producerProps.put(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG, "/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre