我正在遵循下面给出的简单教程:收集和分析社交数据,而不编写一行代码
根据链接,应该添加节点红色的应用程序。但是在添加它之后,状态显示为"您的应用程序状态未知"。如果我忽略这个error
并继续添加"IBM Analytics for Hadoop"-应用程序不会出现在选择中,即我也无法创建服务。
请告知……
满意,
从Node-RED Starter样板文件部署时似乎有一个问题。我只是尝试了一下,也失败了,当我检查日志时,我看到有一个错误,有人需要调查,所以我在几分钟前为此开了一张票。
无论如何,即使部署工作,你也无法完成教程:因为Romeo写了它,Hadoop的Analytics服务已经升级了。部分教程不再正确,最后我检查了在Bluemix上的node - red中的HDFS节点有问题,因为它无法再连接到Hadoop。
问候,哈拉尔德
Satish,
尝试使用Apache Hadoop服务的Analytics。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": []
}]
在部署流之前绑定/添加服务。
Thanks and Regards
满意,
对于您所看到的问题,似乎是添加/删除服务可能导致了问题。当服务发生变化时,bluemix-settings.js有时不能正确同步,你需要下载源代码,更新它并将应用程序推送回来。如果你刚刚开始创建应用程序,我建议从头开始删除样板文件,然后创建新的应用程序。这将清除任何问题。
下面是一个更简单的twitter数据分析示例,无需一行代码,除了创建node-RED样板文件时添加的服务之外,不需要添加任何服务:链接到Developer Works Article