dashdb

node-red redeploy flow using REST from within node-red

≯℡__Kan透↙ 提交于 2021-01-29 05:00:09
问题 I have a node-red flow in bluemix that uses dash-db nodes also. So each time some dash db maintenance or some other reason, this db connection gets lost and all writes fail. When i redeploy, everything is fine again. Bluemix shows only logs of last few hours hence I am finding it very difficult to debug. Meanwhile i was thinking of doing an automatic redeploy after i detect this issue to avoid losing writes. Can this be done using GET /flows followed by POST /flows in the same node-red app

Add Java/JRE/JVM in Python Flask Cloud Foundry/IBM Cloud application

a 夏天 提交于 2020-07-21 07:58:32
问题 I am running a python flask application in a Cloud Foundry/IBM Cloud-environment. In my application I try to connect to DB2 Warehouse on Cloud with the IBMDBPY-package. This packages needs a package called jaydebeapi to be able to run. For the jaydebeapi to work I think I need JRE/JVM somehow installed on the server. I tried adding the Server JRE for Linux based OS, but it didn't work either. My error I got before I tried to upload the Sever JRE was this: idadb = IdaDataBase(dsn=jdbc)

Unable to setup a DB2 / DashDB JDBC Connection in Apache Airflow

♀尐吖头ヾ 提交于 2020-01-24 13:33:12
问题 I'm trying to create a DB2 / DashDB connection using the Airflow UI. I have added the db2jcc4.jar driver and provided the path as well as the class name com.ibm.db2.jcc.DB2Driver.class I tried to run a simple query (in the ad hoc UI) and always get the same error java.lang.RuntimeException: Class com.ibm.db2.jcc.DB2Driver.class not found Did anybody need to setup a DB2 / DashDB connection in Apache Airflow before? Found nothing on the web about that. Thanks 回答1: May be stupid thing to check

XXXX does not exist in the discovered schema. Document has not been imported

戏子无情 提交于 2020-01-17 05:26:28
问题 When using the SDP to extract data from Cloudant and populate dashDB, I occasionally see error messages in the dashdb "XXXX_OVERFLOW" table that look like this: [XXXX does not exist in the discovered schema. Document has not been imported.] Questions What does this error mean? How can I fix it? 回答1: This error is similar to: No matched schema for {"_id":"...","doc":{...}, so the same answer applies here. There are two main phases to the SDP process: Schema analysis Data import In the schema

How can I tell if my SDP process is still running the 'initial' load?

☆樱花仙子☆ 提交于 2020-01-06 13:54:30
问题 You cannot run any sql statements on a DashDB that result in locks that will conflict with the schema discovery process (SDP) during the initial load. See here for more information: SQLCODE=-911 : "warehouser_error_message": "File <<filename>>.csv.zip could not be loaded due to an exception in dashDB Question : How can I verify if SDP is running the initial load? 回答1: Log in to the Cloudant dashboard and select the _warehouser database. Inside that database, select the document that

How can I tell if my SDP process is still running the 'initial' load?

久未见 提交于 2020-01-06 13:53:34
问题 You cannot run any sql statements on a DashDB that result in locks that will conflict with the schema discovery process (SDP) during the initial load. See here for more information: SQLCODE=-911 : "warehouser_error_message": "File <<filename>>.csv.zip could not be loaded due to an exception in dashDB Question : How can I verify if SDP is running the initial load? 回答1: Log in to the Cloudant dashboard and select the _warehouser database. Inside that database, select the document that

SQLCODE=-911 : “warehouser_error_message”: "File <<filename>>.csv.zip could not be loaded due to an exception in dashDB

蹲街弑〆低调 提交于 2019-12-25 05:35:31
问题 The Cloudant Schema Discovery Process (SDP) is reporting the following error message while loading my dashDB database: "warehouser_error_message": "File xxxxxx/xxxxxx_nnnn_nnn_n_n.csv.zip could not be loaded due to an exception in dashDB. Reason: <DB2 SQL Error: SQLCODE=-911, SQLSTATE=40001, SQLERRMC=68, DRIVER=4.18.60>" How can I fix this? 回答1: The SDP locks the database during the initial load . The -911 error indicates there is a lock contention issue. Ensure you aren't performing any

PHP Login Form using DashDB

ε祈祈猫儿з 提交于 2019-12-24 17:24:41
问题 I'm Trying to create a Login form using PHP with the DashDB service from Bluemix, I really dont know whats wrong with this code and I would really appreciate your help! My code is composed of five parts: ConexionDB.php, checklogin.php, login_success.php, logout.php and main_login.php DashDB Database: CREATE TABLE MEMBERS ( ID INT NOT NULL, USERNAME VARCHAR(65) NOT NULL DEFAULT, PASSWORD VARCHAR(65) NOT NULL DEFAULT, PRIMARY KEY (ID) ); ConexionDB.php <?php // Parse VCAP if( getenv("VCAP

The value type for json field XXXX was presented as YYYY but the discovered data type of the table's column was ZZZZ

眉间皱痕 提交于 2019-12-13 07:24:51
问题 When using the SDP to extract data from Cloudant and populate dashDB, I occasionally see error messages in the dashdb "XXXX_OVERFLOW" table that look like this: EXCEPTION The value type for json field XXXX was presented as java.lang.String but the discovered data type of the table's column was Boolean. The document could not be imported into the created database. _ID mydocument-12345 Questions Why am I getting this error? How can I fix it? 回答1: The SDP has to decide a matching SQL data type

make a query and data frame reactive and refresh it on every 5 minutes

浪尽此生 提交于 2019-12-13 02:44:42
问题 // library(plyr) library(shiny) library(ggplot2) library(scales) library(shinydashboard) library(gridExtra) library(DT) library(ggthemes) library(plotly) library(data.table) library(plotrix) library(shinyjs) library(shinycssloaders) # connection with dash db shinyServer(function(input, output, session) { # withProgress(message = 'Data Downloading', # detail = 'This may take a while...', value = 0, { # for (i in 1:15) { # incProgress(1/15) # Sys.sleep(10) # }}) dsn_driver = "" dsn_database = "