Reply
New Contributor
Posts: 4
Registered: ‎04-09-2017

how to use multiple collections in morphline.conf file in Solr

SOLR_LOCATOR : {
 # Name of solr collection
 collection : mdds_collection
  
 # ZooKeeper ensemble
 zkHost : "$ZK_HOST"
 }

 

The above snap is from morphline.conf file . I am trying to add multiple collections in the same morphline.conf file in cloudera manager . Is it posssible ? 

Posts: 126
Topics: 7
Kudos: 13
Solutions: 10
Registered: ‎07-16-2015

Re: how to use multiple collections in morphline.conf file in Solr

[ Edited ]

Never tried.

 

But I guess you can test this (and then use $SOLR_LOCATOR or $SOLR_LOCATOR2 further in the morphline) :

SOLR_LOCATOR : {
 	# Name of solr collection
 	collection : mdds_collection
 	 
 	# ZooKeeper ensemble
 	zkHost : "$ZK_HOST"
 }

SOLR_LOCATOR2 : {
 	# Name of solr collection
 	collection : other_collection
 	 
 	# ZooKeeper ensemble
 	zkHost : "$ZK_HOST"
 }

 

New Contributor
Posts: 4
Registered: ‎04-09-2017

Re: how to use multiple collections in morphline.conf file in Solr

I tried the above solution but it didnt work. If I am not able to add multiple collection in morphline.conf file in cloudera manager . How one indexed multiple table as we have only one morphine.conf file ?

Announcements