ibm-cloud

Spark Hive reporting pyspark.sql.utils.AnalysisException: u'Table not found: XXX' when run on yarn cluster

送分小仙女□ 提交于 2019-12-01 11:41:40
I'm attempting to run a pyspark script on BigInsights on Cloud 4.2 Enterprise that accesses a Hive table. First I create the hive table: [biadmin@bi4c-xxxxx-mastermanager ~]$ hive hive> CREATE TABLE pokes (foo INT, bar STRING); OK Time taken: 2.147 seconds hive> LOAD DATA LOCAL INPATH '/usr/iop/4.2.0.0/hive/doc/examples/files/kv1.txt' OVERWRITE INTO TABLE pokes; Loading data to table default.pokes Table default.pokes stats: [numFiles=1, numRows=0, totalSize=5812, rawDataSize=0] OK Time taken: 0.49 seconds hive> Then I create a simple pyspark script: [biadmin@bi4c-xxxxxx-mastermanager ~]$ cat

SSL handshake failure for liberty application using cloudant

≯℡__Kan透↙ 提交于 2019-12-01 11:33:17
I've been stuck on this far longer than I want to admit. I want to connect to cloudant/couchdb using WebSphere Liberty. I'm fairly new to Java app development, Liberty, Cloudant and Bluemix. I believe I need to add a SSL certificate for cloudant in a local trust store but the only way to do it seems to be by using the Websphere Application Server Integrated Solutions Console, which I can't run using Liberty? If anyone can guide me in the right direction I would appreciate it alot! [ERROR ] CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN CN=*.cloudant.com, OU=Engineering, O="Cloudant

“Error getting chaincode package bytes” when deploying chaincode on hyperledger via REST

萝らか妹 提交于 2019-12-01 11:08:59
I'm trying to deploy chaincode on hyperledger (Bluemix service) via POST/REST to /chaincode QuerySpec { "jsonrpc": "2.0", "method": "deploy", "params": { "type": 1, "chaincodeID": { "path": " https://github.com/romeokienzler/learn-chaincode/tree/master/finished " }, "ctorMsg": { "function": "init", "args": [ "hi there" ] }, "secureContext": "user_type1_0" }, "id": 1 } I've also tried those links https://github.com/romeokienzler/learn-chaincode/blob/master/finished/chaincode_finished?raw=true https://raw.githubusercontent.com/romeokienzler/learn-chaincode/master/finished/chaincode_finished.go I

Cloud Foundry / Bluemix load balancing

泄露秘密 提交于 2019-12-01 10:50:23
I know that by default, Bluemix / Cloud Foundry use round-robin load balancing . Is there a way to change that? If I deploy 2 apps with the same route, and want 90% of my traffic to go to blue, and 10% to green, is that possible? You would have to deploy more than two instances of the app to have better than 50-50 control over who sees what. If you have 10 instances, for example, and you update 1, then you could get your 90-10 split. Check out this CF CLI plugin: https://github.com/krujos/scaleover-plugin Configuring the load balancer is not possible. One workaround you could use to "simulate"

How to register a userId to Bluemix Push Notifications services?

笑着哭i 提交于 2019-12-01 10:47:24
the REST API documentation for Bluemix Push Notification services states that the possible push notification targets are deviceIds, platforms, tagNames and userIds. I don't understand how you register a userId for a device ? I don't see any REST service that seem to take a userId in its inputs... Thanks for your help, Sebastien There is a deviceId that you can set from the REST API when using the POST devices call to register a device. In the DeviceRegResponseModel is userId (string, optional): The user identifier for the the device registration So essentially to set a userId you'll just want

SSL handshake failure for liberty application using cloudant

纵然是瞬间 提交于 2019-12-01 09:32:51
问题 I've been stuck on this far longer than I want to admit. I want to connect to cloudant/couchdb using WebSphere Liberty. I'm fairly new to Java app development, Liberty, Cloudant and Bluemix. I believe I need to add a SSL certificate for cloudant in a local trust store but the only way to do it seems to be by using the Websphere Application Server Integrated Solutions Console, which I can't run using Liberty? If anyone can guide me in the right direction I would appreciate it alot! [ERROR ]

How to register a userId to Bluemix Push Notifications services?

给你一囗甜甜゛ 提交于 2019-12-01 08:40:33
问题 the REST API documentation for Bluemix Push Notification services states that the possible push notification targets are deviceIds, platforms, tagNames and userIds. I don't understand how you register a userId for a device ? I don't see any REST service that seem to take a userId in its inputs... Thanks for your help, Sebastien 回答1: There is a deviceId that you can set from the REST API when using the POST devices call to register a device. In the DeviceRegResponseModel is userId (string,

“Error getting chaincode package bytes” when deploying chaincode on hyperledger via REST

自闭症网瘾萝莉.ら 提交于 2019-12-01 07:30:00
问题 I'm trying to deploy chaincode on hyperledger (Bluemix service) via POST/REST to /chaincode QuerySpec { "jsonrpc": "2.0", "method": "deploy", "params": { "type": 1, "chaincodeID": { "path": "https://github.com/romeokienzler/learn-chaincode/tree/master/finished" }, "ctorMsg": { "function": "init", "args": [ "hi there" ] }, "secureContext": "user_type1_0" }, "id": 1 } I've also tried those links https://github.com/romeokienzler/learn-chaincode/blob/master/finished/chaincode_finished?raw=true

How do I deploy an Angular 2 app on Bluemix?

丶灬走出姿态 提交于 2019-12-01 07:24:31
问题 I have tried to deploy a few basic Angular 2 projects on Bluemix and got only errors after the build. Did anybody manage to have Angular 2 working on Bluemix? In that case, did you set anything specific in package.json file? I couldn't get over this error message: npm ERR! code ELIFECYCLE npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "run" "tsc:w" 回答1: It would be great to post a sample or a link to your source code. But from the two log lines it

IBM Watson visual recognition - invalid API key

柔情痞子 提交于 2019-12-01 06:15:53
I'm trying to use the visual recognition from IBM Watson using their API. Here is the POST request I am sending: https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classify?api_key={MY_API_KEY}&version=2016-05-20 and I specify my image in the body parameter. I always get: { "status": "ERROR", "statusInfo": "invalid-api-key" } I got my key from Bluemix 3 hours ago (they said the key should be working in 5 minutes). Any ideas? Thanks EDIT Since this morning, I have another error: { "status": "ERROR", "statusInfo": "invalid-api-key-permissions" } Is this me or Watson is still under