Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

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

New Contributor
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 ? 

2 REPLIES 2
Highlighted

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

Super Collaborator

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"
 }

 

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

New Contributor

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 ?