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... lucid-set-javahomebonsaiframework.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 |
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 |
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.
Code Block |
---|
/opt/lucidworks/fusion/3.1.2 |
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.
...