<?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: set morphline variable from if command in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/set-morphline-variable-from-if-command/m-p/5523#M19768</link>
    <description>All variables have to statically resolve at compile time. Still, you can statically enumerate multiple solrLocators and do stuff like this:&lt;BR /&gt;&lt;BR /&gt;if&lt;BR /&gt;{&lt;BR /&gt;conditions : [&lt;BR /&gt;{ equals { tenant : [foo] } }&lt;BR /&gt;]&lt;BR /&gt;then : [&lt;BR /&gt;{&lt;BR /&gt;loadSolr { solrLocator : { collection : collection_foo, zkHost : "127.0.0.1:2181/solr" } }&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;else : [&lt;BR /&gt;{&lt;BR /&gt;loadSolr { solrLocator : { collection : collection_bar, zkHost : "127.0.0.1:2181/solr" } }&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Wolfgang.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 02 Feb 2014 19:13:04 GMT</pubDate>
    <dc:creator>whosch</dc:creator>
    <dc:date>2014-02-02T19:13:04Z</dc:date>
    <item>
      <title>set morphline variable from if command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/set-morphline-variable-from-if-command/m-p/5521#M19767</link>
      <description>&lt;P&gt;Is it possble to set the value of SOLR_LOCATOR from a morphline if command? I want to assign which collection the output data should flow to based on a contains match of a substring within the _attachment_body.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2014 19:04:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/set-morphline-variable-from-if-command/m-p/5521#M19767</guid>
      <dc:creator>jazzfan</dc:creator>
      <dc:date>2014-02-02T19:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: set morphline variable from if command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/set-morphline-variable-from-if-command/m-p/5523#M19768</link>
      <description>All variables have to statically resolve at compile time. Still, you can statically enumerate multiple solrLocators and do stuff like this:&lt;BR /&gt;&lt;BR /&gt;if&lt;BR /&gt;{&lt;BR /&gt;conditions : [&lt;BR /&gt;{ equals { tenant : [foo] } }&lt;BR /&gt;]&lt;BR /&gt;then : [&lt;BR /&gt;{&lt;BR /&gt;loadSolr { solrLocator : { collection : collection_foo, zkHost : "127.0.0.1:2181/solr" } }&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;else : [&lt;BR /&gt;{&lt;BR /&gt;loadSolr { solrLocator : { collection : collection_bar, zkHost : "127.0.0.1:2181/solr" } }&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Wolfgang.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Feb 2014 19:13:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/set-morphline-variable-from-if-command/m-p/5523#M19768</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-02-02T19:13:04Z</dc:date>
    </item>
  </channel>
</rss>

