<?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: starting flume solr sink: morphlines.conf not found in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/533#M77</link>
    <description>&lt;P&gt;Many thanks Chris and dvohra,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw that the file /etc/flume-ng/conf/morphline.conf doesn't exist, but found the conf (after heavy searching &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ) under the /var/run/cloudera-scm-agent dir. Initially I thought that CM would provide the node with the config I defined in the CM-solr-sink section, but missed the different naming (**bleep** 's'). After creating /etc/flume-ng/conf/morphline.conf manually everything worked fine, but yes, I want to use CM to define and deploy the configuration, therefore I'll check out the morphline&lt;STRONG&gt;S&lt;/STRONG&gt;.conf way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;br...Gerd...&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2013 06:33:08 GMT</pubDate>
    <dc:creator>geko</dc:creator>
    <dc:date>2013-08-15T06:33:08Z</dc:date>
    <item>
      <title>starting flume solr sink: morphlines.conf not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/487#M74</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configured a flume solr sink and related morphline config in CM based on &lt;A target="_blank" href="http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM4Ent/latest/Cloudera-Manager-Managing-Clusters/cmmc_adding_search_solr.html"&gt;this instructions&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Chapter&amp;nbsp;&lt;SPAN style="line-height: normal; font-family: 'comic sans ms', sans-serif; font-size: x-small; font-weight: bold;"&gt;"Configuring Flume Morphline Solr Sink for use with the Solr Service"&amp;nbsp;&lt;/SPAN&gt;tells me that within flume.conf I can just use the plain filename morphline.conf to reference the morphline configuration (if it is in the same path, of course). Therefore I configured in CM Flume-instance config (navigation flume-instance&lt;SPAN style="line-height: 14px;"&gt;=&amp;gt;Configuration=&amp;gt;agent=&amp;gt;Configuration File):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;agent.sinks.solrSink.type = org.apache.flume.sink.solr.morphline.MorphlineSolrSink&lt;BR /&gt;agent.sinks.solrSink.channel = memoryChannel&lt;BR /&gt;#agent.sinks.solrSink.batchSize = 1000&lt;BR /&gt;#agent.sinks.solrSink.batchDurationMillis = 1000&lt;BR /&gt;agent.sinks.solrSink.morphlineFile = morphline.conf&lt;BR /&gt;#agent.sinks.solrSink.morphlineId = morphline1&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in&amp;nbsp;&lt;SPAN&gt;flume-instance&lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;Configuration=&amp;gt;agent=&amp;gt;Flume-NG solr sink the required settings, that goes into morphline.conf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But after deploying the config and restarting the Flume service on that node, I get the error that the file "morphline.conf" cannot be found:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2013-08-14 11:20:59,827 INFO org.apache.flume.sink.solr.morphline.TwitterSource: Processed 400 docs&lt;BR /&gt;2013-08-14 11:21:00,939 INFO org.apache.flume.sink.solr.morphline.MorphlineSink: Starting Morphline Sink solrSink (MorphlineSolrSink) ...&lt;BR /&gt;2013-08-14 11:21:00,939 INFO org.apache.flume.instrumentation.MonitoredCounterGroup: Component type: SINK, name: solrSink started&lt;BR /&gt;2013-08-14 11:21:00,940 ERROR org.apache.flume.lifecycle.LifecycleSupervisor: Unable to start SinkRunner: { policy:org.apache.flume.sink.DefaultSinkProcessor@556917ee counterGroup:{ name:null counters:{} } } - Exception follows.&lt;BR /&gt;com.cloudera.cdk.morphline.api.MorphlineCompilationException: Cannot parse morphline file: morphline.conf&lt;BR /&gt;at com.cloudera.cdk.morphline.base.Compiler.compile(Compiler.java:51)&lt;BR /&gt;at org.apache.flume.sink.solr.morphline.MorphlineHandlerImpl.configure(MorphlineHandlerImpl.java:90)&lt;BR /&gt;at org.apache.flume.sink.solr.morphline.MorphlineSink.start(MorphlineSink.java:97)&lt;BR /&gt;at org.apache.flume.sink.DefaultSinkProcessor.start(DefaultSinkProcessor.java:46)&lt;BR /&gt;at org.apache.flume.SinkRunner.start(SinkRunner.java:79)&lt;BR /&gt;at org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:251)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)&lt;BR /&gt;at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)&lt;BR /&gt;at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)&lt;BR /&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:662)&lt;BR /&gt;Caused by: java.io.FileNotFoundException: File not found: morphline.conf&lt;BR /&gt;at com.cloudera.cdk.morphline.base.Compiler.parse(Compiler.java:64)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;Any hints how to reference morphline.conf from flume.conf ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;many thanks in advance...Gerd...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:46:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/487#M74</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2022-09-16T08:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: starting flume solr sink: morphlines.conf not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/501#M75</link>
      <description>&lt;P&gt;&lt;EM&gt;Caused by: java.io.FileNotFoundException: File not found: morphline.conf&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;Is&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;/&lt;/SPAN&gt;&lt;SPAN&gt;etc&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;flume&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;ng&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;conf&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;morphline&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;conf provided?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Some sample morphline.conf&amp;nbsp;&lt;A target="_blank" href="http://blog.cloudera.com/blog/2013/07/morphlines-the-easy-way-to-build-and-integrate-etl-apps-for-apache-hadoop/"&gt;http://blog.cloudera.com/blog/2013/07/morphlines-the-easy-way-to-build-and-integrate-etl-apps-for-apache-hadoop/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 14:13:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/501#M75</guid>
      <dc:creator>dvohra</dc:creator>
      <dc:date>2013-08-14T14:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: starting flume solr sink: morphlines.conf not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/511#M76</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have two options here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- As&amp;nbsp;&lt;SPAN&gt;&lt;A target="_self" href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/274"&gt;dvohra&lt;/A&gt;&amp;nbsp;mentioned, you could copy the morphline.conf file to /etc/flume-ng/conf and then give a full path in your agent config in CM. &amp;nbsp;Then restart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- If you are wanting to use the "Flume-NG Solr Sink" config section in CM to config your morphlines, then you need to change "morphline.conf" to "morphlines.com", notice the "s" at the end. &amp;nbsp;Here is my agent config as an example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;avro.sources=src&lt;BR /&gt;avro.sinks=solrSink&lt;BR /&gt;avro.channels=memoryChannel&lt;BR /&gt;avro.sources.src.type=avro&lt;BR /&gt;avro.sources.src.bind=cdh43-1.test.com&lt;BR /&gt;avro.sources.src.port=8889&lt;BR /&gt;avro.sinks.solrSink.type=org.apache.flume.sink.solr.morphline.MorphlineSolrSink&lt;BR /&gt;avro.sinks.solrSink.channel=memoryChannel&lt;BR /&gt;avro.sinks.solrSink.morphlineFile=morphlines.conf&lt;BR /&gt;avro.channels.memoryChannel.type=memory&lt;BR /&gt;avro.channels.memoryChannel.capacity=4096&lt;BR /&gt;avro.channels.memoryChannel.transactionCapacity=100&lt;BR /&gt;avro.channels.memoryChannel.byteCapacity=0&lt;BR /&gt;avro.sources.src.channels=memoryChannel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also see the morphlines file that CM is trying to use by looking in "/var/run/cloudera-scm-agent/process/&amp;lt;id&amp;gt;-flume-AGENT" where &amp;lt;id&amp;gt; is the most recently created. &amp;nbsp;You'll see a "morphlines.conf".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 15:03:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/511#M76</guid>
      <dc:creator>cconner</dc:creator>
      <dc:date>2013-08-14T15:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: starting flume solr sink: morphlines.conf not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/533#M77</link>
      <description>&lt;P&gt;Many thanks Chris and dvohra,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw that the file /etc/flume-ng/conf/morphline.conf doesn't exist, but found the conf (after heavy searching &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ) under the /var/run/cloudera-scm-agent dir. Initially I thought that CM would provide the node with the config I defined in the CM-solr-sink section, but missed the different naming (**bleep** 's'). After creating /etc/flume-ng/conf/morphline.conf manually everything worked fine, but yes, I want to use CM to define and deploy the configuration, therefore I'll check out the morphline&lt;STRONG&gt;S&lt;/STRONG&gt;.conf way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;br...Gerd...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 06:33:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/533#M77</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2013-08-15T06:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: starting flume solr sink: morphlines.conf not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/14638#M78</link>
      <description>&lt;P&gt;How do you put the data in the table ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use&amp;nbsp;org.apache.flume.sink.solr.morphline.TwitterSource as type, I get some strange data, starting with Objj Avro....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the data is not in JSON format but in Avro I guess... So how to create an external table in hive that can parse the avro format ?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 15:18:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/14638#M78</guid>
      <dc:creator>Kulssaka</dc:creator>
      <dc:date>2014-07-02T15:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: starting flume solr sink: morphlines.conf not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/14682#M79</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to read data in avro format from Hive you have to use an Avro SerDe. Maybe a good starting point will be&amp;nbsp;&lt;A target="_blank" href="http://www.michael-noll.com/blog/2013/07/04/using-avro-in-mapreduce-jobs-with-hadoop-pig-hive/"&gt;http://www.michael-noll.com/blog/2013/07/04/using-avro-in-mapreduce-jobs-with-hadoop-pig-hive/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is not related to this topic since the solr sink will put data into Solr. I'd suggest to use just a HDFS sink to put your data on HDFS and create an (external or not) Hive table afterwards. You do not need Solr and/or Morphlines for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best, Gerd&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 07:16:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/starting-flume-solr-sink-morphlines-conf-not-found/m-p/14682#M79</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2014-07-03T07:16:11Z</dc:date>
    </item>
  </channel>
</rss>

