ibm-bluemix-node red-app没有运行,我无法添加分析服务

tjvv9vkg  于 2021-06-03  发布在  Hadoop
关注(0)|答案(3)|浏览(320)

我遵循下面给出的简单教程:收集和分析社会数据,而无需编写一行代码
根据链接,应该添加节点红色应用程序。但添加后,状态显示为“你的应用程序状态未知”。如果我忽略了这一点 error 继续添加“ibmlanalyticsforhadoop”——应用程序没有出现在选择中,也就是说,我无法创建服务。
你能告诉我。。。我该怎么做才能修好它。

dkqlctbz

dkqlctbz1#

萨蒂什,
对于您看到的问题,添加/删除服务可能导致了问题。当服务发生变化时,bluemix-settings.js有时无法正确同步,您需要下载源代码,更新源代码,并将应用程序推上备份。如果你刚刚开始创建应用程序,我建议你从零开始删除模板,然后创建新的应用程序。这将解决任何问题。
下面是一个简单的例子,分析twitter数据时不需要一行代码,也不需要添加任何超出创建node红色样板文件时添加的服务:link to developer works文章。

qlvxas9a

qlvxas9a2#

萨蒂什,
从node red starter样板文件进行部署似乎有问题。我只是尝试了一下,也失败了,当我检查日志时,我发现有一个错误,需要有人调查,所以我在几分钟前打开了一张这方面的罚单。
无论如何,即使部署可以工作,您也无法完成教程:自从romeo编写了它之后,analytics for hadoop服务已经升级。教程的一部分已经不正确了,上一次我检查了bluemix上node red中的hdfs节点有一个问题,它无法再连接到hadoop。
你好,哈罗德

5uzkadbs

5uzkadbs3#

萨蒂什,
尝试使用apachehadoop分析服务。hdfs节点的最新修复应该会有所帮助。我附上红色节点源供您参考。

[
{
    "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": []
}]

在部署流之前绑定/添加服务。
谢谢和问候
阿米特m曼格尔维德卡尔

相关问题