<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Can you add incoming attributes to a url in InvokeHTTP? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104741#M54449</link>
    <description>&lt;P&gt;Hi, that makes sense. I used ExtractText and it worked, thanks for the help&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 20:21:16 GMT</pubDate>
    <dc:creator>r_young</dc:creator>
    <dc:date>2017-02-16T20:21:16Z</dc:date>
    <item>
      <title>Can you add incoming attributes to a url in InvokeHTTP?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104737#M54445</link>
      <description>&lt;P&gt;Hi, i have an UpdateAttribute processor that creates 2 attributes longitude and latitude as follows &lt;/P&gt;&lt;PRE&gt;longitude   {line:getDelimitedField(9,'|')}&lt;/PRE&gt;&lt;P&gt;i am trying to add them into a url in the following InvokeHTTP processor with the following configuration but its not working &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://api.met.no/weatherapi/locationforecast/1.9/?lat=${latitude};lon=${longitude}" target="_blank"&gt;http://api.met.no/weatherapi/locationforecast/1.9/?lat=${latitude};lon=${longitude}&lt;/A&gt;

Is this possible or have i gone about it incorrectly. The URL works when i enter in the longitude   and latitude figures manually
Thank you&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Feb 2017 02:23:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104737#M54445</guid>
      <dc:creator>r_young</dc:creator>
      <dc:date>2017-02-15T02:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can you add incoming attributes to a url in InvokeHTTP?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104738#M54446</link>
      <description>&lt;P&gt;The URL property supports expression language so that should be fine. You may want to double check that the flow files have the attributes you expect. You could have a RouteOnAttribute that routes ${latitude:isEmpty():or(longitude:isEmpty())} to somewhere so that by the time it makes it to InvokeHttp you know you have both values, or you could just use a LogAttribute and check the logs.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 04:23:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104738#M54446</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-02-15T04:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can you add incoming attributes to a url in InvokeHTTP?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104739#M54447</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/363/bbende.html" nodeid="363"&gt;@Bryan Bende&lt;/A&gt;. Thanks for the reply. I added a logAttribute and it shows there is no value for latitude or longitude. i dont know why its not working. The data i am using is from the data simulator in the trucking app. The previous processor routes the truck_geo_events to the updatettribute processor. &lt;/P&gt;&lt;PRE&gt;
longitude   {line:getDelimitedField(9,'|')}

2017-02-15 18:49:56.779|truck_geo_event|92|10|George Vetticaden|1594289134|Memphis to Little Rock Route 2|Normal|34.8|-92.09|1|

This looks like it should work though?&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Feb 2017 02:54:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104739#M54447</guid>
      <dc:creator>r_young</dc:creator>
      <dc:date>2017-02-16T02:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can you add incoming attributes to a url in InvokeHTTP?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104740#M54448</link>
      <description>&lt;P&gt;If you are using ${line:getDelimitedField(9,'|')} then there needs to be a flow file attribute called "line" that contains the string you want to evaluate.&lt;/P&gt;&lt;P&gt;Does your flow extract the contents of the flow file into an attribute called "line" ?&lt;/P&gt;&lt;P&gt;If not you could use ExtractText to do this.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 04:17:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104740#M54448</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-02-16T04:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can you add incoming attributes to a url in InvokeHTTP?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104741#M54449</link>
      <description>&lt;P&gt;Hi, that makes sense. I used ExtractText and it worked, thanks for the help&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:21:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-you-add-incoming-attributes-to-a-url-in-InvokeHTTP/m-p/104741#M54449</guid>
      <dc:creator>r_young</dc:creator>
      <dc:date>2017-02-16T20:21:16Z</dc:date>
    </item>
  </channel>
</rss>

