Member since
01-30-2019
2
Posts
0
Kudos Received
0
Solutions
01-30-2019
12:04 PM
For this I am creating a curl request which looks like: curl -i -X POST -H 'Content-Type: application/json' http://localhost:8080/nifi-api/process-groups/7932922c-0168-1000-2ef0-0149d99a9ac4/processors -d '{
"revision":{
"version":0
},
"permissions":{
"canRead":true,
"canWrite":true
},
"component":{
"parentGroupId":"7932922c-0168-1000-2ef0-0149d99a9ac4",
"name":"d_PutSFTP",
"type":"org.apache.nifi.processors.standard.GetSFTP",
"config":{
"properties":{
"Hostname":"xx.xx.xx.xx",
"Port":"22",
"Username":"username",
"Password":null,
"autoTerminatedRelationships": ['success']
}
}
}
}' But it is giving an exception like: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token
at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 19, column: 32] (through reference chain: org.apache.nifi.web.api.entity.ProcessorEntity["component"]->org.apache.nifi.web.api.dto.ProcessorDTO["config"]->org.apache.nifi.web.api.dto.ProcessorConfigDTO["properties"]->java.util.LinkedHashMap["autoTerminatedRelationships"]) Does anyone know where am I doing wrong to create request. In nifi api document, "autoTerminatedRelationships": ["value"] is given.
... View more
01-30-2019
12:03 PM
HI, We are using Apache NiFi for transferring the data using GetSFTP and PUTSFTP. For this we are using (RestAPI) groovy scripts for creating,updating the processors properties and making connections between them. All the properties are able to update using groovy scripts except one. We are unable to enable (checked/true) the Auto Termination property of processors like Failure/Success. So, is any way to change this properties using Groovy scripts ? Thanks & Regards Suchet
... View more
Labels:
- Labels:
-
Apache NiFi