<?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: Problems with Flume and Morphline Solr Sink in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39140#M23822</link>
    <description>&lt;P&gt;Hi, i solved this issue changing the java memory configuration. I see this same issue in another topic. Thanks anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2016 19:19:00 GMT</pubDate>
    <dc:creator>roditoxb</dc:creator>
    <dc:date>2016-03-29T19:19:00Z</dc:date>
    <item>
      <title>Problems with Flume and Morphline Solr Sink</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39094#M23819</link>
      <description>&lt;P&gt;Hi guys, im having some problems with morphline solr sink. This is my flume conf file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;tier1.sources = fuente_lt 
tier1.channels = memoryChannel_lt
tier1.sinks = solrSink_lt 

tier1.sources.fuente_lt.type = netcat
tier1.sources.fuente_lt.max-line-lenght = 512
tier1.sources.fuente_lt.bind = 0.0.0.0
tier1.sources.fuente_lt.port = 6667

tier1.channels.memoryChannel_lt.type = memory
tier1.channels.memoryChannel_lt.capacity = 100
tier1.channels.memoryChannel_lt.transactionCapacity = 100

tier1.sinks.solrSink_lt.type = org.apache.flume.sink.solr.morphline.MorphlineSolrSink
tier1.sinks.solrSink_lt.morphlineFile =  /home/xxxx/morphline.conf
tier1.sinks.solrSink_lt.morphlineId = morphline1


tier1.sources.fuente_lt.channels = memoryChannel_lt
tier1.sinks.solrSink_lt.channel = memoryChannel_lt&lt;/PRE&gt;&lt;P&gt;I've created the collection in Solr, modified my schema.xml file and that i think its working fine.&lt;/P&gt;&lt;P&gt;This is my morphline.conf file&lt;/P&gt;&lt;PRE&gt;SOLR_LOCATOR : {
  collection : logCollection
  zkHost : "x.x.x.x:2181/solr"
}

morphlines : [
  {
    id : morphline1     
    importCommands : ["org.kitesdk.**", "org.apache.solr.**"]
    
   commands : [    
                
      {
       readCSV {
	  separator: " "
	  columns: [ip,tipo,dispositivo,descripcion]
	  charset : UTF-8
          }
      }

      {
	generateUUID {
		field: id
	}
      }
      
      { 
        loadSolr {
          solrLocator : ${SOLR_LOCATOR}
        }
      }

    ]
  }

]&lt;/PRE&gt;&lt;P&gt;When i restart the flume service im getting this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;....
mar. 28, 13:24:31.652	INFO	org.apache.flume.instrumentation.MonitoredCounterGroup	
Component type: SINK, name: solrSink_lt started
mar. 28, 13:24:31.660	INFO	org.apache.flume.source.NetcatSource	
Created serverSocket:sun.nio.ch.ServerSocketChannelImpl[/0.0.0.0:6667]
mar. 28, 13:24:31.693	INFO	org.mortbay.log	
Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
mar. 28, 13:24:31.746	INFO	org.mortbay.log	
jetty-6.1.26.cloudera.4
mar. 28, 13:24:31.794	INFO	org.mortbay.log	
Started SelectChannelConnector@0.0.0.0:41414
mar. 28, 13:24:32.156	INFO	org.kitesdk.morphline.api.MorphlineContext	
Importing commands&lt;/PRE&gt;&lt;P&gt;and from that point after a couple of seconds it starts again from this point&lt;/P&gt;&lt;PRE&gt;mar. 28, 13:25:12.339	INFO	org.apache.flume.node.PollingPropertiesFileConfigurationProvider	
Configuration provider starting
mar. 28, 13:25:12.355	INFO	org.apache.flume.node.PollingPropertiesFileConfigurationProvider	
Reloading configuration file:/var/run/cloudera-scm-agent/process/290-flume-AGENT/flume.conf
mar. 28, 13:25:12.359	INFO	org.apache.flume.conf.FlumeConfiguration	
Processing:solrSink_lt
mar. 28, 13:25:12.359	INFO	org.apache.flume.conf.FlumeConfiguration	
Processing:solrSink_lt
mar. 28, 13:25:12.360	INFO	org.apache.flume.conf.FlumeConfiguration	
Added sinks: solrSink_lt Agent: tier1
....
....&lt;/PRE&gt;&lt;P&gt;anybody experienced this kind of issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards.-&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:11:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39094#M23819</guid>
      <dc:creator>roditoxb</dc:creator>
      <dc:date>2022-09-16T10:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Flume and Morphline Solr Sink</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39138#M23820</link>
      <description>&lt;P&gt;I'm a bit hazy on the topic, but your Morphline file looks a bit light to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you should have some additional pieces beyond the SOLR_LOCATOR piece like follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;morphlines : [
   {
      id : morphline1
      importCommands : ["org.kitesdk.**", "org.apache.solr.**"]
   
      commands : [
         { %function here, like readCSV or something % } 
         ...
         { sanitizeUnknownSolrFields { solrLocator : ${SOLR_LOCATOR} } }
         { loadSolr {solrLocator : ${SOLR_LOCATOR} } } 
      ]
   }
]&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Mar 2016 18:56:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39138#M23820</guid>
      <dc:creator>tseader</dc:creator>
      <dc:date>2016-03-29T18:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Flume and Morphline Solr Sink</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39139#M23821</link>
      <description>sorry... I blame Internet Explorer for not showing me the entirety of your morphline... What you have looks okay to me. I don't know that you nee the sanitizeUnknownSolrFields like I put in either. Your SOLR collection is created AND activated on zookeeper right?</description>
      <pubDate>Tue, 29 Mar 2016 19:05:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39139#M23821</guid>
      <dc:creator>tseader</dc:creator>
      <dc:date>2016-03-29T19:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Flume and Morphline Solr Sink</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39140#M23822</link>
      <description>&lt;P&gt;Hi, i solved this issue changing the java memory configuration. I see this same issue in another topic. Thanks anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 19:19:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39140#M23822</guid>
      <dc:creator>roditoxb</dc:creator>
      <dc:date>2016-03-29T19:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Flume and Morphline Solr Sink</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39162#M23823</link>
      <description>&lt;P&gt;Good catch!&amp;nbsp; I did notice that in an example I had done, I didn't have the memory configurations even set and things worked fine.&amp;nbsp; I do recall those memory settings being a bit guess and check for me.&amp;nbsp; Something I should probably work on. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 11:54:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Problems-with-Flume-and-Morphline-Solr-Sink/m-p/39162#M23823</guid>
      <dc:creator>tseader</dc:creator>
      <dc:date>2016-03-30T11:54:08Z</dc:date>
    </item>
  </channel>
</rss>

