Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
titleOn this page

Table of Contents

 

Step 1. Launch Aspire and

open

Open the Content Source Management

Page

page


Before

launch

launching Aspire, you need to change the felix.properties file and add

this

these lines:

Code Block
languagexml
themeRDark
# 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

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

Image Modified

Step 2. Add a new

Content Source

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

workflow


To add a Publish to 

SolrCloud drag

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

 window for the configuration of the publisher.

Step 3a. Specify

Publisher Information

publisher information

 In the Publish to SolrCloud

 window

 window, specify the following connection information to publish to

the

SolrCloud

 

.

Name: Enter

the

a unique name

of

for the publisher.

 (This name must be unique).Enter the Connection Method Type

SolrJ Configuration

  1. Choose a Connection Method:
    • CloudSolrServer:
This method connects
    • Connects using a
zookeeper
    • Zookeeper url
.
    • HttpSolrClient:
This method connects
    • Connects using a
solr
    • Solr url (direct connetion to Solr)
Enter the
  1.  Enter a Host
url
  1. URL,
depends
  1. depending on
the selection of
  1. the Connection Method
:
    • Zookeeper Host:
A list of zookeeper
    • Zookeeper hosts and
port comma separated
    • ports in a comma delimited list (ie: zkHost1:2181, zkHost2:2181, zkHost3:2181)
    • Solr Host: A single Solr host and port (ie: solrHost:8993)
Enter the
  1. Zookeeper chrootIf you're using a ZooKeeper instance that is shared by other systems,
it's recommended to isolate
  1. we recommend isolating the SolrCloud znode tree using ZooKeeper's chroot support.
    (For
instance
  1. example, to ensure all znodes created by SolrCloud are stored under /solr
,
  1. )
Enter the Solr collection name (same
  1. Solr Collection Name: Same collection of all Solr instances of the cloud
).
  1. XSL
File Path
  1. Transform:
set
  1. Set to the default parameter to use the default XSL transformation file.
To
  1.  To use a custom file, follow the instructions in Edit Xsl.
  2. Field
List
  1. list XPath: XPath expression to process field list.
  2. Id Field: The Id used for
identify
  1. identification the on Solr index.


Image Added

Image Added

Custom Application

  1. Zookeeper Client Timeout:
timeout
  1. Timeout for the client.
  2. Zookeeper Connect Timeout:
timeout
  1. Timeout for the client.
  2. Force Commit: If true, force a commit every time a batch is
send
  1. sent to the index.
  2. Commit with milliseconds:
milliseconds
  1. Milliseconds to wait before commit a batch to the index.

Kerberos Authentication

  1. Use Kerberos Authentication: Enable the authentication through Kerberos
    • CoreSite.xml: The path for the hadoop core-site.xml file
    • Login Configuration Properties: The path of the pseudo jaas properties file, please check
Login
    • the Login Config File.
  1. Max Tries: Maximum number of retry attempt to index.
  2. Retry Wait: Seconds to wait before re-trying to index.
  3. Debug:
Check if you want
  1. Select the check box to run the publisher in debug mode.
Click on the 

Click Add

 button.
 
                                                                   

Image Removed

Image Removed

Once you've clicked on the Add button, it . 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

When that's done, the publisher will appear in the the Workflow Tree.

Info

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

  

Anchor
LoginFile
LoginFile
Step 3b. Edit the Login Config

File

file

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

For example: Normal JAAS File

Code Block
languagexml
themeRDark
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 file for the publisher should be something like this, with only the properties propertyName=propertyValue (the module name and the login type are not necessary).

Code Block
languagexml
themeRDark
useKeyTab=true
keyTab="/home/centos/solr.keytab"
storeKey=true
doNotPrompt=true
useTicketCache=false
principal="solr/[email protected]"