从 NIFI InvokeHTTP 的 JSON 输出中删除配置数据,为所有处理器信息调用它自己的 API
Remove Config data from JSON output of NIFI InvokeHTTP calling its own API for all processors info
我能够使用 NIFI InvokeHTTP 为所有处理器信息调用它自己的 API 并将其推送。我没有在 InvokeHTTP 和我的输出处理器之间使用 JOLT 转换删除配置数组。
输入数据
{
"processors": [{
"id": "891dcf62-016d-1000-1727-961e4e3c2f7a",
"props": "dozens of other props here",
"component": {
"id": "891dcf62-016d-1000-1727-961e4e3c2f7a",
"parentGroupId": "891dcf5c-016d-1000-0556-9e69f1934f95",
"config": {
"properties": "100s of lengthy properties"
},
"componentProps": "dozen or so others"
},
"inputRequirement": "INPUT_REQUIRED"
},
{
"id": "891dcf62-016d-1000-1727-961e4e3c2f7b",
"props": "dozens of other props here",
"component": {
"id": "891dcf62-016d-1000-1727-961e4e3c2f7b",
"parentGroupId": "891dcf5c-016d-1000-0556-9e69f1934f96",
"config": {
"properties": "100s of lengthy properties"
},
"componentProps": "dozen or so others"
},
"inputRequirement": "INPUT_REQUIRED"
}]
}
你的规格太深了。这里修改为:
[
{
"operation": "remove",
"spec": {
"processors": {
"*": {
"component": {
"config": ""
}
}
}
}
}
]
我能够使用 NIFI InvokeHTTP 为所有处理器信息调用它自己的 API 并将其推送。我没有在 InvokeHTTP 和我的输出处理器之间使用 JOLT 转换删除配置数组。
输入数据
{
"processors": [{
"id": "891dcf62-016d-1000-1727-961e4e3c2f7a",
"props": "dozens of other props here",
"component": {
"id": "891dcf62-016d-1000-1727-961e4e3c2f7a",
"parentGroupId": "891dcf5c-016d-1000-0556-9e69f1934f95",
"config": {
"properties": "100s of lengthy properties"
},
"componentProps": "dozen or so others"
},
"inputRequirement": "INPUT_REQUIRED"
},
{
"id": "891dcf62-016d-1000-1727-961e4e3c2f7b",
"props": "dozens of other props here",
"component": {
"id": "891dcf62-016d-1000-1727-961e4e3c2f7b",
"parentGroupId": "891dcf5c-016d-1000-0556-9e69f1934f96",
"config": {
"properties": "100s of lengthy properties"
},
"componentProps": "dozen or so others"
},
"inputRequirement": "INPUT_REQUIRED"
}]
}
你的规格太深了。这里修改为:
[
{
"operation": "remove",
"spec": {
"processors": {
"*": {
"component": {
"config": ""
}
}
}
}
}
]