[ 
https://issues.apache.org/jira/browse/SOLR-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519189
 ] 

Hoss Man commented on SOLR-327:
-------------------------------

the replication scripts are not 100% portable on every OS out there -- but i 
don't know that they ever can be -- regardless of what language they are 
written in, or what filesystems are used.

the important thing is that they are abstracted from the Solr java code in a 
way that makes it possible for people with funky OSes/filesystems to implement 
any script/application they want and register it as a postCommit or 
postOptimize hook on a master box (and send a commit on slave machines when 
it's time to open a freshly synced index)

if the bash scripts work for a lot of people -- GREAT! ... if people want to 
provide perl scripts that do similar things, also great; if someone wants to 
submit C code for compiling native binary applications that take care of 
replication, that's great too.

the scripts we have now exist because they worked on the platform the original 
Solr developers used, that doesn't mean there can't be other completley 
different replication scripts/apps that work on other platforms (or work in 
completely different ways)  

I personally am more concerned with making sure we don't break the scripts on 
any platforms they currently do work on then i am about making them work on new 
platforms.

> shell scripts failed to run on Solaris 8 (and probably other non recent UNIX)
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-327
>                 URL: https://issues.apache.org/jira/browse/SOLR-327
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Paul Sundling
>            Priority: Minor
>
> There are several places where commands used are incompatible with older UNIX 
> versions, even though these capabilities are present.  There are ways to 
> rewrite the shell scripts to be compatible with these older versions.
> The first example is the use of pgrep.  Older machines will have grep, egrep 
> and fgrep, but NOT pgrep. I've been doing UNIX for well over a decade and 
> never heard of pgrep, although it is installed on my home server apparently. 
> :)
> There are also enhancements like the use of  'cp -l'.  This could be 
> accomplished with the 'ln' command instead on older UNIX versions.  Since 
> it's also used recursively in snapshooter, which 'ln' doesn't support, it 
> makes the command more complex.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to