<?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 Ignoring a morphline error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ignoring-a-morphline-error/m-p/12956#M1857</link>
    <description>&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way of ignoring an error in a morphline, which consists of a series of commands, without modiying the offending command to be more tolerant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if one of the commands is Grok and a large file is processed and somewhere in the file a record does not match the regular expression, the execution of the morphline stops. Is there any configuration option to allow it to continue?&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;PNS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2014 11:39:01 GMT</pubDate>
    <dc:creator>PNS</dc:creator>
    <dc:date>2014-05-29T11:39:01Z</dc:date>
    <item>
      <title>Ignoring a morphline error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ignoring-a-morphline-error/m-p/12956#M1857</link>
      <description>&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way of ignoring an error in a morphline, which consists of a series of commands, without modiying the offending command to be more tolerant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if one of the commands is Grok and a large file is processed and somewhere in the file a record does not match the regular expression, the execution of the morphline stops. Is there any configuration option to allow it to continue?&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;PNS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 11:39:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ignoring-a-morphline-error/m-p/12956#M1857</guid>
      <dc:creator>PNS</dc:creator>
      <dc:date>2014-05-29T11:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ingnoring a morphline error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ignoring-a-morphline-error/m-p/12958#M1858</link>
      <description>See the answer here: &lt;A href="https://groups.google.com/a/cloudera.org/forum/#!topic/cdk-dev/4PkFFmG59vk" target="_blank"&gt;https://groups.google.com/a/cloudera.org/forum/#!topic/cdk-dev/4PkFFmG59vk&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Wolfgang.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 May 2014 12:31:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ignoring-a-morphline-error/m-p/12958#M1858</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-05-29T12:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring a morphline error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ignoring-a-morphline-error/m-p/12966#M1859</link>
      <description>&lt;P&gt;Thanks for the prompt answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding to the Morphlines Reference Guide, the &lt;STRONG&gt;tryRules&lt;/STRONG&gt; block has to be placed inside the &lt;STRONG&gt;commands&lt;/STRONG&gt; block, e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;morphlines : [
    {
        id : morphline1
        importCommands : ["org.kitesdk.**", "org.apache.solr.**"]

        commands : [
            {
                readLine {
                    charset : UTF-8
                }
            }

            {
                tryRules {
                    catchExceptions : false
                    throwExceptionIfAllRulesFailed : true

                    rules : [

                    # next rule of tryRules cmd:
                    {
                        commands : [
                          { ... }
                          { ... }
                        ]
                    }

                    # next rule of tryRules cmd:
                    {
                        commands : [
                          { ... }
                          { ... }
                        ]
                    }
                }
            }
         ]
     }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 18:39:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ignoring-a-morphline-error/m-p/12966#M1859</guid>
      <dc:creator>PNS</dc:creator>
      <dc:date>2014-05-29T18:39:10Z</dc:date>
    </item>
  </channel>
</rss>

