JobScheduler - Amazon AMI Installation



Similar documents
JobScheduler Installation by Copying

JobScheduler - Installation Guide

JobScheduler Security

How To Use The Jobscheduler On A Linux Box (Jid) On A Pcode (Jio) Or Macbook 2.2 On A Microsoft Powerbook 2 (For A Freebie

Hadoop Installation MapReduce Examples Jake Karnes

AWS Schema Conversion Tool. User Guide Version 1.0

INSTALLING KAAZING WEBSOCKET GATEWAY - HTML5 EDITION ON AN AMAZON EC2 CLOUD SERVER

Single Node Hadoop Cluster Setup

JobScheduler - Quickstart

MySQL Job Scheduling

Running Knn Spark on EC2 Documentation

Using The Hortonworks Virtual Sandbox

Cloud Homework instructions for AWS default instance (Red Hat based)

Distributed convex Belief Propagation Amazon EC2 Tutorial

Contents Set up Cassandra Cluster using Datastax Community Edition on Amazon EC2 Installing OpsCenter on Amazon AMI References Contact

Moving Drupal to the Cloud: A step-by-step guide and reference document for hosting a Drupal web site on Amazon Web Services

AWS Schema Conversion Tool. User Guide Version 1.0

Creating an ESS instance on the Amazon Cloud

JobScheduler. Architecture and Mode of Operation. Software for Open Source

Kognitio Technote Kognitio v8.x Hadoop Connector Setup

JobScheduler Web Services Executing JobScheduler commands

Zend Server Amazon AMI Quick Start Guide

Source Code Management for Continuous Integration and Deployment. Version 1.0 DO NOT DISTRIBUTE

DVS-100 Installation Guide

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Cassandra Installation over Ubuntu 1. Installing VMware player:

CrontabFile Converter

APPLICATION NOTE. How to build pylon applications for ARM

User Manual - Help Utility Download MMPCT. (Mission Mode Project Commercial Taxes) User Manual Help-Utility

OnCommand Performance Manager 1.1

Spectrum Spatial Analyst Version 4.0. Installation Guide for Linux. Contents:

jbase 5 Install on Amazon AWS a Primer

WEB2CS INSTALLATION GUIDE

About This Document 3. About the Migration Process 4. Requirements and Prerequisites 5. Requirements... 5 Prerequisites... 5

IGEL Universal Management. Installation Guide

Installing Virtual Coordinator (VC) in Linux Systems that use RPM (Red Hat, Fedora, CentOS) Document # 15807A1-103 Date: Aug 06, 2012

MATLAB on EC2 Instructions Guide

Creating a DUO MFA Service in AWS

HSearch Installation

Tibbr Installation Addendum for Amazon Web Services

Installation of the Shibboleth-Apache Authorisation Module. 2. Obtain and compile the Apache server software

OpenGeo Suite for Linux Release 3.0

OS Installation: CentOS 5.8

Installing IBM Websphere Application Server 7 and 8 on OS4 Enterprise Linux

Zend Server 5.0 Reference Manual

Installation & Upgrade Guide

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

Copyright 2014, SafeNet, Inc. All rights reserved.

Integrating SAP BusinessObjects with Hadoop. Using a multi-node Hadoop Cluster

How to install PowerChute Network Shutdown on VMware ESXi 3.5, 4.0 and 4.1

Architecture and Mode of Operation

Running Kmeans Mapreduce code on Amazon AWS

DVS-100 Installation Guide

Tutorial: Using HortonWorks Sandbox 2.3 on Amazon Web Services

Installation Guide. Copyright (c) 2015 The OpenNMS Group, Inc. OpenNMS SNAPSHOT Last updated :19:20 EDT

webmethods Certificate Toolkit

AWS Quick Start Guide. Launch a Linux Virtual Machine Version

Administration Guide for SAP HANA Smart Data Integration and SAP HANA Smart Data Quality

Leveraging SAP HANA & Hortonworks Data Platform to analyze Wikipedia Page Hit Data

Open Source Job Scheduler

University of Amsterdam VPN Linux User Guide (Version 1.2)

Zenoss Core Installation and Upgrade

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

Install BA Server with Your Own BA Repository

Comsol Multiphysics. Running COMSOL on the Amazon Cloud. VERSION 4.3b

Installing and Running MOVES on Linux

Comsol Multiphysics. Running COMSOL on the Amazon Cloud. VERSION 4.3a

CISE Research Infrastructure: Mid-Scale Infrastructure - NSFCloud (CRI: NSFCloud)

Enterprise Manager. Version 6.2. Installation Guide

Server Installation/Upgrade Guide

Verax Service Desk Installation Guide for UNIX and Windows

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

Installation Guide for AmiRNA and WMD3 Release 3.1

Installing and Configuring MySQL as StoreGrid Backend Database on Linux

Git - Working with Remote Repositories

Using Internet or Windows Explorer to Upload Your Site

Ulteo Open Virtual Desktop Installation

Project management integrated into Outlook

Third-Party Software Support. Converting from SAS Table Server to a SQL Server Database

VERSION 9.02 INSTALLATION GUIDE.

TECHNICAL NOTE SETTING UP A STRM UPDATE SERVER. Configuring your Update Server

RHadoop and MapR. Accessing Enterprise- Grade Hadoop from R. Version 2.0 (14.March.2014)

Desktop : Ubuntu Desktop, Ubuntu Desktop Server : RedHat EL 5, RedHat EL 6, Ubuntu Server, Ubuntu Server, CentOS 5, CentOS 6

École des Ponts Paristech DSI. Installing OpenVPN

Tcat Server User s Guide. Version 6 R2 December 2009

Installing FEAR on Windows, Linux, and Mac Systems

USER CONFERENCE 2011 SAN FRANCISCO APRIL Running MarkLogic in the Cloud DEVELOPER LOUNGE LAB

Installing Booked scheduler on CentOS 6.5

LAMP Quickstart for Red Hat Enterprise Linux 4

StreamServe Persuasion SP4

AdWhirl Open Source Server Setup Instructions

ALERT installation setup

Amazon Web Services EC2 & S3

SOA Software API Gateway Appliance 7.1.x Administration Guide

Simba XMLA Provider for Oracle OLAP 2.0. Linux Administration Guide. Simba Technologies Inc. April 23, 2013

Integrating Apache Web Server with Tomcat Application Server

JAMF Software Server Installation Guide for Windows. Version 8.6

Transcription:

JobScheduler - Job Execution and Scheduling System JobScheduler - Amazon AMI Installation March 2015 March 2015 JobScheduler - Amazon AMI Installation page: 1

JobScheduler - Amazon AMI Installation - Contact Information Contact Information Software- und Organisations-Service GmbH Giesebrechtstr. 15 D-10629 Berlin Germany Telephone +49 (0)30 86 47 90-0 Telefax +49 (0)30 8 61 33 35 Mail info@sos-berlin.com Web http://www.sos-berlin.com Last Updated: 03/13/2015 12:00 PM This documentation is based on JobScheduler Version 1.7.4169. Copyright 2005-2015 SOS GmbH Berlin. All rights reserved. All trademarks or registered trademarks are the property of their respective holders. All information and materials in this book are provided "as is" and without warranty of any kind. All information in this document is subject to change without further notice. This product includes software developed by the Apache Software Foundation (http://apache.org/) We would appreciate any feedback you have, or suggestions for changes and improvements; please forward your comments to info@sos-berlin.com. March 2015 JobScheduler - Amazon AMI Installation page: 2

JobScheduler - Amazon AMI Installation - Table of Contents Table of Contents 1 Introduction.................................................................................................. 4 2 Installation of MySQL........................................................................................ 5 2.1 Create a MySQL database................................................................................ 5 2.2 Download MySQL JDBC Driver............................................................................5 3 Installation of Oracle Java JRE 32Bit........................................................................ 6 4 Installation of the JobScheduler............................................................................. 7 4.1 Download the JobScheduler...............................................................................7 4.2 Configure and start the JobScheduler setup............................................................... 7 4.3 Set JAVA_HOME..........................................................................................9 4.4 Perl.......................................................................................................9 4.5 JOE and JID.............................................................................................. 9 4.5.1 Install 64Bit SWT.................................................................................... 10 4.5.2 Install the X-Windows system........................................................................ 10 4.5.3 Install GTK.......................................................................................... 10 March 2015 JobScheduler - Amazon AMI Installation page: 3

JobScheduler - Amazon AMI Installation - Introduction 1 Introduction This document describes installation of the JobScheduler together with a MySQL database on an Amazon AMI Linux 64Bit image. Please note: the Amazon AMI image is "headless", meaning that it does not come with the graphic libraries necessary to run JOE (JobScheduler Object Editor) or the JID (JobScheduler Information Dashboard). See "JOE and JID" chapter (page 9) of this document if you want to use these JobScheduler features in your image and/or find more information. An Amazon Web Services (AWS) account is required so that you can access and use the Amazon AMI image. See http://aws.amazon.com for more information about AWS and registering for an AWS account. Log into your AWS account. Open the EC2 tab of the AWS Management Console to create and launch an instance of an Amazon AMI Linux 64Bit image. See the AWS GettingStartedGuide for detailed information about this procedure. Once you have launched the Amazon AMI Linux 64Bit instance, you will find it in the Instances list on the EC2 tab of the AWS Management Console. Note that to connect the instance via a SSH Client and to install and use the JobScheduler on this instance, you may need specific information such as the Public DNS Name of the instance. You can obtain such information by clicking on the instance in the Instances list. You must edit the security group (default = quicklaunch-1) of your instance. To do this go to Security Groups in the EC2 tab of the AWS Management Console. Add rules for the MySQL port 3306 and the JobScheduler port 4444. Now you can connect to the Amazon AMI Linux 64Bit instance via SSH as user ec2-user either with a standalone SSH Client or from your browser using the Java SSH Client. Select your Amazon AMI Linux 64Bit instance in the Instances list and click on Instance Actions -> Connect to get more information. If you use PuTTy as a standalone SSH Client, you need to convert the private key file (pem) into a ppk file (see http://docs.amazonwebservices.com/awsec2/latest/userguide/putty.html). If you need root permission on your Amazon AMI Linux instance then call sudo... March 2015 JobScheduler - Amazon AMI Installation page: 4

JobScheduler - Amazon AMI Installation - Installation of MySQL 2 Installation of MySQL Install MySQL from the repositories. sudo yum groupinstall "MySQL Database" Start the MySQL server. sudo service mysqld start 2.1 Create a MySQL database Login as MySQL root user. mysql -u root Create a database scheduler for the user scheduler with scheduler as the password. mysql> create database scheduler; mysql> grant all on scheduler.* to 'scheduler'@'localhost' identified by 'scheduler'; mysql> exit; Test the login with the MySQL scheduler user. mysql -u scheduler -pscheduler scheduler mysql> exit; 2.2 Download MySQL JDBC Driver Note that the exact download link for the MySQL JDBC driver may change: See http://dev.mysql.com/downloads/connector/j/ to get the current url. wget http://dev.mysql.com/get/downloads/connector-j/mysql-connector-java-5.1.20.tar.gz /from/ftp://ftp.fu-berlin.de/unix/databases/mysql/ gzip -d mysql-connector-java-5.1.20.tar.gz tar -xf mysql-connector-java-5.1.20.tar March 2015 JobScheduler - Amazon AMI Installation page: 5

JobScheduler - Amazon AMI Installation - Installation of Oracle Java JRE 32Bit 3 Installation of Oracle Java JRE 32Bit The wget command doesn't work here, because Oracle wants a confirmation of the licence agreement before the download takes place. Download i.e. jre-6u26-linux-i586.bin direct from the Java SE Downloads - Oracle site and transfer it to the /tmp directory of the Amazon AMI Linux 64Bit instance via SFTP. Install it i.e. at /opt/jre6/jre1.6.0_26 chmod a+x jre-6u26-linux-i586.bin sudo mkdir /opt/jre6 sudo mv jre-6u26-linux-i586.bin /opt/jre6 cd /opt/jre6 sudo./jre-6u26-linux-i586.bin March 2015 JobScheduler - Amazon AMI Installation page: 6

JobScheduler - Amazon AMI Installation - Installation of the JobScheduler 4 Installation of the JobScheduler 4.1 Download the JobScheduler Download the current JobScheduler from Sourceforge. The example below will download release 1.3.12.2137. wget http://sourceforge.net/projects/jobscheduler/files/scheduler_linux.1.3.12.2137.tar.gz/download gzip -d scheduler_linux.1.3.12.2137.tar.gz tar -xf scheduler_linux.1.3.12.2137.tar 4.2 Configure and start the JobScheduler setup Edit the /tmp/jobscheduler.1.3.12.2137/scheduler_install.xml, which is listed below, as follows: Set both installation paths (installpath, UserPathPanelElement) to /home/ec2-user/. Set the above database connection as specified in "Create a MySQL Database" section (page 5) above. Set launchscheduler to no, because you need to change the Java environment (page 9) after the installation but before the JobScheduler starts. Otherwise the JobScheduler won't find the correct Java VM. In schedulerhost type the Public DNS Name of the Amazon AMI Linux 64Bit instance (see the AWS Management Console (page 4)) <?xml version="1.0" encoding="utf-8" standalone="no"?> <AutomatedInstallation langpack="eng"> <com.izforge.izpack.panels.userinputpanel id="home"> <userinput/> <com.izforge.izpack.panels.userinputpanel id="licences"> <entry key="licenceoptions" value="gpl"/> <entry key="licence" value=""/> <com.izforge.izpack.panels.htmllicencepanel id="gpl_licence"/> <com.izforge.izpack.panels.htmllicencepanel id="commercial_licence"/> <!-- installation paths --> <com.izforge.izpack.panels.targetpanel id="target"> <installpath>/home/ec2-user</installpath> </com.izforge.izpack.panels.targetpanel> <com.izforge.izpack.panels.userpathpanel id="userpath"> <UserPathPanelElement>/home/ec2-user</UserPathPanelElement> </com.izforge.izpack.panels.userpathpanel> <com.izforge.izpack.panels.packspanel id="package"> <pack index="0" name="job Scheduler" selected="true"/> <pack index="1" name="update Service" selected="false"/> <pack index="2" name="database Support" selected="true"/> <pack index="3" name="web" selected="false"/> <pack index="4" name="managed Jobs" selected="false"/> <pack index="5" name="housekeeping Jobs" selected="true"/> <pack index="6" name="mysql" selected="false"/> <pack index="7" name="cron" selected="false"/> </com.izforge.izpack.panels.packspanel> <com.izforge.izpack.panels.userinputpanel id="network"> March 2015 JobScheduler - Amazon AMI Installation page: 7

JobScheduler - Amazon AMI Installation - Installation of the JobScheduler <entry key="schedulerhost" value="localhost"/> <entry key="schedulerport" value="4444"/> <entry key="schedulerid" value="scheduler"/> <entry key="schedulerallowedhost" value="0.0.0.0"/> <!-- launch JobScheduler after installation --> <entry key="launchscheduler" value="no"/> <com.izforge.izpack.panels.userinputpanel id="cluster"> <entry key="clusteroptions" value=""/> <com.izforge.izpack.panels.userinputpanel id="smtp"> <entry key="mailserver" value="localhost"/> <entry key="mailport" value="25"/> <entry key="smtpaccount" value=""/> <entry key="smtppass" value=""/> <entry key="mailfrom" value=""/> <entry key="mailto" value=""/> <entry key="mailcc" value=""/> <entry key="mailbcc" value=""/> <com.izforge.izpack.panels.userinputpanel id="email"> <entry key="mailonerror" value="yes"/> <entry key="mailonwarning" value="yes"/> <entry key="mailonsuccess" value="no"/> <entry key="jobevents" value="off"/> <com.izforge.izpack.panels.userinputpanel id="update"> <entry key="checkforupdatestarttime" value="20:00"/> <entry key="checkforupdatestartday" value="1"/> <entry key="autoupdatedownload" value="0"/> <!-- database connection data --> <com.izforge.izpack.panels.userinputpanel id="database"> <entry key="databasedbms" value="mysql"/> <entry key="databasecreate" value="on"/> <com.izforge.izpack.panels.userinputpanel id="dbconnection"> <entry key="databasehost" value="localhost"/> <entry key="databaseport" value="3306"/> <entry key="databaseschema" value="scheduler"/> <entry key="databaseuser" value="scheduler"/> <entry key="databasepassword" value="scheduler"/> <entry key="connectorjtds" value="yes"/> <com.izforge.izpack.panels.userinputpanel id="jdbc"> <entry key="connector" value="/tmp/mysql-connector-java-5.1.20/mysql-connector-java-5.1.20.jar"/> <com.izforge.izpack.panels.userinputpanel id="cron"> <entry key="croncrontab" value="/etc/crontab"/> <entry key="cronsystab" value="1"/> <entry key="crontimeout" value="600"/> <entry key="cronchangeuser" value=""/> <entry key="cronchangecommand" value=""/> March 2015 JobScheduler - Amazon AMI Installation page: 8

JobScheduler - Amazon AMI Installation - Installation of the JobScheduler <com.izforge.izpack.panels.installpanel id="install"/> <com.izforge.izpack.panels.processpanel id="process"/> <com.izforge.izpack.panels.finishpanel id="finish"/> </AutomatedInstallation> Example: scheduler_install.xml Start the setup (without root privileges and specifying the scheduler_install.xml file to avoid X server problems) using: /jobscheduler.1.3.12.2137/./setup.sh -u scheduler_install.xml 4.3 Set JAVA_HOME Edit the file ~/scheduler/bin/jobscheduler_environment_variables.sh, setting the JAVA_HOME environment variable to the value set when configuring the Oracle JRE 32Bit installation (page 6).... #test -z "$JAVA_HOME" && JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre" JAVA_HOME="/opt/jre6/jre1.6.0_26"... Now you can start the JobScheduler. ~/scheduler/bin/jobscheduler.sh start and open JOC (JobScheduler Operations Center) via http://[public DNS of instance]:4444 4.4 Perl If you want to use the JobScheduler internal API with Perl then you need the 32Bit runtime libraries of Perl. Type the following to install these libraries. sudo yum install perl-libs.i686 N o w t h e P e r l 3 2 B i t r u n t i m e l i b r a r i e s a r e s t o r e d a t /usr/lib/perl5/5.10.0/i386-linux-thread-multi/core/libperl.so (the path may change). Create a symlink in ~/scheduler/lib so that the JobScheduler find the Perl 32Bit environment. cd ~/scheduler/lib/ ln -s /usr/lib/perl5/5.10.0/i386-linux-thread-multi/core/libperl.so libperl.so 4.5 JOE and JID JOE (JobScheduler Object Editor) and the JID (JobScheduler Information Dashboard) use SWT, which requires libraries that are not included in the Amazon AMI image, because it is headless. You must install an X-Windows system and the GTK. Then you can open JOE and JID with a local X-Server (e.g. Xming on Windows) if you have configured the SSH connection with an X forwarding. March 2015 JobScheduler - Amazon AMI Installation page: 9

JobScheduler - Amazon AMI Installation - Installation of the JobScheduler The performance when using JOE and JID with an X forwarding and a local X-Server can be very slow. We recommend that you install JOE and JID local. JOE has a inside to transfer the configuration to the Amazon AMI instance. For JID you must make sure that it can connect to the JobScheduler database. If you want to install an X-Windows system and the GTK then we change the SWT. After the installation of the JobScheduler you have a 32Bit SWT in the ~/scheduler/lib/ directory. The 32Bit SWT miss more libraries than the 64Bt SWT, so we will use a 64Bit SWT. Follow the following steps: 4.5.1 Install 64Bit SWT You get download links at http://download.eclipse.org/eclipse/downloads/drops/r-3.7.2-201202080800/. I have used http://mirror.netcologne.de/eclipse//eclipse/downloads/drops/r-3.7.2-201202080800/swt-3.7.2-gtk-linux-x86_64.zip. mkdir swt cd swt wget http://mirror.netcologne.de/eclipse//eclipse/downloads/drops/r-3.7.2-201202080800/swt-3.7.2-gtk-linux-x86_64.zip unzip swt-3.7.2-gtk-linux-x86_64.zip rm ~/scheduler/lib/swt.jar cp swt.jar ~/scheduler/lib Edit the startscript of JOE (~/scheduler/bin/jobeditor.sh) and JID (~/scheduler/bin/dashboard.sh). JAVA_HOME is pointed to the above 32Bit Oracle Java JRE but now we need a 64Bit JRE.... #test -z "$JAVA_HOME" && JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre" JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre"... 4.5.2 Install the X-Windows system Install the X-Windows system with yum. sudo yum install xorg* 4.5.3 Install GTK First we need some libraries. sudo yum install pango sudo yum install pango-devel sudo yum install cairo sudo yum install glib2 sudo yum install redhat-lsb sudo yum install libtiff sudo yum install libtiff-devel sudo yum install libjpeg-devel sudo yum install gcc March 2015 JobScheduler - Amazon AMI Installation page: 10

JobScheduler - Amazon AMI Installation - Installation of the JobScheduler Get ATK and ATK devel packages and install them. wget http://mirror.centos.org/centos/5/os/x86_64/centos/atk-1.12.2-1.fc6.x86_64.rpm wget http://mirror.centos.org/centos/5/os/x86_64/centos/atk-devel-1.12.2-1.fc6.x86_64.rpm sudo rpm -i atk-1.12.2-1.fc6.x86_64.rpm sudo rpm -i atk-devel-1.12.2-1.fc6.x86_64.rpm Get GTK2 and install it. The make and make install tasks will take a while, it took about 30 minutes. GTK2 will be stored in /usr/local/lib. wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.10/gtk+-2.10.14.tar.gz tar -xvf gtk+-2.10.14.tar.gz cd gtk+-2.10.14 sudo./configure sudo make sudo make install Change LD_LIBRARY_PATH so that JOE and JID can find the GTK. Edit ~/.bash_profile for a persitent change.... if [ -n "$LD_LIBRARY_PATH" ] then LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib else LD_LIBRARY_PATH=/usr/local/lib fi export LD_LIBRARY_PATH March 2015 JobScheduler - Amazon AMI Installation page: 11