The job can be used for running sql statements against Vertica and Mysql.
Job files of 'runsql' type may have following parameters:
Parameter
Value
Comment
db
Parameter for the database (*)
Vertica or Mysql (Default: Vertica)
type
runsql
file
name_of_sql_file
working.dir
/path/to/sql/file
Optional (Default: Current directory of '.job' file)
param.extra
Parameter for sql statement
Optional (One or more)
* db value will be used for getting related values from private.properties file. One must change db-param in the next section with this db value.)
Property files of 'runsql' type may have following parameters:
Parameter
Value
Comment
| db.db-param.user | User of the database | |
| db.db-param.pass | Pass of the user | |
| db.db-param.host | Host address of the database | |
| db.db-param.db | Name of the database | |
| db.db-param.type | Type of the database | Vertica or Mysql |
| db.db-param.backupservernode | Addresses of back up server nodes | Use only for Vertica (Comma separated) |
* Parameters other than jobtype.class can be defined multiple times with a different db-param value.
After defining _param.paramname parameter of a job, all substrings of related sql statement matching with _{{paramname}} will be replaced by the value of the parameter.
runsql jobtype
The job can be used for running sql statements against Vertica and Mysql.
db
type
file
working.dir
/path/to/sql/file
param.extra
*
db
value will be used for getting related values from private.properties file. One must changedb-param
in the next section with this db value.)|
db.db-param.user
| User of the database | | |db.db-param.pass
| Pass of the user | | |db.db-param.host
| Host address of the database | | |db.db-param.db
| Name of the database | | |db.db-param.type
| Type of the database | Vertica or Mysql | |db.db-param.backupservernode
| Addresses of back up server nodes | Use only for Vertica (Comma separated) |* Parameters other than
jobtype.class
can be defined multiple times with a differentdb-param
value.An example job and property files:
How to Use Parameters ?
After defining _param.paramname parameter of a job, all substrings of related sql statement matching with _{{paramname}} will be replaced by the value of the parameter.