ibm-cloud

Is there any way I can restore a DB2 backup file onto IBM DashDB?

吃可爱长大的小学妹 提交于 2019-12-10 18:49:50
问题 I am trying to restore a DB2 backup file into my BlueMix DashDB service. How do I go about doing this? 回答1: You cannot restore your DB2 backup image into dashDB for several reasons. In an entry-level, shared dashDB instance you only have access to one schema in a physical database shared by others. Even if you have a dedicated instance, you need 1) access to the database local disk to upload the image and 2) sufficient privileges (at least SYSMAINT authority) to perform the restore. I doubt

Deployed R app with Shiny crash with 'could not find function “httpdPort”'

心不动则不痛 提交于 2019-12-10 18:42:25
问题 I have an application built with Shiny (a tutorial, where ui.R and server.R are taken from here: http://shiny.rstudio.com/tutorial/lesson1/). I have these two files in shiny-frontend folder, and if I runApp("shiny-frontend") locally in RStudio - everything works great and I see the tutorial in my browser. Now I want the same app to be put into Bluemix via cloudfoundry. I'm using this: http://www.ibm.com/developerworks/library/ba-rtwitter-app/ as a tutorial, but struggling with an error. I

Bluemix Analytics for Apache Spark log file information required

懵懂的女人 提交于 2019-12-10 17:56:51
问题 I would like more information when debugging my spark notebook. I have found some log files: !ls $HOME/notebook/logs/ The files are: bootstrap-nnnnnnnn_nnnnnn.log jupyter-nnnnnnnn_nnnnnn.log kernel-pyspark-nnnnnnnn_nnnnnn.log kernel-scala-nnnnnnnn_nnnnnn.log logs-nnnnnnnn.tgz monitor-nnnnnnnn_nnnnnn.log spark160master-ego.log Which applications log to these files and what information is written to each of these files? 回答1: When debugging notebooks, the kernel-*-*.log files are the ones you're

pyodbc install on IBM Bluemix server error

我怕爱的太早我们不能终老 提交于 2019-12-10 17:17:26
问题 I am trying to host my app on IBM bluemix. In my app, I have used flask and I am trying to Connect to Azure SQL Server database. So for that, I am using Pyodbc. So in requirement.txt file I have given pip install pyodbc and pip install flask . These things are getting installed on my local machine and the app is running fine. I am getting the result from the database . But when I am trying to deploy my application on IBM bluemix, while pushing the files on the server it is giving me an error.

Docker container can't leverage external Cloudant service (network resolution / visibility?)

痞子三分冷 提交于 2019-12-10 17:17:21
问题 I've built a Container that leverages a CF app that's bound to a service, Cloudant to be specific. When I run the container locally I can connect to my Cloudant service. When I build and run my image in the Bluemix container service I can no longer connect to my Cloudant service. I did use --bind to bind my app to the container. I have verified that the VCAP_Services info is propagating to my container successfully. To narrow the problem down further, I tried just doing an ice -run --name

You must build Spark with Hive. Export 'SPARK_HIVE=true'

自古美人都是妖i 提交于 2019-12-10 16:46:53
问题 I'm trying to run a notebook on Analytics for Apache Spark running on Bluemix, but I hit the following error: Exception: ("You must build Spark with Hive. Export 'SPARK_HIVE=true' and run build/sbt assembly", Py4JJavaError(u'An error occurred while calling None.org.apache.spark.sql.hive.HiveContext.\n', JavaObject id=o38)) The error is intermittent - it doesn't always happen. The line of code in question is: df = sqlContext.read.format('jdbc').options( url=url, driver='com.ibm.db2.jcc

Bluemix Load Balancer Algorithm

吃可爱长大的小学妹 提交于 2019-12-10 14:29:56
问题 What algorithm is used to balance HTTP load among several instances running on Bluemix? It seems I can use auto-scaling service to scale horizontally, and want to know what algorithm is used when balancing the load. 回答1: Cloud Foundry uses round-robin load balancing to distribute requests across the running instances of your app. 来源: https://stackoverflow.com/questions/30651427/bluemix-load-balancer-algorithm

How to extract current date in watson conversation

一个人想着一个人 提交于 2019-12-10 13:54:48
问题 I need to create a condition, in Watson Conversation dialog model, like this: if "today's date" < 04-15-2017 do something. else do something else. I prefer not asking the user for current date and save it. I tried many ways but they don't work, I also tried to output the date (doesn't work): { "context": { "currdate": "@sys-date:today" }, "output": { "text": { "values": [ "here it is $currdate" ], "selection_policy": "sequential" } } } 回答1: I'm not sure about that, but with all tests I've

How to debug Unhandled exception / Segmentation error in IBM Bluemix Delivery Pipeline

狂风中的少年 提交于 2019-12-10 12:17:48
问题 I've created a toolchain in IBM Bluemix DevOps and it has a Delivery Pipeline app. In a stage I'm trying to install and run SBT, but I'm facing with an issue. Unfortunately based on the logs I cannot figure out what the problem is, it just tells that Unhandled exception occurred, segmentation error and some kind of internal stacktrace. How could I debug what's happening in the container belongs to this job? Here's the console log for the job: [info] Compiling 11 Scala sources and 7 Java

Bluemix: How to upgrade pip?

别说谁变了你拦得住时间么 提交于 2019-12-10 11:44:12
问题 I got this warning when I run my python app on bluemix: You are using pip version 7.1.0, however version 8.1.0 is available. How do I run shell commands like "pip install --upgrade pip" in my cf app? Adding "Shell script" step on Build or Deploy stage gave me pip not found error. Thanks! 回答1: You can't run arbitrary commands while the application is being staged, i.e. when pip would be used. If you can't ignore the warning, you could try the Heroku Python buildpack which is updated to use 8.1