You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Step 1. Launch Aspire and open the Content Source Management Page


Before launch Aspire, you need to change the felix.properties file and add this lines:

# To append packages to the default set of exported system packages,
# set this value.
org.osgi.framework.system.packages.extra=\
 ...
 sun.security.krb5, \
 com.sun.security.auth.callback

# The following property makes specified packages from the class path
# available to all bundles. You should avoid using this property.
org.osgi.framework.bootdelegation=\
 ...
 javax.security.sasl, \
 sun.security.krb5


On this page:

Launch Aspire (if it's not already running). See:


Step 2. Add a new Content Source

For this step, please follow the step from the Configuration Tutorial of the connector of you choice, please refer to Connector list


Step 3. Add a new Publish to SolrCloud to the Workflow

To add a Publish to SolrCloud, drag from the Publish to SolrCloud CDH (or a custom component using app-publish-to-sorlj-cdh coordinates) rule from the Workflow Library and drop to the Workflow Tree where you want to add it. This will automatically open the Publish to SolrCloud window for the configuration of the publisher.

Step 3a. Specify Publisher Information

 In the Publish to SolrCloud window, specify the connection information to publish to the SolrCloud  .

  1. Enter the name of the publisher. (This name must be unique).
  2. Enter the Connection Method Type:
    1. CloudSolrServer: This method connects using a zookeeper url.
    2. HttpSolrClient: This method connects using a solr url (direct connetion to Solr)
  3. Enter the Host url, depends on the selection of the Connection Method:
    1. Zookeeper Host: A list of zookeeper hosts and port comma separated (ie: zkHost1:2181, zkHost2:2181, zkHost3:2181)
    2. Solr Host: A single Solr host and port (ie: solrHost:8993)
  4. Enter the Zookeeper chroot: If you're using a ZooKeeper instance that is shared by other systems, it's recommended to isolate the SolrCloud znode tree using ZooKeeper's chroot support. For instance, to ensure all znodes created by SolrCloud are stored under /solr,
  5. Enter the Solr collection name (same collection of all Solr instances of the cloud).
  6. XSL File Path: set to the default parameter to use the default XSL transformation file. To use a custom file.
  7. Field List XPath: XPath expression to process field list.
  8. Id Field: The Id used for identify the on Solr index.
  9. Zookeeper Client Timeout: timeout for the client.
  10. Zookeeper Connect Timeout: timeout for the client.
  11. Force Commit: If true, force a commit every time a batch is send to the index.
  12. Commit with milliseconds: milliseconds to wait before commit a batch to the index.
  13. Use Kerberos Authentication: Enable the authentication through Kerberos
    1. CoreSite.xml: The path for the hadoop core-site.xml file
    2. Login Configuration Properties: The path of the pseudo jaas properties file, please check Login Config File.
  14. Max Tries: Maximum number of retry attempt to index.
  15. Retry Wait: Seconds to wait before re-trying to index.
  16. Debug: Check if you want to run the publisher in debug mode.
  17. Click on the Add button.
     

                                                                       

Once you've clicked Add , it will take a moment for Aspire to download all of the necessary components (the Jar files) from the Maven repository and load them into Aspire. Once that's done, the publisher will appear in the Workflow Tree.

For details on using the Workflow section, please refer to Workflow introduction.

Step 3b. Edit Login Config File

The Login Config File is a pseudo JAAS (Java Authentication and Authorization Service) file. Basically, use only the properties inside the JAAS file.

For example:

Normal JAAS File

Client {
 com.sun.security.auth.module.Krb5LoginModule required 
 useKeyTab=true
 keyTab="/home/centos/solr.keytab"
 storeKey=true
 doNotPrompt=true
 useTicketCache=false
 principal="solr/[email protected]"; 
};


The Login Config file for the publisher should be something like this, only the properties propertyName=propertyValue (the module name and the login type are not necessary)

useKeyTab=true
keyTab="/home/centos/solr.keytab"
storeKey=true
doNotPrompt=true
useTicketCache=false
principal="solr/[email protected]"
  • No labels