Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tzolov/spring-xd-jdbc-job
Spring XD jdbc job module
https://github.com/tzolov/spring-xd-jdbc-job
Last synced: 4 days ago
JSON representation
Spring XD jdbc job module
- Host: GitHub
- URL: https://github.com/tzolov/spring-xd-jdbc-job
- Owner: tzolov
- License: apache-2.0
- Created: 2014-05-22T12:10:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-22T13:45:23.000Z (over 10 years ago)
- Last Synced: 2023-03-23T02:47:23.650Z (over 1 year ago)
- Language: Java
- Size: 148 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
spring-xd-jdbc
===================Simple [Jdbc] Job module for [Spring-XD].
## Build and Installation
Set the environment variable `XD_HOME` to the Spring-XD installation directory
export XD_HOME=/spring-xd/xd
Create Jdbc job module folders:
mkdir ${XD_HOME}/modules/job/jdbc
mkdir ${XD_HOME}/modules/job/jdbc/lib
mkdir ${XD_HOME}/modules/job/jdbc/config
Build the Jdbc job jar:mvn clean install
Copy the result `xd-jdbc-module-0.0.1-SNAPSHOT.jar` into `${XD_HOME}/modules/job/jdbc/lib`
cp target/xd-jdbc-module-0.0.1-SNAPSHOT.jar `${XD_HOME}/modules/job/jdbc/lib`Copy the `jdbc.xml` and `jdbc.properties` module definition into `${XD_HOME}/modules/job/jdbc/config`
cp src/main/resources/jdbc.* ${XD_HOME}/modules/job/jdbc/config## Usage
#### SQL script
xd>job create jdbcTest2 --definition "jdbc
--driverClassName=org.postgresql.Driver
--url=jdbc:postgresql://phd1:5432/gpadmin
--username=gpadmin --password=''
--script='file://test1.sql'" --deploy##### Embedded SQL command
xd>job create jdbcTest2 --definition "jdbc
--driverClassName=org.postgresql.Driver
--url=jdbc:postgresql://phd1:5432/gpadmin
--username=gpadmin --password=''
--sql='CREATE TABLE analytics AS SELECT employ_id, count(*) FROM Company GROUP BY employ_id;'" --deploy