2015年4月6日月曜日

JobScheduler - Installation Note

JobScheduler is similar to JP1. But, JobScheduler is OSS. Everyone is able to be available freely.

Enviroment

  • Sakura VPS centos6.5
  • mysql(installed)
  • java1.7(installed)

Install Jobscheduler


wget --no-check-certificate https://download.sos-berlin.com/JobScheduler.1.8/jobscheduler_linux-x64.1.8.2.tar.gz

Extract tar


tar zxvf jobscheduler_linux-x64.1.8.2.tar.gz

Setting Mysql


mysql -u root -p

Install mysql-connector-java


sudo yum install mysql-connector-java

ls -la /usr/share/java/ | grep mysql
-rw-r--r--    1 root root   819803  6月 22 23:33 2012 mysql-connector-java-5.1.17.jar
lrwxrwxrwx    1 root root       31  4月  6 10:03 2015 mysql-connector-java.jar -> mysql-connector-java-5.1.17.jar

Setting alternatives java and confirm java version


sudo alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_67/bin/java 1700

alternatives --display java

/usr/lib/jvm/jre-1.5.0-gcj/bin/java - 優先項目 1500
 スレーブ keytool: /usr/lib/jvm/jre-1.5.0-gcj/bin/keytool
 スレーブ rmiregistry: /usr/lib/jvm/jre-1.5.0-gcj/bin/rmiregistry
 スレーブ jre_exports: /usr/lib/jvm-exports/jre-1.5.0-gcj
 スレーブ jre: /usr/lib/jvm/jre-1.5.0-gcj
/usr/lib/jvm/jdk1.7.0_67/bin/java - 優先項目 1700
 スレーブ keytool: (null)
 スレーブ rmiregistry: (null)
 スレーブ jre_exports: (null)
 スレーブ jre: (null)
現在の「最適」バージョンは /usr/lib/jvm/jdk1.7.0_67/bin/java です

java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Modify scheduler_install.xml


        // install path
        <installpath>/home/{user}/scheduler</installpath>

        // log path
        <UserPathPanelElement>/home/{user}/scheduler/logs</UserPathPanelElement>

        // db setting
        <com.izforge.izpack.panels.UserInputPanel id="dbconnection">
            <userInput>
                <!-- Database Configuration 
                     These entries are only necessary if the package 'Database Support' is chosen. -->

                <!-- Enter the name or ip address of the database host -->
                <entry key="databaseHost" value="localhost"/>

                <!-- Enter the port number for the database instance. Default ports are for MySQL 3306, 
                     Oracle 1521, MS SQL Server 1433, postgreSQL 5432, DB2 50000, Sybase 5000. -->
                <entry key="databasePort" value="3306"/>

                <!-- Enter the schema -->
                <entry key="databaseSchema" value="scheduler"/>

                <!-- Enter the user name for database access -->
                <entry key="databaseUser" value="scheduler"/>

                <!-- Enter the password for database access -->
                <entry key="databasePassword" value="scheduler"/>

                <!-- You must provide the MySQL, MS SQL Server or Sybase JDBC Driver respectively if you selected 
                     corresponding DBMS type. For license reasons MySQL, Sybase and MS SQL Server JDBC Drivers are 
                     not provided. Alternatively you can use the mariadb JDBC Driver for MySQL and 
                     the jTDS JDBC Driver for MS SQL Server and Sybase which is provided.-->

                <!-- You can choose between 'yes' or 'no' for using the jTDS JDBC Driver
                     This entry has only an effect for MS SQL Server or Sybase -->
                <entry key="connectorJTDS" value="yes"/>

                <!-- You can choose between 'yes' or 'no' for using the mariadb JDBC Driver
                     This entry has only an effect for MySQL -->
                <entry key="connectorMaria" value="yes"/>

            </userInput>
        </com.izforge.izpack.panels.UserInputPanel>

        // java mysql adapter
        <entry key="connector" value="/usr/share/java/mysql-connector-java.jar"/>

Install Jobscheduler


./setup.sh -u jobscheduler_install.xml

Access by Browser


http://{ip}:4444/

Thanks

Reference site

この記事がお役にたちましたらシェアをお願いします

このエントリーをはてなブックマークに追加

0 件のコメント:

コメントを投稿

Related Posts Plugin for WordPress, Blogger...