Run Sql JobType added #292
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
runsql jobtype
The job can be used for running sql statements against Vertica and Mysql.
dbtypefileworking.dir/path/to/sql/fileparam.extra*
dbvalue will be used for getting related values from private.properties file. One must changedb-paramin 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.classcan be defined multiple times with a differentdb-paramvalue.An example job and property files:
How to Use Parameters ?
After defining param.param_name parameter of a job, all substrings of related sql statement matching with {{param_name}} will be replaced by the value of the parameter.