lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brent Pearson (Confluence)" <conflue...@apache.org>
Subject [CONF] Apache Solr Reference Guide > Getting Started with SolrCloud
Date Fri, 26 Aug 2016 00:57:04 GMT
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<base href="https://cwiki.apache.org/confluence"> 
<title>Message Title</title>  
<style type="text/css">@media only screen and (max-device-width: 480px) {.mobile-only
{
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    line-height: normal !important;
    font-size: inherit !important;
    mso-hide: all;
}

.desktop-only {
    display: none !important;
}

/* iPhone 3GS fix for unwanted 20px right margin */
body {
    min-width: 100% !important;
    padding: 0;
    margin: 0;
}

#center-content-table {
    max-width: none;
!important;
}

#header-pattern-container {
    padding: 10px 10px 10px 10px !important;
    line-height: 20px !important;
}

#header-avatar-image-container {
    padding-right: 8px !important;
}

#email-content-container {
    padding: 0 !important;
}

.mobile-expand {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding-left: 26px !important;
}

.mobile-resize-text {
    font-size: 16px !important;
    line-height: 22px !important;
}

#page-title-pattern-header {
    font-size: 20px !important;
    line-height: 28px !important;
}

#page-title-pattern-icon-image-container-cell {
    padding-top: 7px !important;
}

#inline-user-pattern {
    display: block !important;
}

#inline-user-pattern-avatar {
    padding-top: 3px !important;
}

.contextual-area-pattern {
    border-bottom: 1px solid #ccc !important;
    padding: 15px 10px 0 10px !important;
}

.users-involved-pattern-column-table {
    width: 100% !important;
}

.users-involved-pattern-avatar-table-cell {
    padding: 3px 5px 5px 0 !important;
}

.users-involved-pattern-column-container {
    padding-right: 0 !important;
}

.contextual-excerpt-pattern, #users-involved-pattern {
    border: 0 !important;
}

/** Aui Typography upsized for mobile **/
#content-excerpt-pattern-container, #contextual-excerpt-pattern-text-container {
    font-size: 16px !important;
    line-height: 22px !important;
}

#content-excerpt-pattern-container h1, #contextual-excerpt-pattern-text-container h1 {
    font-size: 24px !important;
    line-height: 28px !important;
}

#content-excerpt-pattern-container h2, #contextual-excerpt-pattern-text-container h2 {
    font-size: 20px !important;
    line-height: 28px !important;
}

#content-excerpt-pattern-container h3, #contextual-excerpt-pattern-text-container h3 {
    font-size: 18px !important;
    line-height: 24px !important;
}

#content-excerpt-pattern-container h4, #contextual-excerpt-pattern-text-container h4 {
    font-size: 16px !important;
    line-height: 22px !important;
}

#content-excerpt-pattern-container h5, #contextual-excerpt-pattern-text-container h5 {
    font-size: 14px !important;
    line-height: 20px !important;
}

#content-excerpt-pattern-container h6, #contextual-excerpt-pattern-text-container h6 {
    font-size: 14px !important;
    line-height: 20px !important;
}

.user-mention {
    line-height: 18px !important;
}

/** Aui Typography end **/

/* Show appropriate footer logo on mobile, display links vertically */
#footer-pattern {
    padding: 15px 10px !important;
}

#footer-pattern-logo-desktop-container {
    padding: 0 !important;
}

#footer-pattern-logo-desktop {
    width: 0 !important;
    height: 0 !important;
}

#footer-pattern-logo-mobile {
    padding-top: 10px !important;
    width: 30px !important;
    height: 27px !important;
    display: inline !important;
}

#footer-pattern-text {
    display: block !important;
}

#footer-pattern-links-container {
    line-height: 0 !important;
}

.footer-pattern-links.mobile-resize-text,
.footer-pattern-links.mobile-resize-text,
#footer-pattern-text.mobile-resize-text,
#footer-pattern-links-container.no-footer-links {
    font-size: 14px !important;
    line-height: 20px !important;
}

.footer-link {
    display: block !important;
}

#footer-pattern-links-container table {
    display: inline-block !important;
    float: none !important;
}

#footer-pattern-links-container, #footer-pattern-text {
    text-align: center !important;
}

#footer-pattern-links {
    padding-bottom: 5px !important;
}

/** Team Calendar overrides, these should be removed when notifications are updated in Team
Calendars. For now CSS
    overrides are being used because the structure of the content can't change without rereleasing
the plugin */
.mail-calendar-container .day-header + table tr td:first-child {
    vertical-align: top !important;
    padding-top: 5px !important;
}}
@media (min-width: 900px) {#center-content-table { width: 900px; }}
@media all {#outlook a {
    padding: 0;
}

/* Force Outlook to provide a "view in browser" menu link. */
/* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/
body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.ExternalClass {
    width: 100%;
}

/* Force Hotmail to display emails at full width */
#background-table {
    margin: 0;
    padding: 0;
    width: 100% !important;
}

/* Needed to override highlighting on date and time links in iOS */
.grey a {
    color: #707070;
    text-decoration: none;
}/* These styles are appended to the head element of a notification in order to prevent Apple
Mail and similar
   clients from underlining the due dates with a blue hyperlink */
/* a lozenge outside an inline task should always be #333, lozenges inside an inline task
should be
   colored according to their upcoming due dates, a completed task date lozenge or deleted
task date
   lozenge should always be #707070 */
.date-time-lozenge a {color: #333333; text-decoration: none; }
.inline-task-text-container .date-time-lozenge.date-upcoming a {color: #DF6F00; text-decoration:
none; }
.inline-task-text-container .date-time-lozenge.date-past a {color: #D04437; text-decoration:
none; }
.inline-task-text-container.content-deleted-color .date-time-lozenge a,
.inline-task-text-container.checked .date-time-lozenge a {
    color: #707070; text-decoration: none;
}}
</style> 
</head>
<body>
<table id="background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse:
collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; background-color: #f5f5f5">

<tbody> 
<tr> 
<td id="header-pattern-container" style="padding: 0px; border-collapse: collapse; padding:
10px 20px"> 
<table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse:
collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333"> 
<tbody> 
<tr> 
<td id="header-avatar-image-container" valign="top" style="padding: 0px; border-collapse:
collapse; vertical-align: top; width: 32px; padding-right: 9px"><a href="https://cwiki.apache.org/confluence/display/~brent212?src=mail&amp;src.mail.timestamp=1472173024874&amp;src.mail.notification=com.atlassian.confluence.plugins.confluence-content-notifications-plugin%3Acomment-created-notification&amp;src.mail.recipient=8aa980874e36a1eb014e36a2992a202c"
style="color: #3b73af; text-decoration: none"><img id="header-avatar-image" class="image_fix"
src="cid:avatar_d90db5b6c7f7b6658a337d9344464c69" height="32" width="32" border="0" style="border-radius:
3px; vertical-align: top"></a></td>
<td id="header-text-container" valign="middle" style="padding: 0px; border-collapse: collapse;
vertical-align: middle; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;
mso-line-height-rule: exactly; mso-text-raise: 1px">Brent Pearson <strong>commented</strong>
on a page</td> 
</tr> 
</tbody> 
</table> </td> 
</tr> 
<!-- End Header pattern --> 
<tr> 
<td id="email-content-container" style="padding: 0px; border-collapse: collapse; padding:
0 20px"> 
<table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%"
style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333;
border-spacing: 0; border-collapse: separate"> 
<tbody> 
<tr> 
<td class="email-content-rounded-top mobile-expand" style="padding: 0px; border-collapse:
collapse; color: #fff; padding: 0 15px 0 16px; height: 15px; background-color: #fff; border-left:
1px solid #ccc; border-top: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 0;
border-top-right-radius: 5px; border-top-left-radius: 5px">&nbsp;</td> 
</tr> 
<tr> 
<td class="email-content-main mobile-expand" style="padding: 0px; border-collapse: collapse;
border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0;
padding: 0 15px 15px 16px; background-color: #fff"> 
<table id="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%"
style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333">

<tbody> 
<tr> 
<td id="page-title-pattern-icon-image-container" valign="top" style="padding: 0px; border-collapse:
collapse; width: 16px; vertical-align: top"> 
<table cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace:
0pt; mso-table-rspace: 0pt; color: #333"> 
<tbody> 
<tr> 
<td id="page-title-pattern-icon-image-container-cell" style="padding: 0px; border-collapse:
collapse; width: 16px; padding: 9px 8px 0px 0px; mso-text-raise: 5px; mso-line-height-rule:
exactly"><a href="https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud?focusedCommentId=65867453&amp;src=mail&amp;src.mail.timestamp=1472173024874&amp;src.mail.notification=com.atlassian.confluence.plugins.confluence-content-notifications-plugin%3Acomment-created-notification&amp;src.mail.recipient=8aa980874e36a1eb014e36a2992a202c&amp;src.mail.action=view#comment-65867453"
title="comment icon" style="vertical-align: top;; color: #3b73af; text-decoration: none"><img
style="vertical-align: top; display: block;" src="cid:comment-icon" alt="comment icon" title="comment
icon" height="16" width="16" border="0"></a></td> 
</tr> 
</tbody> 
</table> </td>
<td style="vertical-align: top;; padding: 0px; border-collapse: collapse; padding-right:
5px; font-size: 20px; line-height: 30px; mso-line-height-rule: exactly" id="page-title-pattern-header-container"><span
id="page-title-pattern-header" style="font-family: Arial, sans-serif; padding: 0; font-size:
20px; line-height: 30px; mso-text-raise: 2px; mso-line-height-rule: exactly; vertical-align:
middle"><a href="https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud?focusedCommentId=65867453&amp;src=mail&amp;src.mail.timestamp=1472173024874&amp;src.mail.notification=com.atlassian.confluence.plugins.confluence-content-notifications-plugin%3Acomment-created-notification&amp;src.mail.recipient=8aa980874e36a1eb014e36a2992a202c&amp;src.mail.action=view#comment-65867453"
title="Re: Getting Started with SolrCloud" style="color: #3b73af; text-decoration: none">Re:
Getting Started with SolrCloud</a></span></td> 
</tr> 
</tbody> 
</table> </td> 
</tr> 
<tr> 
<td class="email-content-main mobile-expand" style="padding: 0px; border-collapse: collapse;
border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0;
padding: 0 15px 15px 16px; background-color: #fff"> 
<table class="content-excerpt-pattern" cellspacing="0" cellpadding="0" border="0" width="100%"
style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333;
font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule:
exactly; mso-text-raise: 1px"> 
<tbody> 
<tr> 
<td class="content-excerpt-pattern-container mobile-resize-text " style="padding: 0px;
border-collapse: collapse; padding: 0 0 0 24px"> <p style="margin: 10px 0 0 0; margin-top:
0">This was incredibly helpful. Did your doc ever get added to the wiki? I've looked through
it a bit and haven't seen anything providing instructions for a similar procedure (setting
up a collection <strong>without</strong>&nbsp;using the included example configsets
directly, but instead creating your own config + schema using them as a reference).</p>
<p style="margin: 10px 0 0 0">The problem I was having that your post resolved was that
for step 4, instead of creating the collection with the solr "create" command, I was trying
to do it through the Admin UI, and kept getting errors in the Solr log saying that it couldn't
find solrconfig.xml, even though it was both in ZooKeeper under /&lt;solr_root&gt;/configs/&lt;config_name&gt;
and in the file system under /opt/solr/server/configsets/&lt;config_name&gt;/conf
(I put it there because thats where the example configsets had it).</p> <p style="margin:
10px 0 0 0">Looks like the solr create command works because it specifies the config directory
with my config files, whereas doing it through the Admin UI couldn't find them even though
the config name was selectable through a drop down menu in the UI, I assume because Solr found
the path in ZooKeeper under /&lt;solr_root&gt;/configs/&lt;config_name&gt;.&nbsp;</p>
<p style="margin: 10px 0 0 0">That last part led me to discover that step (2) is not
actually needed, and actually just creates an unused path in ZooKeeper at /&lt;solr_root&gt;/configs/&lt;config_name&gt;,
while the actual path for the configs that Solr itself creates when the collection is created
is at /&lt;solr_root&gt;/configs/&lt;collection_name&gt;. Instead, I just
need to make sure the Solr root in ZooKeeper ("chroot"?) exists before Solr starts. So now
my procedure from start to finish looks like this:</p> 
<div class="code panel pdl" style="border-width: 1px;"> 
<div class="codeContent panelContent pdl"> 
<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;; margin:
10px 0 0 0; margin-top: 0">SOLR_INSTALL=&lt;path to Solr installation root&gt;
# /opt/solr
SOLR_SERVER_HOME="${SOLR_INSTALL}"/server
SOLR_HOME=&lt;path to Solr data root&gt; # /var/solr/data
ZK_LOCATION=&lt;ZooKeeper location with port&gt; # e.g., localhost:2181
ZK_SOLR_ROOT=/solr
CONFIG_NAME=&lt;name of configset&gt;
COLLECTION_NAME=&lt;some collection name&gt;
&nbsp;
# Create Solr root in ZooKeeper.
"${SOLR_SERVER_HOME}"/scripts/cloud-scripts/zkcli.sh -zkhost ${ZK_LOCATION} -cmd makepath
${ZK_SOLR_ROOT}

# Unfortunately, Solr requires solr.xml in the same location that it stores data.
cp "${SOLR_SERVER_HOME}"/solr/solr.xml "${SOLR_HOME}"
&nbsp;
# Start Solr.
"${SOLR_INSTALL}"/bin/solr start -c -z ${ZK_LOCATION}${ZK_SOLR_ROOT} -s "${SOLR_HOME}" -d
"${SOLR_SERVER_HOME}"
&nbsp;
# Create collection.
"${SOLR_INSTALL}"/bin/solr create -c ${COLLECTION_NAME} -d "${SOLR_SERVER_HOME}"/solr/configsets/${CONFIG_NAME}
-shards 1 -replicationFactor 1</pre> 
</div> 
</div> <p style="margin: 10px 0 0 0">My use case using one identical set of config
files for multiple collections, but now that I'm thinking about it, I suppose it's common
to have a different set of config files for each collection, and then you'd probably make
&lt;collection name&gt; the same as &lt;config name&gt;, and then uploading
the configs to ZooKeeper before starting Solr would be useful because then perhaps creating
the collection with the Admin UI would then work.</p> <p style="margin: 10px 0 0
0">To reset everything I use:</p> 
<div class="code panel pdl" style="border-width: 1px;"> 
<div class="codeContent panelContent pdl"> 
<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;; margin:
10px 0 0 0; margin-top: 0">"${SOLR_INSTALL}"/bin/solr stop
rm "${SOLR_SERVER_HOME}"/logs/* 2&gt;/dev/null
rm -r "${SOLR_HOME}"/*shard* 2&gt;/dev/null
"${SOLR_SERVER_HOME}"/scripts/cloud-scripts/zkcli.sh -zkhost ${ZK_LOCATION} -cmd clear ${ZK_SOLR_ROOT}</pre>

</div> 
</div> </td> 
</tr> 
</tbody> 
</table> </td> 
</tr> 
<tr> 
<td class="email-content-main mobile-expand action-padding last-row-padding" style="padding:
0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc;
border-top: 0; border-bottom: 0; padding: 0 15px 15px 16px; background-color: #fff; padding-bottom:
10px; padding-bottom: 10px"> 
<table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse:
collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; font-family: Arial, sans-serif;
font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px">

<tbody> 
<tr> 
<td id="actions-pattern-container" valign="middle" style="padding: 0px; border-collapse:
collapse; padding: 15px 0 0 24px; vertical-align: middle"> 
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace:
0pt; color: #333"> 
<tbody> 
<tr> 
<td class="actions-pattern-action-icon-container" style="padding: 0px; border-collapse:
collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule:
exactly; mso-text-raise: 0px; vertical-align: middle"><a href="https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud?replyToComment=65867453&amp;src=mail&amp;src.mail.timestamp=1472173024874&amp;src.mail.notification=com.atlassian.confluence.plugins.confluence-content-notifications-plugin%3Acomment-created-notification&amp;src.mail.recipient=8aa980874e36a1eb014e36a2992a202c&amp;src.mail.action=reply#comment-65867453"
title="Reply Icon" style="color: #3b73af; text-decoration: none"><img class="actions-pattern-action-icon-image"
height="16" width="16" border="0" title="Reply Icon" src="cid:com.atlassian.confluence.plugins.confluence-email-resources%3Areply-to-comment-email-adg-footer-item%3Aicon"
alt="Reply Icon" style="vertical-align: middle"></a></td>
<td class="actions-pattern-action-text-container" style="padding: 0px; border-collapse:
collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule:
exactly; mso-text-raise: 4px; padding-left: 5px; white-space: nowrap"><a href="https://cwiki.apache.org/confluence/display/solr/Getting+Started+with+SolrCloud?replyToComment=65867453&amp;src=mail&amp;src.mail.timestamp=1472173024874&amp;src.mail.notification=com.atlassian.confluence.plugins.confluence-content-notifications-plugin%3Acomment-created-notification&amp;src.mail.recipient=8aa980874e36a1eb014e36a2992a202c&amp;src.mail.action=reply#comment-65867453"
title="Reply" style="color: #3b73af; text-decoration: none">Reply</a></td>
<td class="actions-pattern-action-bull" style="padding: 0px; border-collapse: collapse;
font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule:
exactly; mso-text-raise: 4px; color: #999; padding: 0 5px">•</td> 
</tr> 
</tbody> 
</table> 
<table style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;
color: #333"> 
<tbody> 
<tr> 
<td class="actions-pattern-action-icon-container" style="padding: 0px; border-collapse:
collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule:
exactly; mso-text-raise: 0px; vertical-align: middle"><a href="https://cwiki.apache.org/confluence/plugins/likes/like.action?contentId=65867453&amp;src=mail&amp;src.mail.timestamp=1472173024874&amp;src.mail.notification=com.atlassian.confluence.plugins.confluence-content-notifications-plugin%3Acomment-created-notification&amp;src.mail.recipient=8aa980874e36a1eb014e36a2992a202c&amp;src.mail.action=like"
title="Like Icon" style="color: #3b73af; text-decoration: none"><img class="actions-pattern-action-icon-image"
height="16" width="16" border="0" title="Like Icon" src="cid:com.atlassian.confluence.plugins.confluence-like%3Aview-email-adg-content-item%3Aicon"
alt="Like Icon" style="vertical-align: middle"></a></td>
<td class="actions-pattern-action-text-container" style="padding: 0px; border-collapse:
collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule:
exactly; mso-text-raise: 4px; padding-left: 5px; white-space: nowrap"><a href="https://cwiki.apache.org/confluence/plugins/likes/like.action?contentId=65867453&amp;src=mail&amp;src.mail.timestamp=1472173024874&amp;src.mail.notification=com.atlassian.confluence.plugins.confluence-content-notifications-plugin%3Acomment-created-notification&amp;src.mail.recipient=8aa980874e36a1eb014e36a2992a202c&amp;src.mail.action=like"
title="Like" style="color: #3b73af; text-decoration: none">Like</a></td> 
</tr> 
</tbody> 
</table> </td> 
</tr> 
</tbody> 
</table> </td> 
</tr> 
<tr> 
<td class="email-content-rounded-bottom mobile-expand" style="padding: 0px; border-collapse:
collapse; color: #fff; height: 5px; line-height: 5px; padding: 0 15px 0 16px; background-color:
#fff; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; border-top: 0; border-left:
1px solid #ccc; border-bottom: 1px solid #ccc; border-right: 1px solid #ccc; mso-line-height-rule:
exactly">&nbsp;</td> 
</tr> 
</tbody> 
</table> </td> 
</tr> 
<tr> 
<td class="contextual-area-pattern" style="padding: 0px; border-collapse: collapse; padding:
15px 20px 0 20px"> 
<table class="contextual-excerpt-pattern" cellspacing="0" cellpadding="0" border="0" width="100%"
style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333;
border-bottom: 1px solid #ccc"> 
<tbody> 
<tr> 
<td colspan="2" class="contextual-excerpt-pattern-text mobile-resize-text" style="padding:
0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height:
20px; mso-line-height-rule: exactly; mso-text-raise: 1px">In reply to</td> 
</tr> 
<tr> 
<td class="contextual-excerpt-pattern-avatar-container" valign="top" style="padding: 0px;
border-collapse: collapse; width: 32px; padding: 4px 8px 20px 0; vertical-align: top">

<table style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;
color: #333"> 
<tbody> 
<tr> 
<td class="contextual-excerpt-pattern-avatar" style="padding: 0px; border-collapse: collapse;
padding: 3px 0 0 0"><img class="contextual-excerpt-pattern-avatar-image image_fix" src="cid:avatar_548a36273f067bbc7b05781382bd009e"
alt="" title="" height="32" width="32" border="0" style="border-radius: 3px"></td>

</tr> 
</tbody> 
</table> </td>
<td class="contextual-excerpt-pattern-text contextual-excerpt-pattern-text-container mobile-resize-text"
valign="top" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif;
font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px; padding:
4px 0 17px 0"><strong>John Bickerstaff</strong> 
<div> 
<p style="margin: 10px 0 0 0; margin-top: 0">Thank you Shawn. &nbsp;I came up with
the same key idea myself after pounding on this for about a week. &nbsp;Once I had a new
chroot in Zookeeper, things began to fall into place. &nbsp;The chicken-and-egg question
of needing to have the config in place FIRST when the command for creating a new collection
clearly references the config anyway was a bit of a stumper for a while, but a lucky "mistake"
left the configs in there from a previous attempt and that did the trick. &nbsp;When I
tried to reproduce from scratch, I realized that the configs had to be there first.</p>

<p style="margin: 10px 0 0 0">I have a complete doc on this now. &nbsp;I've reproduced
the same results 5 times by stripping my VM's down to nothing but the OS and doing the entire
process again. &nbsp;I guess I'd propose an additional wiki page entitled something like
"Building SolrCloud on Separate Virtual Machines." &nbsp;If that meets with the approval
of the powers-that-be, I can provide the doc.</p> 
<p style="margin: 10px 0 0 0">Also, forgive ignorance, but the mailing list is.... &nbsp;where?</p>

<p style="margin: 10px 0 0 0">=======================</p> 
<p style="margin: 10px 0 0 0">In case we don't get to a full wiki page, and to assist
anyone else struggling as I was, the nutshell is below. &nbsp;Less detail than I have
in my doc, but as Shawn says, this probably isn't the place for the full doc.</p> 
<p style="margin: 10px 0 0 0">Assumption: &nbsp;Zookeeper is up and running correctly
on separate boxes or VM's reachable by your SOLR boxes or VM's</p> 
<ol style="margin: 10px 0 0 0"> 
<li>Install SOLR 5.4 "for production" as described here: 
<ol style="margin: 10px 0 0 0; margin-top: 0"> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production"
rel="nofollow" style="color: #3b73af; text-decoration: none">https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production</a>
</p> </li> 
</ol> </li> 
<li>Upload the configs from your previous version of SOLR (or your tested Dev version)
to Zookeeper like this: 
<ol style="margin: 10px 0 0 0; margin-top: 0"> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>sudo /opt/solr/server/scripts/cloud-scripts/zkcli.sh
-cmd upconfig&nbsp;</em><em style="font-size: 11.0pt;line-height: 16.0pt;">-confdir
/home/john/conf/&nbsp;</em><em style="font-size: 11.0pt;line-height: 16.0pt;">-confname
fooBar&nbsp;</em><em style="font-size: 11.0pt;line-height: 16.0pt;">-z 192.168.56.5/solr5_4</em>
</p> </li> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>Verify the new node
and config directory exists on Zookeeper if you want, using the Zookeeper zkCli.sh tool</em>
</p> </li> 
</ol> </li> 
<li>Start SOLR 5.4 on two physical boxes or VM's: 
<ol style="margin: 10px 0 0 0; margin-top: 0"> 
<li> <em>sudo /opt/solr/bin/solr restart -c -z 192.168.56.5,192.168.56.6,192.168.56.7/solr5_4</em><em>
<br> </em> </li> 
</ol> </li> 
<li> <em>Create the new collection on the new chroot</em> 
<ol style="margin: 10px 0 0 0"> 
<li> <em><em>opt/solr/bin/solr create -c fooBar -d /home/john/conf -shards
1 -replicationFactor 2</em> <br> </em> </li> 
<li> <em><em>You should see output that clearly states the new collection
was created</em></em> </li> 
<li> <em><em>This happens on the new chroot of solr5_4 because you started
your SOLR instances on that chroot in step #3.</em></em> </li> 
</ol> </li> 
<li> <em><em>Check the collection's status using this command:</em></em>

<ol style="margin: 10px 0 0 0"> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>/opt/solr/bin/solr
healthcheck -192.168.56.5,192.168.56.6,&nbsp;</em><em style="font-size: 11.0pt;line-height:
16.0pt;">192.168.56.7/solr5_4 -c fooBar</em> </p> </li> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>You should see a
JSON "object" for each node, indicating that the nodes were created on each of the two SOLR
nodes started in #3.</em> </p> </li> 
</ol> </li> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>Verify the directories
are where they should be on each of the two Solr machines</em> </p> 
<ol style="margin: 10px 0 0 0"> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em> ls /opt/solr/server/solr
on each machine should return the following:<br> </em> </p> 
<ol style="margin: 10px 0 0 0"> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>machine a:&nbsp;&nbsp;fooBar_shard1_replica1&nbsp;&nbsp;</em>
</p> </li> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>machine b: fooBar_shard1_replica2</em>
</p> </li> 
</ol> </li> 
</ol> </li> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>Did you make a mistake
in Zookeeper? &nbsp;Here's how to clear it out and try again:</em> </p> 
<ol style="margin: 10px 0 0 0"> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>Using the Zookeeper
zkCli.sh tool, issue this command:</em> </p> 
<ol style="margin: 10px 0 0 0"> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>rmr /solr5_4</em>
</p> </li> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>Now repeat step #2</em>
</p> </li> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>NOT tested, but probably
will work if you have other things in /solr5_4:</em> </p> 
<ol style="margin: 10px 0 0 0"> 
<li> <p style="margin: 10px 0 0 0; margin-top: 0"> <em>rmr /solr5_4/configs</em>
</p> </li> 
</ol> </li> 
</ol> </li> 
</ol> </li> 
</ol> 
<p style="margin: 10px 0 0 0">&nbsp;</p> 
</div> </td> 
</tr> 
</tbody> 
</table> </td> 
</tr> 
<tr> 
<td id="footer-pattern" style="padding: 0px; border-collapse: collapse; padding: 12px 20px">

<table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" width="100%"
style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333">

<tbody> 
<tr> 
<td id="footer-pattern-links-container" width="100%" style="padding: 0px; border-collapse:
collapse; color: #999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif;
mso-line-height-rule: exactly; mso-text-raise: 2px"> 
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace:
0pt; color: #333; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule:
exactly; mso-text-raise: 2px"> 
<tbody> 
<tr> 
<td class="footer-pattern-links mobile-resize-text" style="padding: 0px; border-collapse:
collapse"><a href="https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=solr&amp;src=mail&amp;src.mail.timestamp=1472173024874&amp;src.mail.notification=com.atlassian.confluence.plugins.confluence-content-notifications-plugin%3Acomment-created-notification&amp;src.mail.recipient=8aa980874e36a1eb014e36a2992a202c&amp;src.mail.action=stop-watching"
title="" style="color: #3b73af; text-decoration: none">Stop watching space</a></td>
<td class="footer-pattern-links-bull" style="padding: 0px; border-collapse: collapse; padding:
0 5px; color: #999">•</td> 
</tr> 
</tbody> 
</table> 
<table style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;
color: #333; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule:
exactly; mso-text-raise: 2px"> 
<tbody> 
<tr> 
<td class="footer-pattern-links mobile-resize-text" style="padding: 0px; border-collapse:
collapse"><a href="https://cwiki.apache.org/confluence/users/editmyemailsettings.action?src=mail&amp;src.mail.timestamp=1472173024874&amp;src.mail.notification=com.atlassian.confluence.plugins.confluence-content-notifications-plugin%3Acomment-created-notification&amp;src.mail.recipient=8aa980874e36a1eb014e36a2992a202c&amp;src.mail.action=manage"
title="" style="color: #3b73af; text-decoration: none">Manage notifications</a></td>

</tr> 
</tbody> 
</table> </td>
<td id="footer-pattern-logo-desktop-container" rowspan="2" valign="top" style="padding:
0px; border-collapse: collapse; padding-left: 20px; vertical-align: top"> 
<table style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;
color: #333"> 
<tbody> 
<tr> 
<td id="footer-pattern-logo-desktop-padding" style="padding: 0px; border-collapse: collapse;
padding-top: 3px"><img id="footer-pattern-logo-desktop" src="cid:footer-desktop-logo"
alt="Confluence logo big" title="Confluence logo big" width="132" height="20" class="image_fix"></td>

</tr> 
</tbody> 
</table> </td> 
</tr> 
<tr> 
<td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0px;
border-collapse: collapse; color: #999; font-size: 12px; line-height: 18px; font-family: Arial,
sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px; display: none">This message
was sent by Atlassian Confluence 5.8.4<br> <img id="footer-pattern-logo-mobile" src="cid:footer-mobile-logo"
alt="" title="" width="0" height="0" style="display: none; mso-hide: all"></td> 
</tr> 
</tbody> 
</table> </td> 
</tr> 
</tbody> 
</table> 
<table id="sealed-section" border="0" cellpadding="0" cellspacing="0" width="0" style="border-collapse:
collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; display: none"> 
<tbody> 
<tr> 
<td style="padding: 0px; border-collapse: collapse; border: 0; font-size: 0px; line-height:
0; mso-line-height-rule: exactly"></td> 
</tr> 
</tbody> 
</table>
</body>
</html>
Mime
View raw message