nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lcarmona@openpartner.cl" <lcarm...@openpartner.cl>
Subject Re: flowfile through invokehttp put
Date Thu, 16 May 2019 15:15:40 GMT
<br><br>Enviado desde mi HUAWEI P20 Pro<div style="line-height:1.5">Hi Michael,</div><div
style="line-height:1.5"><br></div><div style="line-height:1.5">You might
put all the relevant&nbsp; attributes down mixed with the content in a special tag (Jolt)&nbsp;</div><div
style="line-height:1.5">It is a kind of tricky because if there is Json structured data
you will have to flatten it first and then remove the special characters through ReplaceText,
but you get the content with the desired attributes included.&nbsp;</div><div
style="line-height:1.5"><br></div><div style="line-height:1.5">Hope this
tip helps.&nbsp;</div><div style="line-height:1.5"><br></div><div
style="line-height:1.5">Regards,&nbsp;</div><div style="line-height:1.5"><br></div><div
style="line-height:1.5">LC&nbsp;<br><br>-------- Mensaje original --------<br>Asunto:
flowfile through invokehttp put<br>De: Michael Di Domenico <mdidomenico4@gmail.com><br>Para:
users@nifi.apache.org<br>CC: <br><br><blockquote style="margin:0 0 0
0.8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="quote" style="margin:0
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">i'm pretty new to nifi, so i'm not
sure this worded correctly or<br>possible.&nbsp; i have a flow which ends with an
invokehttp process that<br>does a PUT to web server.<br><br>my naive understanding
of this process is that when the flowfile hits<br>invokehttp, the flow-attributes can
be sent as key:value pairs via the<br>http headers and the file-content gets PUT to
the remote webserver via<br>the http content-body<br><br>is there a way
to send the flow-attr and the flow-content (ie the<br>entire flowfile) via the PUT?<br><br>i
have nifi on two ends of a connection, but in order to send the data<br>from one to
another i have to send it through a proxy like device.<br>the near end of the device
receives data from the PUT and far end does<br>a POST to a remote nifi.<br><br>this
process works fine, but on the far end i only receive the file<br>and none of the attributes
(as expected).&nbsp; i cannot configure the<br>proxy device to pass key:value pairs
in the http headers.&nbsp; i'm<br>presuming all the flow information would have
to be sent via the PUT<br>and then decoded by the nifi server on the far end.&nbsp;
i'm hoping<br>there's a simple connector to do this rather then having me munge all<br>the
data together into something like an xml or json file and send<br>that.<br></blockquote></blockquote></mdidomenico4@gmail.com></div>
Mime
View raw message