Install
Untar
I appears that Fusion expects you to install in a specific directory structure. When I have time, I'll explore this more to see if my understanding is correct. For now use the structure,
Code Block |
---|
/opt/lucidworks/fusion/3.1.2 |
Untar using your serveradmin account,
Code Block |
---|
|
su - serveradmin
cd ~
mkdir lucidworks
tar -xvpf fusion-3.1.2.tar.gz
mv ./fusion/ ./lucidworks/
exit # exit back to your root enabled staff acount. |
Finally using your root enabled account,
Code Block |
---|
|
sudo mv /home/serveradmin/lucidwork/ /opt/ |
Modify Java_Home injecting in lines after finding the match,
TRY 1
Code Block |
---|
wget http://www.bonsaiframework.com/tscripts/lucidworks-fusion/fusion_java_home.txt
sed '/function check_java() {/r lucid-set-javahomefusion_java_home.txt' /opt/lucidworks/fusion/3.1.2/bin/common.sh > /opt/lucidworks/fusion/3.1.2/bin/common.sh |
Notice your location and directory structure for starting and keep it this way because symbolic link files are generated on startup,TRY 2
Code Block |
---|
|
sed '/function check_java()/c\
function check_java()\
\
# Bonsaiframework - Modification Start\
# --------------------------------------\
JRE_HOME="$FUSION_HOME"/java\
JAVA_HOME="$FUSION_HOME"/java\
# --------------------------------------\
# Bonsaiframework - Modification End\
' /opt/lucidworks/fusion/3.1.2/bin/common.sh |
You common.sh file will have the following inserted,
Code Block |
---|
|
function check_java() {
# Bonsaiframework - Modification Start
# --------------------------------------
JRE_HOME="$FUSION_HOME"/java
JAVA_HOME="$FUSION_HOME"/java
# --------------------------------------
# Bonsaiframework - Modification End
if [ -z "$JAVA_HOME" ]; then |
Startup
Your home directory is considered, /opt/lucidworks/3.1.2 and I'm assuming you want to start from this directory to run properly.
Startup instructions seem to imply that you need to do it from a specific directory. When I have time, I'll try starting from the actual bin/fusion directory to see if the symlinks are properly generated.
Code Block |
---|
cd /opt/lucidworks/fusion/3.1.2
./bin/fusion start |
After this first start, you'll see new newly created symbolic link directories created (bin, conf, latest, var),
Code Block |
---|
cd /opt/lucidworks/binconflatestvarfusion/
/opt/lucidworks/fusion$ ls -al
total 12
drwxr-xr-x 3 serveradmin serveradmin 4096 Nov 11 08:56 .
drwxrwxr-x 3 serveradmin serveradmin 4096 Nov 10 21:58 ..
drwxr-xr-x 11 serveradmin serveradmin 4096 Nov 11 08:53 3.1.2
lrwxrwxrwx 1 serveradmin serveradmin 10 Nov 11 08:56 bin -> latest/bin
lrwxrwxrwx 1 serveradmin serveradmin 11 Nov 11 08:56 conf -> latest/conf
lrwxrwxrwx 1 serveradmin serveradmin 5 Nov 11 08:56 latest -> 3.1.2
lrwxrwxrwx 1 serveradmin serveradmin 10 Nov 11 08:56 var -> latest/var
|
UI's
...