Member since
08-11-2017
136
Posts
1
Kudos Received
0
Solutions
08-21-2017
05:51 PM
I have windows and when i try to make it with bat file i get this errod https://community.hortonworks.com/questions/129851/stopping-processor-by-curl-commands.html
... View more
08-21-2017
05:49 PM
first of all i have winsows and when i try to make all this by bat file i get this case :https://community.hortonworks.com/questions/129851/stopping-processor-by-curl-commands.html
... View more
08-21-2017
05:49 PM
first of all i have winsows and when i try to make all this by bat file i get this case :https://community.hortonworks.com/questions/129851/stopping-processor-by-curl-commands.html
... View more
08-21-2017
08:48 AM
I have successfully implemented all this (thank you for your answer) but it seems that it isn't good solution for my task,can you recommend me any internal command which can help me stopping another processor by compilig script in executescript processor
... View more
08-21-2017
07:52 AM
I have manged it already, can i stop other processor by 'wait' conection?
... View more
08-21-2017
06:26 AM
How can i add DistributedCashMapServer without putDistributedMap processor? why did you replace localhots withnifi-sme-19 ?
... View more
08-20-2017
01:54 PM
I need to use wait processor for terminating invokehttp processor in case of failure, I have tried this - [https://stackoverflow.com/questions/43915412/how-to-use-wait-notify-processor][1] and added DistributeCashMapServerService by PutDistributeMapCachProcessor (I have made host:localhost with port 4557 for both DistributeMapCachclient and server service), but both of them still throws execpetion:Should I change server port? Or configure it another way? (P.S I have uploaded picture of error itself and my workflow in nifi)
... View more
Labels:
- Labels:
-
Apache NiFi
08-18-2017
05:18 AM
thnank you
... View more
08-17-2017
05:52 PM
Can you give me a link of example how can i do it, I have tried this but it doesn't work for me: For GenerateFlowFiele i have:
[{
"status": {
"runStatus": "STOPPED"
},
"component": {
"state": "STOPPED",
"id": "ea5db028-015d-1000-5ad5-80fd006dda92"
},
"revision": {
"version": 46,
"clientId": "ef592126-015d-1000-bf4f-93c7cf7eedc0"
}
} ]
and related groovy code in executeScript processor:
import org.apache.commons.io.IOUtils
import java.nio.charset.*
def flowFile = session.get();
if (flowFile == null) {
return;
}
def slurper = new groovy.json.JsonSlurper()
def attrs = [:] as Map<String,String>
session.read(flowFile,
{ inputStream ->
def text = IOUtils.toString(inputStream, StandardCharsets.UTF_8)
text=flowFile.getAttribute('text')
def obj = slurper.parseText(text)
obj.each {k,v ->
attrs[k] = v.toString()
}
} as InputStreamCallback)
flowFile = session.putAllAttributes(flowFile, attrs)
session.transfer(flowFile, REL_SUCCESS)
... View more
08-17-2017
11:47 AM
I have tried restapi with put request i used links like this in my another invokehttp processsor http://localhost:8080/nifi-api/processors/ea5db028-015d-1000-5ad5-80fd006dda92 and now i want to know ow can i link json components like this to my put request body? {
"status": {
"runStatus": "STOPPED"
},
"component": {
"state": "STOPPED",
"id": "ea5db028-015d-1000-5ad5-80fd006dda92"
},
"id": "ea5db028-015d-1000-5ad5-80fd006dda92",
"revision": {
"version": 46,
"clientId": "ef592126-015d-1000-bf4f-93c7cf7eedc0"
}
}
... View more
- « Previous
- Next »