[英]ibm - bluemix - node-red - app is not running and I can't add analytics service
我遵循以下簡單教程: 無需編寫任何代碼即可收集和分析社交數據
按照鏈接,應添加紅色節點的應用程序。 但是添加后,狀態顯示為“您的應用狀態未知” 。 並且,如果我忽略此error
並繼續添加“ IBM Analytics for Hadoop”,則該應用程序不會出現在選擇中,即,我也無法創建該服務。
您能告訴我...我該怎么做才能解決。
飽足的
從Node-RED Starter樣板進行部署似乎存在問題。 我只是嘗試過並且失敗了,當我檢查日志時,我發現有人需要調查錯誤,因此我在幾分鍾前為此打開了一張票。
無論如何,即使部署可行,您也無法完成本教程:自Romeo編寫以來,Analytics for Hadoop服務已升級。 本教程的一部分不再正確,最后我檢查了Bluemix上Node-RED中的HDFS節點是否存在問題,因為它無法再連接到Hadoop。
問候,哈拉德
飽足的
嘗試使用Analytics for Apache Hadoop服務。 HDFS節點的最新修復應有所幫助。 我附上Node-RED源供您參考。
[
{
"id": "19e3fecb.c535b9",
"type": "inject",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"x": 311,
"y": 109,
"z": "d2f1fb2c.6dc9f",
"wires": [
[
"e260889a.2a8a3"
]
]
},
{
"id": "997c2459.ada828",
"type": "ibm hdfs",
"name": "",
"filename": "/welcome.txt",
"appendNewline": false,
"overwriteFile": true,
"x": 660,
"y": 112,
"z": "d2f1fb2c.6dc9f",
"wires": []
},
{
"id": "e260889a.2a8a3",
"type": "function",
"name": "",
"func": "msg.payload = {\"d\":{\"voltage\":240}};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 464,
"y": 122,
"z": "d2f1fb2c.6dc9f",
"wires": [
[
"997c2459.ada828"
]
]
},
{
"id": "f18b36e9.11256",
"type": "inject",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"x": 322,
"y": 194.9999771118164,
"z": "d2f1fb2c.6dc9f",
"wires": [
[
"ea15a346.645838"
]
]
},
{
"id": "3cf35d10.b5b02a",
"type": "ibm hdfs in",
"name": "",
"filename": "/welcome.txt",
"format": "utf8",
"x": 670,
"y": 205.9999771118164,
"z": "d2f1fb2c.6dc9f",
"wires": [
[
"8c4333f4.7545b"
]
]
},
{
"id": "8c4333f4.7545b",
"type": "debug",
"name": "",
"active": true,
"console": "false",
"complete": "payload",
"x": 871,
"y": 201.9999771118164,
"z": "d2f1fb2c.6dc9f",
"wires": []
},
{
"id": "ea15a346.645838",
"type": "function",
"name": "",
"func": "msg.filename = \"/welcome.txt\";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 479,
"y": 203.9999771118164,
"z": "d2f1fb2c.6dc9f",
"wires": [
[
"3cf35d10.b5b02a"
]
]
},
{
"id": "1ba399e.a2a5ae6",
"type": "inject",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"x": 326,
"y": 368.9999771118164,
"z": "d2f1fb2c.6dc9f",
"wires": [
[
"4d84ea75.52b5bc"
]
]
},
{
"id": "4d84ea75.52b5bc",
"type": "function",
"name": "",
"func": "msg.delete = true;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 500,
"y": 373.00000762939453,
"z": "d2f1fb2c.6dc9f",
"wires": [
[
"e9c07b8e.d458f"
]
]
},
{
"id": "e9c07b8e.d458f",
"type": "ibm hdfs",
"name": "",
"filename": "/welcome.txt",
"appendNewline": true,
"overwriteFile": false,
"x": 693,
"y": 368.9999771118164,
"z": "d2f1fb2c.6dc9f",
"wires": []
},
{
"id": "dd7bf27a.2a122",
"type": "comment",
"name": "Create",
"info": "",
"x": 171.00001525878906,
"y": 108.99999237060547,
"z": "d2f1fb2c.6dc9f",
"wires": []
},
{
"id": "e384dc30.7d9188",
"type": "comment",
"name": "Read",
"info": "",
"x": 177.00001525878906,
"y": 196.99999237060547,
"z": "d2f1fb2c.6dc9f",
"wires": []
},
{
"id": "c082c1.4e78054",
"type": "comment",
"name": "Delete",
"info": "",
"x": 171.00001525878906,
"y": 365.9999771118164,
"z": "d2f1fb2c.6dc9f",
"wires": []
},
{
"id": "fd160f73.d01508",
"type": "inject",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"x": 319.00001525878906,
"y": 280.00000762939453,
"z": "d2f1fb2c.6dc9f",
"wires": [
[
"215a640f.5b3a64"
]
]
},
{
"id": "3362cea6.d2a8a2",
"type": "ibm hdfs",
"name": "",
"filename": "/welcome.txt",
"appendNewline": true,
"overwriteFile": false,
"x": 668.0000152587891,
"y": 283.00000762939453,
"z": "d2f1fb2c.6dc9f",
"wires": []
},
{
"id": "215a640f.5b3a64",
"type": "function",
"name": "",
"func": "msg.payload = {\"d\":{\"voltage\":240}};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 472.00001525878906,
"y": 293.00000762939453,
"z": "d2f1fb2c.6dc9f",
"wires": [
[
"3362cea6.d2a8a2"
]
]
},
{
"id": "4ccf2efd.fa95e8",
"type": "comment",
"name": "Update",
"info": "Update",
"x": 179.00003051757812,
"y": 280,
"z": "d2f1fb2c.6dc9f",
"wires": []
}]
在部署流之前,請綁定/添加服務。
謝謝並恭祝安康
阿米特·曼加維達(Amit M Mangalvedkar)
飽足的
對於您所看到的問題,似乎添加/刪除服務可能引起了問題。 當服務發生變更時,有時bluemix-settings.js無法正確同步,因此您將需要下載源代碼,對其進行更新並推動您的應用程序備份。 如果您只是開始創建應用程序,我建議您從頭開始,刪除樣板,然后創建新應用程序。 這將清除所有問題。
這是一個分析Twitter數據的簡單示例,無需編寫任何代碼,也無需添加任何服務,而無需創建Node-RED樣板時所添加的服務: 鏈接到Developer Works文章 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.