<?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: Dynamic morphline alteration in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20274#M3307</link>
    <description>Seems like sed or similar on the text of the morphline config file are your friends here.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 15 Oct 2014 22:22:15 GMT</pubDate>
    <dc:creator>whosch</dc:creator>
    <dc:date>2014-10-15T22:22:15Z</dc:date>
    <item>
      <title>Dynamic morphline alteration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20266#M3306</link>
      <description>&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the best way of changing parts of a morphline at runtime, i.e. after it has been build from the CONF file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A classic use case for this, is applications running&amp;nbsp;many morphlines that differ only in a few commands. For example, a TryRules pipeline with multiple commands, out of which only 1 or 2 get modified every time, depending on the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In such cases, the "base"&amp;nbsp;morphline can be built with "empty" (no-op) commands as placeholders from the main CONF file and the applicable commands can then be compiled from small CONF files and inserted in the position of the placeholders, before the whole pipeline can be executed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone done this? Any code examples?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 18:39:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20266#M3306</guid>
      <dc:creator>PNS</dc:creator>
      <dc:date>2014-10-15T18:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic morphline alteration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20274#M3307</link>
      <description>Seems like sed or similar on the text of the morphline config file are your friends here.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Oct 2014 22:22:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20274#M3307</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-10-15T22:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic morphline alteration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20370#M3308</link>
      <description>&lt;P&gt;Hmmm...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You mean, read the morphline config file, do a text "search and replace" and then compile it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I described (having lots of config code replication) is very common, maybe you should look at providing a more "programatic" solution. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2014 22:18:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20370#M3308</guid>
      <dc:creator>PNS</dc:creator>
      <dc:date>2014-10-16T22:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic morphline alteration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20396#M3309</link>
      <description>Basically, yes. Beyon see there are a gazillion text templating tools already out there, e.g. freemarker et al. No need to reinvent the wheel.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2014 07:05:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20396#M3309</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-10-17T07:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic morphline alteration</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20400#M3310</link>
      <description>&lt;P&gt;Sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FreeMarker is a good idea, especially now that they have switched to the Apache 2.0 License.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2014 08:02:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Dynamic-morphline-alteration/m-p/20400#M3310</guid>
      <dc:creator>PNS</dc:creator>
      <dc:date>2014-10-17T08:02:27Z</dc:date>
    </item>
  </channel>
</rss>

