Installation Steps/Tips for Ubuntu Server (Linux)
17 December, 2012
Hi Folks,
I just wanted to post my tips/steps I took to get a minimal install of YellowFin on Ubuntu Server (12.10)
1. Downloaded ISO from Ubuntu.com
2. Install OS. (I'll leave you to learn how to do this elsewhere, I installed it in Virtual Box)
i. I'd suggest updating your system as well to ensure all packages are up to date.
3. Once you're installed, you'll need to install 2 additional packages:
i. MySQL Server
ii. OpenJDK-7-JRE-Headless
To do this I would run: [code]sudo apt-get install mysql-server openjdk-7-jre-headless[/code]
4. Download YellowFin. I use wget. You can get it from here
5. Run the Install/Setup script where you downloaded it: [code]sudo java -jar yellowfin-20121210-full.jar[/code]
i. I installed it to /opt/yf (needed to create this folder)
ii. I selected to use MySQL.
iii. I selected to use port 80.
6. I then made sure to disable Apache at boot, since it also runs on port 80. (I then went on to configure it to use another port, but for a 'simple' install you don't need Apache. ) [code]sudo update-rc.d -f apache2 disable[/code]
7. For bonus points, you want YellowFin to start up on boot. I created a ghetto init script (saved as an attachment):
[code]#!/bin/bash
# USAGE: start|stop
#
case "$1" in
start)
echo "Starting Yellowfin."
/opt/yf/appserver/bin/startup.sh
;;
stop)
echo "Stopping Yellowfin."
/opt/yf/appserver/bin/shutdown.sh
;;
*)
echo �Yellowfin Service�
echo $�Usage: $0 {start|stop}�
exit 1
esac
exit 0
[/code]
Save this as: [code]/etc/init.d/yellowfin[/code] (as root)
Then to ensure it works/runs, run: [code]sudo update-rc.d yellowfin defaults[/code]
I hope this helps someone out, as it's mostly for my own reference ;)
Thanks
Ryan.
@ryanhunt
I just wanted to post my tips/steps I took to get a minimal install of YellowFin on Ubuntu Server (12.10)
1. Downloaded ISO from Ubuntu.com
2. Install OS. (I'll leave you to learn how to do this elsewhere, I installed it in Virtual Box)
i. I'd suggest updating your system as well to ensure all packages are up to date.
3. Once you're installed, you'll need to install 2 additional packages:
i. MySQL Server
ii. OpenJDK-7-JRE-Headless
To do this I would run: [code]sudo apt-get install mysql-server openjdk-7-jre-headless[/code]
4. Download YellowFin. I use wget. You can get it from here
5. Run the Install/Setup script where you downloaded it: [code]sudo java -jar yellowfin-20121210-full.jar[/code]
i. I installed it to /opt/yf (needed to create this folder)
ii. I selected to use MySQL.
iii. I selected to use port 80.
6. I then made sure to disable Apache at boot, since it also runs on port 80. (I then went on to configure it to use another port, but for a 'simple' install you don't need Apache. ) [code]sudo update-rc.d -f apache2 disable[/code]
7. For bonus points, you want YellowFin to start up on boot. I created a ghetto init script (saved as an attachment):
[code]#!/bin/bash
# USAGE: start|stop
#
case "$1" in
start)
echo "Starting Yellowfin."
/opt/yf/appserver/bin/startup.sh
;;
stop)
echo "Stopping Yellowfin."
/opt/yf/appserver/bin/shutdown.sh
;;
*)
echo �Yellowfin Service�
echo $�Usage: $0 {start|stop}�
exit 1
esac
exit 0
[/code]
Save this as: [code]/etc/init.d/yellowfin[/code] (as root)
Then to ensure it works/runs, run: [code]sudo update-rc.d yellowfin defaults[/code]
I hope this helps someone out, as it's mostly for my own reference ;)
Thanks
Ryan.
@ryanhunt
We have had clients have problems with the headless java environment. This lacks some of the graphical libraries required for rendering charts.
The headless environment will install by default if you are in a "headless" environment (console only) and install "java". There should be a package that includes the full JVM, but you may have to refer to this explicitly.
As of the release of Yellowfin 6.2, we also do not recommend running on Java 7. If you have to run Java 7, we recommend using the "java.util.Arrays.useLegacyMergeSort" system property to rule out issues that Yellowfin may have with sorting.
You can find more information about the sort issue here: http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#source
The headless environment will install by default if you are in a "headless" environment (console only) and install "java". There should be a package that includes the full JVM, but you may have to refer to this explicitly.
As of the release of Yellowfin 6.2, we also do not recommend running on Java 7. If you have to run Java 7, we recommend using the "java.util.Arrays.useLegacyMergeSort" system property to rule out issues that Yellowfin may have with sorting.
You can find more information about the sort issue here: http://www.oracle.com/technetwork/java/javase/compatibility-417013.html#source
Thanks Peter. Does the issue of running on "Java 7" also hold true for using the OpenJDK 7?
Cheers
Ryan.
Cheers
Ryan.
Concerning automatic startup of Yellowfin on boot:
Edit rc.local file like so:
[code]sudo nano /etc/rc.local[/code]
insert before [code]exit 0[/code] this:
[code]/opt/Yellowfin/appserver/bin/startup.sh[/code]
Edit rc.local file like so:
[code]sudo nano /etc/rc.local[/code]
insert before [code]exit 0[/code] this:
[code]/opt/Yellowfin/appserver/bin/startup.sh[/code]