Properly Installing Yellowfin on Linux With Systemd

In this article I'm installing Yellowfin 7.3 on Ubuntu 16.04 headless.  The prerequisites for installing Yellowfin are Java JRE and an RDBMS to install Yellowfin into.  I'll be using MySQL on the same box for this article.

Link to example Service Files for Linux

  1. Install the prerequisites:
    sudo apt install mysql-server openjdk-8-jre-headless
  2. Set up MySQL:
  3. Get your install .jar onto the box (you can use your preferred method here i.e. FTP, SCP, SMB, etc.).
  4. Create a user to run yellowfin as:
    sudo useradd -s /bin/false yellowfin
  5. Create the Yellowfin installation directory and give our new user ownership:
    sudo mkdir /opt/Yellowfin && sudo chown yellowfin /opt/Yellowfin
  6. Open a bash prompt as your new user:
    sudo -u yellowfin bash
  7. Run your installer:
    java -jar yellowfin-20170420-full.jar
  8. Follow the prompts providing the requested details.  When asked for a license file, I'm hitting enter and proceeding without a license.  This will be uploaded later.
  9. Now we need to configure our service.  Exit the yellowfin user bash prompt.  Ubuntu 16.04 uses systemd so we need to create a service file using our favorite text editor (or head here for Linux Service File examples):
    sudo vim /etc/systemd/system/yellowfin.service
  10. You can view the following example of a service file:
  11. So our yellowfin service file should look like this:

    Notice we set Type=forking.  This is because we're calling a startup script that will spawn additional processes.
  12. Next, we"ll enable and start our service:
    sudo systemctl enable yellowfin
    sudo systemctl start yellowfin
  13. Now Yellowfin is started and should start upon boot without manual intervention.  It"s also running under its own user context.
  14. Finally, I need to log in with the default credentials and upload my license file by clicking 'License Management' in the right-hand pane.  Following, I'll go to Uplaod License and browse to select the license from my local desktop:
  15. Finally, click Preview and then Submit to finish your installation.
Is this article helpful?
3 0 0