├── 1.0.3.zip ├── CommonDB.java ├── ExternalData.java ├── GPLink.java ├── LICENSE.txt ├── Listener.java ├── README.txt ├── SQLFile.java ├── TargetData.java ├── Validation.java ├── bin ├── ext_gpldata ├── gpldata ├── gpldrop ├── gplstart └── gpltable ├── compile.sh ├── connections ├── gplink.properties ├── gplink_path.sh ├── greenplum_edw.properties ├── hive.properties ├── local.properties ├── oracle.properties ├── public.sqlserver_example.sql ├── sqlserver.properties ├── teradata.properties └── teradata_ldap.properties ├── gplink.properties ├── gplink_path.sh ├── history ├── 0.0.6.zip ├── 0.0.6 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── getdata │ │ ├── gplink_start │ │ └── gplink_stop │ ├── compile.sh │ ├── demo │ │ ├── 01_create_schema.sql │ │ ├── 02_insert_ext_tables.sql │ │ ├── 03_create_ext_tables.sql │ │ ├── 04_select_ms_sqlserver.sql │ │ ├── 05_select_oracle.sql │ │ └── runme.sh │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ └── GPLink.java │ ├── sql │ │ ├── 01_create_schema.sql │ │ ├── 02_create_table_ext_tables.sql │ │ ├── 03_create_function_fn_create_ext_table.sql │ │ └── runme.sh │ └── yml │ │ └── gplink.yml ├── 0.1.0.zip ├── 0.1.0 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ └── example.sql │ ├── tables │ │ └── public.test.sql │ └── yml │ │ └── gplink.yml ├── 0.1.1.zip ├── 0.1.1 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ └── example.sql │ ├── tables │ │ └── public.test.sql │ └── yml │ │ └── gplink.yml ├── 0.1.2.zip ├── 0.1.2 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ └── example.sql │ ├── tables │ │ └── public.test.sql │ └── yml │ │ └── gplink.yml ├── 0.1.20.zip ├── 0.1.20 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── oracle.properties │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── oracle_example.sql │ │ └── sqlserver_example.sql │ ├── tables │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 0.1.21.zip ├── 0.1.21 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── oracle.properties │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── oracle_example.sql │ │ └── sqlserver_example.sql │ ├── tables │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 0.1.22.zip ├── 0.1.22 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── greenplum_edw.properties │ │ ├── oracle.properties │ │ └── sqlserver.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── oracle_example.sql │ │ └── sqlserver_example.sql │ ├── tables │ │ ├── public.edw_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 0.1.25.zip ├── 0.1.25 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── greenplum_edw.properties │ │ ├── oracle.properties │ │ ├── public.sqlserver_example.sql │ │ └── sqlserver.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── oracle_example.sql │ │ └── sqlserver_example.sql │ ├── tables │ │ ├── greenplum_edw.properties │ │ ├── local.properties │ │ ├── public.edw_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 0.1.26.zip ├── 0.1.26 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── greenplum_edw.properties │ │ ├── oracle.properties │ │ ├── public.sqlserver_example.sql │ │ └── sqlserver.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── oracle_example.sql │ │ └── sqlserver_example.sql │ ├── tables │ │ ├── greenplum_edw.properties │ │ ├── local.properties │ │ ├── public.edw_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 0.1.27.zip ├── 0.1.27 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── greenplum_edw.properties │ │ ├── hive.properties │ │ ├── oracle.properties │ │ ├── public.sqlserver_example.sql │ │ └── sqlserver.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── hive_example.sql │ │ ├── oracle_example.sql │ │ └── sqlserver_example.sql │ ├── tables │ │ ├── greenplum_edw.properties │ │ ├── local.properties │ │ ├── public.edw_example.sql │ │ ├── public.hive_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 0.1.28.zip ├── 0.1.28 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── greenplum_edw.properties │ │ ├── hive.properties │ │ ├── oracle.properties │ │ ├── public.sqlserver_example.sql │ │ └── sqlserver.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ ├── gpdb.jar │ │ └── log4j.properties │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── hive_example.sql │ │ ├── oracle_example.sql │ │ └── sqlserver_example.sql │ ├── tables │ │ ├── greenplum_edw.properties │ │ ├── local.properties │ │ ├── public.edw_example.sql │ │ ├── public.hive_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 0.1.29.zip ├── 0.1.29 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── greenplum_edw.properties │ │ ├── hive.properties │ │ ├── oracle.properties │ │ ├── public.sqlserver_example.sql │ │ └── sqlserver.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ ├── gpdb.jar │ │ └── log4j.properties │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── hive_example.sql │ │ ├── oracle_example.sql │ │ └── sqlserver_example.sql │ ├── tables │ │ ├── greenplum_edw.properties │ │ ├── local.properties │ │ ├── public.edw_example.sql │ │ ├── public.hive_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 0.1.3.zip ├── 0.1.3 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ └── example.sql │ ├── tables │ │ └── public.test.sql │ └── yml │ │ └── gplink.yml ├── 0.1.30.zip ├── 0.1.30 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── greenplum_edw.properties │ │ ├── hive.properties │ │ ├── oracle.properties │ │ ├── public.sqlserver_example.sql │ │ └── sqlserver.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ ├── gpdb.jar │ │ └── log4j.properties │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── hive_example.sql │ │ ├── oracle_example.sql │ │ └── sqlserver_example.sql │ ├── tables │ │ ├── greenplum_edw.properties │ │ ├── local.properties │ │ ├── public.edw_example.sql │ │ ├── public.hive_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 0.1.4.zip ├── 0.1.4 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ └── example.sql │ ├── tables │ │ └── public.test.sql │ └── yml │ │ └── gplink.yml ├── 0.1.5.zip ├── 0.1.5 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ └── example.sql │ ├── tables │ │ └── public.test.sql │ └── yml │ │ └── gplink.yml ├── 0.1.6.zip ├── 0.1.6 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ └── example.sql │ ├── tables │ │ └── public.test.sql │ └── yml │ │ └── gplink.yml ├── 0.1.7.zip ├── 0.1.7 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ └── example.sql │ ├── tables │ │ └── public.test.sql │ └── yml │ │ └── gplink.yml ├── 0.1.8.zip ├── 0.1.8 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ └── example.sql │ ├── tables │ │ └── public.test.sql │ └── yml │ │ └── gplink.yml ├── 0.1.9.zip ├── 0.1.9 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ └── sqlserver.properties │ ├── gplink.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ └── gpdb.jar │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ └── example.sql │ ├── tables │ │ └── public.test.sql │ └── yml │ │ └── gplink.yml ├── 1.0.0.zip ├── 1.0.0 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── gplink_path.sh │ │ ├── greenplum_edw.properties │ │ ├── hive.properties │ │ ├── local.properties │ │ ├── oracle.properties │ │ ├── public.sqlserver_example.sql │ │ └── sqlserver.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ ├── gpdb.jar │ │ └── log4j.properties │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── hive_example.sql │ │ ├── oracle_example.sql │ │ └── sqlserver_example.sql │ ├── tables │ │ ├── greenplum_edw.properties │ │ ├── local.properties │ │ ├── public.edw_example.sql │ │ ├── public.hive_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 1.0.1.zip ├── 1.0.1 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── gplink_path.sh │ │ ├── greenplum_edw.properties │ │ ├── hive.properties │ │ ├── local.properties │ │ ├── oracle.properties │ │ ├── public.sqlserver_example.sql │ │ ├── sqlserver.properties │ │ ├── teradata.properties │ │ └── teradata_ldap.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ ├── gpdb.jar │ │ └── log4j.properties │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── hive_example.sql │ │ ├── oracle_example.sql │ │ ├── sqlserver_example.sql │ │ └── teradata_example.sql │ ├── tables │ │ ├── greenplum_edw.properties │ │ ├── local.properties │ │ ├── public.edw_example.sql │ │ ├── public.hive_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 1.0.2.zip ├── 1.0.2 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── gplink_path.sh │ │ ├── greenplum_edw.properties │ │ ├── hive.properties │ │ ├── local.properties │ │ ├── oracle.properties │ │ ├── public.sqlserver_example.sql │ │ ├── sqlserver.properties │ │ ├── teradata.properties │ │ └── teradata_ldap.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ ├── gpdb.jar │ │ └── log4j.properties │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── hive_example.sql │ │ ├── oracle_example.sql │ │ ├── sqlserver_example.sql │ │ └── teradata_example.sql │ ├── tables │ │ ├── greenplum_edw.properties │ │ ├── local.properties │ │ ├── public.edw_example.sql │ │ ├── public.hive_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 1.0.3.zip ├── 1.0.3 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ │ ├── ext_gpldata │ │ ├── gpldata │ │ ├── gpldrop │ │ ├── gplstart │ │ └── gpltable │ ├── compile.sh │ ├── connections │ │ ├── gplink.properties │ │ ├── gplink_path.sh │ │ ├── greenplum_edw.properties │ │ ├── hive.properties │ │ ├── local.properties │ │ ├── oracle.properties │ │ ├── public.sqlserver_example.sql │ │ ├── sqlserver.properties │ │ ├── teradata.properties │ │ └── teradata_ldap.properties │ ├── gplink_path.sh │ ├── jar │ │ ├── PivotalGuruGPLink.jar │ │ ├── gpdb.jar │ │ └── log4j.properties │ ├── java │ │ ├── CommonDB.java │ │ ├── ExternalData.java │ │ ├── GPLink.java │ │ ├── Listener.java │ │ ├── SQLFile.java │ │ ├── TargetData.java │ │ └── Validation.java │ ├── sql │ │ ├── greenplum_edw_example.sql │ │ ├── hive_example.sql │ │ ├── oracle_example.sql │ │ ├── sqlserver_example.sql │ │ └── teradata_example.sql │ ├── tables │ │ ├── greenplum_edw.properties │ │ ├── local.properties │ │ ├── public.edw_example.sql │ │ ├── public.hive_example.sql │ │ ├── public.oracle_example.sql │ │ └── public.sqlserver_example.sql │ └── yml │ │ └── gplink.yml ├── 1.0.4.zip └── 1.0.4 │ ├── LICENSE.txt │ ├── README.txt │ ├── bin │ ├── ext_gpldata │ ├── gpldata │ ├── gpldrop │ ├── gplstart │ └── gpltable │ ├── compile.sh │ ├── connections │ ├── gplink.properties │ ├── gplink_path.sh │ ├── greenplum_edw.properties │ ├── hive.properties │ ├── local.properties │ ├── oracle.properties │ ├── public.sqlserver_example.sql │ ├── sqlserver.properties │ ├── teradata.properties │ └── teradata_ldap.properties │ ├── gplink_path.sh │ ├── jar │ ├── PivotalGuruGPLink.jar │ ├── gpdb.jar │ └── log4j.properties │ ├── java │ ├── CommonDB.java │ ├── ExternalData.java │ ├── GPLink.java │ ├── Listener.java │ ├── SQLFile.java │ ├── TargetData.java │ └── Validation.java │ ├── sql │ ├── greenplum_edw_example.sql │ ├── hive_example.sql │ ├── oracle_example.sql │ ├── sqlserver_example.sql │ └── teradata_example.sql │ ├── tables │ ├── greenplum_edw.properties │ ├── local.properties │ ├── public.edw_example.sql │ ├── public.hive_example.sql │ ├── public.oracle_example.sql │ └── public.sqlserver_example.sql │ └── yml │ └── gplink.yml ├── jar ├── PivotalGuruGPLink.jar ├── gpdb.jar └── log4j.properties ├── manifest.txt ├── sql ├── greenplum_edw_example.sql ├── hive_example.sql ├── oracle_example.sql ├── sqlserver_example.sql └── teradata_example.sql ├── tables ├── greenplum_edw.properties ├── local.properties ├── public.edw_example.sql ├── public.hive_example.sql ├── public.oracle_example.sql └── public.sqlserver_example.sql └── yml └── gplink.yml /1.0.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/1.0.3.zip -------------------------------------------------------------------------------- /SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Validation.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class Validation 5 | { 6 | 7 | public static void checkProperty(String strPropertyName, String strPropertyValue) throws SQLException 8 | { 9 | try 10 | { 11 | if (strPropertyValue == null) 12 | throw new SQLException("Property Value for: " + strPropertyName + " not found!"); 13 | } 14 | catch (Exception ex) 15 | { 16 | throw new SQLException(ex.getMessage()); 17 | } 18 | } 19 | 20 | public static void checkProperty(String intPropertyName, Integer intPropertyValue) throws SQLException 21 | { 22 | try 23 | { 24 | if (intPropertyValue == null) 25 | throw new SQLException("Property Value for: " + intPropertyName + " not found!"); 26 | } 27 | catch (Exception ex) 28 | { 29 | throw new SQLException(ex.getMessage()); 30 | } 31 | } 32 | 33 | public static void checkProperty(String booleanPropertyName, Boolean booleanPropertyValue) throws SQLException 34 | { 35 | try 36 | { 37 | if (booleanPropertyValue == null) 38 | throw new SQLException("Property Value for: " + booleanPropertyName + " not found!"); 39 | } 40 | catch (Exception ex) 41 | { 42 | throw new SQLException(ex.getMessage()); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /connections/gplink.properties: -------------------------------------------------------------------------------- 1 | gplinkHostName=gpdbsne 2 | gpfdistMaxLength=32768 3 | gpfdistTimeout=5 4 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 5 | classForName=org.postgresql.Driver 6 | readCommitted=true 7 | userName=gpadmin 8 | password=changeme 9 | gplinkHome=/home/gpadmin/src/gplink 10 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 11 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 12 | gplinkPortLower=24000 13 | gplinkPortUpper=25000 14 | -------------------------------------------------------------------------------- /connections/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /connections/hive.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:hive2://hdb:10000/default 2 | classForName=org.apache.hive.jdbc.HiveDriver 3 | readCommitted=true 4 | userName=hive 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /connections/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | -------------------------------------------------------------------------------- /connections/teradata.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:teradata://td_server/database=EDW,TYPE=FASTEXPORT,charset=UTF8 2 | classForName=com.teradata.jdbc.TeraDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps= 7 | -------------------------------------------------------------------------------- /connections/teradata_ldap.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:teradata://td_server/LOGMECH=LDAP,database=EDW,TYPE=FASTEXPORT,charset=UTF8 2 | classForName=com.teradata.jdbc.TeraDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps= 7 | -------------------------------------------------------------------------------- /gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://mdw:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/usr/local/gplink 7 | gplinkLog=//usr/local/gplink/log/gplink 8 | gplinkYml=/usr/local/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/0.0.6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.0.6.zip -------------------------------------------------------------------------------- /history/0.0.6/bin/getdata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | gplink_class_path=$PWD/../jar/PivotalGuruGPLink.jar 4 | 5 | for j in $(ls $PWD/../jar/*.jar | grep -v PivotalGuruGPLink.jar); do 6 | gplink_class_path="$gplink_class_path:"$j 7 | done 8 | 9 | config_file=`echo $1 | awk -F '+' '{print $1}'` 10 | id=`echo $1 | awk -F '+' '{print $2}'` 11 | 12 | java -classpath $gplink_class_path -Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom GPLink "$config_file" "$id" 13 | -------------------------------------------------------------------------------- /history/0.0.6/bin/gplink_start: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | gplink_port=$1 4 | gplink_log="$gplink_log"_"$gplink_port".log 5 | 6 | gpfdist -d $gplink_home -p $gplink_port -c $gplink_yml >> $gplink_log 2>&1 < $gplink_log & 7 | echo "starting $gplink_port" 8 | -------------------------------------------------------------------------------- /history/0.0.6/bin/gplink_stop: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 4 | gplink_port=$1 5 | gplink_log="$gplink_log"_"$gplink_port".log 6 | 7 | k=`ps -ef 2> /dev/null | grep "$gplink_home" | grep gpfdist | grep $gplink_port | grep -v grep | awk -F ' ' '{ print $2 }'` 8 | 9 | if [ "$k" != "" ]; then 10 | echo "gpfdiststop:$$:$gplink_port:Trying to stop gpfdist" >> $gplink_log 11 | echo "killing $k" 12 | kill $k 13 | echo "gpfdiststop:$$:$gplink_port:killed $k" >> $gplink_log 14 | else 15 | echo "gpfdist not running on port $gplink_port" 16 | fi 17 | -------------------------------------------------------------------------------- /history/0.0.6/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: GPLink" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac GPLink.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.0.6/demo/01_create_schema.sql: -------------------------------------------------------------------------------- 1 | DROP SCHEMA IF EXISTS gplink_demo CASCADE; 2 | CREATE SCHEMA gplink_demo; 3 | -------------------------------------------------------------------------------- /history/0.0.6/demo/02_insert_ext_tables.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO gplink.ext_tables( 2 | table_name, columns, column_datatypes, 3 | sql_text, connection_url, 4 | class_for_name, read_committed, source_user_name, source_password, 5 | extra_properties, host, port) 6 | values 7 | ('gplink_demo.ms_sqlserver', array['fname', 'lname'], array['text', 'text'], 8 | 'select ''jon'', ''roberts'' union all select ''JON'', ''ROBERTS''', 'jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor;', 9 | 'com.microsoft.sqlserver.jdbc.SQLServerDriver', true, 'sa', 'sa', null, 'bigmac', 8050); 10 | 11 | 12 | INSERT INTO gplink.ext_tables( 13 | table_name, columns, column_datatypes, 14 | sql_text, connection_url, 15 | class_for_name, read_committed, source_user_name, source_password, 16 | extra_properties, host, port) 17 | values 18 | ('gplink_demo.oracle', array['fname', 'lname'], array['text', 'text'], 19 | 'select ''jon'', ''roberts'' from dual union all select ''JON'', ''ROBERTS'' from dual', 'jdbc:oracle:thin:@jonnywin:1521/XE', 20 | 'oracle.jdbc.driver.OracleDriver', true, 'scott', 'tiger', 'defaultRowPrefetch=2000', 'bigmac', 8051); 21 | 22 | -------------------------------------------------------------------------------- /history/0.0.6/demo/03_create_ext_tables.sql: -------------------------------------------------------------------------------- 1 | select gplink.fn_create_ext_table(1); 2 | select gplink.fn_create_ext_table(2); 3 | -------------------------------------------------------------------------------- /history/0.0.6/demo/04_select_ms_sqlserver.sql: -------------------------------------------------------------------------------- 1 | select * from gplink_demo.ms_sqlserver; 2 | -------------------------------------------------------------------------------- /history/0.0.6/demo/05_select_oracle.sql: -------------------------------------------------------------------------------- 1 | select * from gplink_demo.oracle; 2 | -------------------------------------------------------------------------------- /history/0.0.6/demo/runme.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gplink_stop 8050 3 | gplink_stop 8051 4 | gplink_start 8050 5 | gplink_start 8051 6 | 7 | for i in $(ls *.sql); do 8 | psql -f $i 9 | done 10 | -------------------------------------------------------------------------------- /history/0.0.6/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | -------------------------------------------------------------------------------- /history/0.0.6/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gplink_home=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export gplink_home 4 | 5 | gplink_yml=$gplink_home/yml/gplink.yml 6 | export gplink_yml 7 | 8 | gplink_log=$gplink_home/log/gplink 9 | export gplink_log 10 | 11 | export PATH=$gplink_home/bin:$PATH 12 | -------------------------------------------------------------------------------- /history/0.0.6/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.0.6/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.0.6/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.0.6/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.0.6/sql/01_create_schema.sql: -------------------------------------------------------------------------------- 1 | DROP SCHEMA IF EXISTS gplink CASCADE; 2 | CREATE SCHEMA gplink; 3 | -------------------------------------------------------------------------------- /history/0.0.6/sql/02_create_table_ext_tables.sql: -------------------------------------------------------------------------------- 1 | CREATE table gplink.ext_tables 2 | (id serial not null, 3 | table_name text not null, 4 | columns text[] not null, 5 | column_datatypes text[] not null, 6 | sql_text text not null, 7 | connection_url text not null, 8 | class_for_name text not null, 9 | read_committed boolean default true not null, 10 | source_user_name text not null, 11 | source_password text not null, 12 | extra_properties text null, 13 | host text not null, 14 | port int not null 15 | ) 16 | DISTRIBUTED BY (id); 17 | -------------------------------------------------------------------------------- /history/0.0.6/sql/runme.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | for i in $(ls *.sql); do 4 | psql -f $i 5 | done 6 | -------------------------------------------------------------------------------- /history/0.0.6/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/getdata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.0.zip -------------------------------------------------------------------------------- /history/0.1.0/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.0/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.0/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.0/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.0/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.0/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.0/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.0/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.0/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.0/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.0/java/Validation.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class Validation 5 | { 6 | 7 | public static void checkProperty(String strPropertyName, String strPropertyValue) throws SQLException 8 | { 9 | try 10 | { 11 | if (strPropertyValue == null) 12 | throw new SQLException("Property Value for: " + strPropertyName + " not found!"); 13 | } 14 | catch (Exception ex) 15 | { 16 | throw new SQLException(ex.getMessage()); 17 | } 18 | } 19 | 20 | public static void checkProperty(String intPropertyName, Integer intPropertyValue) throws SQLException 21 | { 22 | try 23 | { 24 | if (intPropertyValue == null) 25 | throw new SQLException("Property Value for: " + intPropertyName + " not found!"); 26 | } 27 | catch (Exception ex) 28 | { 29 | throw new SQLException(ex.getMessage()); 30 | } 31 | } 32 | 33 | public static void checkProperty(String booleanPropertyName, Boolean booleanPropertyValue) throws SQLException 34 | { 35 | try 36 | { 37 | if (booleanPropertyValue == null) 38 | throw new SQLException("Property Value for: " + booleanPropertyName + " not found!"); 39 | } 40 | catch (Exception ex) 41 | { 42 | throw new SQLException(ex.getMessage()); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /history/0.1.0/sql/example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.0/tables/public.test.sql: -------------------------------------------------------------------------------- 1 | tableName=public.test 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.0/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.1.zip -------------------------------------------------------------------------------- /history/0.1.1/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.1/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.1/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.1/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.1/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.1/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.1/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.1/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.1/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.1/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.1/java/Validation.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class Validation 5 | { 6 | 7 | public static void checkProperty(String strPropertyName, String strPropertyValue) throws SQLException 8 | { 9 | try 10 | { 11 | if (strPropertyValue == null) 12 | throw new SQLException("Property Value for: " + strPropertyName + " not found!"); 13 | } 14 | catch (Exception ex) 15 | { 16 | throw new SQLException(ex.getMessage()); 17 | } 18 | } 19 | 20 | public static void checkProperty(String intPropertyName, Integer intPropertyValue) throws SQLException 21 | { 22 | try 23 | { 24 | if (intPropertyValue == null) 25 | throw new SQLException("Property Value for: " + intPropertyName + " not found!"); 26 | } 27 | catch (Exception ex) 28 | { 29 | throw new SQLException(ex.getMessage()); 30 | } 31 | } 32 | 33 | public static void checkProperty(String booleanPropertyName, Boolean booleanPropertyValue) throws SQLException 34 | { 35 | try 36 | { 37 | if (booleanPropertyValue == null) 38 | throw new SQLException("Property Value for: " + booleanPropertyName + " not found!"); 39 | } 40 | catch (Exception ex) 41 | { 42 | throw new SQLException(ex.getMessage()); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /history/0.1.1/sql/example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.1/tables/public.test.sql: -------------------------------------------------------------------------------- 1 | tableName=public.test 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.1/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.2.zip -------------------------------------------------------------------------------- /history/0.1.2/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.2/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.2/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.2/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.2/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.2/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.2/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.2/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.2/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.2/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.2/java/Validation.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class Validation 5 | { 6 | 7 | public static void checkProperty(String strPropertyName, String strPropertyValue) throws SQLException 8 | { 9 | try 10 | { 11 | if (strPropertyValue == null) 12 | throw new SQLException("Property Value for: " + strPropertyName + " not found!"); 13 | } 14 | catch (Exception ex) 15 | { 16 | throw new SQLException(ex.getMessage()); 17 | } 18 | } 19 | 20 | public static void checkProperty(String intPropertyName, Integer intPropertyValue) throws SQLException 21 | { 22 | try 23 | { 24 | if (intPropertyValue == null) 25 | throw new SQLException("Property Value for: " + intPropertyName + " not found!"); 26 | } 27 | catch (Exception ex) 28 | { 29 | throw new SQLException(ex.getMessage()); 30 | } 31 | } 32 | 33 | public static void checkProperty(String booleanPropertyName, Boolean booleanPropertyValue) throws SQLException 34 | { 35 | try 36 | { 37 | if (booleanPropertyValue == null) 38 | throw new SQLException("Property Value for: " + booleanPropertyName + " not found!"); 39 | } 40 | catch (Exception ex) 41 | { 42 | throw new SQLException(ex.getMessage()); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /history/0.1.2/sql/example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.2/tables/public.test.sql: -------------------------------------------------------------------------------- 1 | tableName=public.test 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.2/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.20.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.20.zip -------------------------------------------------------------------------------- /history/0.1.20/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.20/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.20/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProperies=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/0.1.20/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.20/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://mdw:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/usr/local/gplink 7 | gplinkLog=//usr/local/gplink/log/gplink 8 | gplinkYml=/usr/local/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.20/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.20/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.20/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.20/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.20/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.20/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.20/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/0.1.20/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.20/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.20/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.20/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.21.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.21.zip -------------------------------------------------------------------------------- /history/0.1.21/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.21/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.21/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProperies=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/0.1.21/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.21/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://mdw:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/usr/local/gplink 7 | gplinkLog=//usr/local/gplink/log/gplink 8 | gplinkYml=/usr/local/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.21/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.21/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.21/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.21/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.21/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.21/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.21/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/0.1.21/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.21/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.21/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.21/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.22.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.22.zip -------------------------------------------------------------------------------- /history/0.1.22/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.22/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.22/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.22/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.22/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProperies=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/0.1.22/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.22/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | for j in $(ls $LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 20 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 21 | done 22 | 23 | export GPLINK_CLASS_PATH 24 | -------------------------------------------------------------------------------- /history/0.1.22/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.22/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.22/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.22/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.22/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.22/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/0.1.22/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/0.1.22/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.22/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/0.1.22/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.22/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.22/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.25.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.25.zip -------------------------------------------------------------------------------- /history/0.1.25/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.25/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.25/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.25/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.25/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProperies=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/0.1.25/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.25/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.25/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | for j in $(ls $LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 20 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 21 | done 22 | 23 | export GPLINK_CLASS_PATH 24 | -------------------------------------------------------------------------------- /history/0.1.25/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.25/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.25/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.25/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.25/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.25/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/0.1.25/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/0.1.25/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.25/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.25/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.25/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/0.1.25/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.25/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.25/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.26.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.26.zip -------------------------------------------------------------------------------- /history/0.1.26/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.26/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.26/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.26/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.26/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProperies=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/0.1.26/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.26/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.26/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 20 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 21 | done 22 | 23 | export GPLINK_CLASS_PATH 24 | -------------------------------------------------------------------------------- /history/0.1.26/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.26/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.26/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.26/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.26/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.26/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/0.1.26/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/0.1.26/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.26/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.26/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.26/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/0.1.26/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.26/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.26/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.27.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.27.zip -------------------------------------------------------------------------------- /history/0.1.27/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.27/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.27/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.27/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.27/connections/hive.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:hive2://hdb:10000/default 2 | classForName=org.apache.hive.jdbc.HiveDriver 3 | readCommitted=true 4 | userName=hive 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.27/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/0.1.27/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.27/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | -------------------------------------------------------------------------------- /history/0.1.27/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/0.1.27/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.27/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.27/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.27/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.27/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.27/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/0.1.27/sql/hive_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | -------------------------------------------------------------------------------- /history/0.1.27/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/0.1.27/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.27/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.27/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.27/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/0.1.27/tables/public.hive_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.hive_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.27/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.27/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.27/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.28.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.28.zip -------------------------------------------------------------------------------- /history/0.1.28/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.28/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.28/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.28/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.28/connections/hive.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:hive2://hdb:10000/default 2 | classForName=org.apache.hive.jdbc.HiveDriver 3 | readCommitted=true 4 | userName=hive 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.28/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/0.1.28/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.28/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | -------------------------------------------------------------------------------- /history/0.1.28/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/0.1.28/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.28/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.28/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.28/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.28/jar/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, console 2 | log4j.appender.console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.console.layout.conversionPattern=%5p [%t] (%F:%L) - %m%n 5 | -------------------------------------------------------------------------------- /history/0.1.28/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.28/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/0.1.28/sql/hive_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | -------------------------------------------------------------------------------- /history/0.1.28/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/0.1.28/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.28/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.28/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.28/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/0.1.28/tables/public.hive_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.hive_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.28/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.28/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.28/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.29.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.29.zip -------------------------------------------------------------------------------- /history/0.1.29/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.29/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.29/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.29/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.29/connections/hive.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:hive2://hdb:10000/default 2 | classForName=org.apache.hive.jdbc.HiveDriver 3 | readCommitted=true 4 | userName=hive 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.29/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/0.1.29/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.29/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | -------------------------------------------------------------------------------- /history/0.1.29/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/0.1.29/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.29/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.29/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.29/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.29/jar/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, console 2 | log4j.appender.console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.console.layout.conversionPattern=%5p [%t] (%F:%L) - %m%n 5 | -------------------------------------------------------------------------------- /history/0.1.29/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.29/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/0.1.29/sql/hive_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | -------------------------------------------------------------------------------- /history/0.1.29/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/0.1.29/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.29/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.29/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.29/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/0.1.29/tables/public.hive_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.hive_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.29/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.29/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.29/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.3.zip -------------------------------------------------------------------------------- /history/0.1.3/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.3/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.3/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.3/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.3/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.3/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.3/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.3/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.3/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.3/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.3/java/Validation.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class Validation 5 | { 6 | 7 | public static void checkProperty(String strPropertyName, String strPropertyValue) throws SQLException 8 | { 9 | try 10 | { 11 | if (strPropertyValue == null) 12 | throw new SQLException("Property Value for: " + strPropertyName + " not found!"); 13 | } 14 | catch (Exception ex) 15 | { 16 | throw new SQLException(ex.getMessage()); 17 | } 18 | } 19 | 20 | public static void checkProperty(String intPropertyName, Integer intPropertyValue) throws SQLException 21 | { 22 | try 23 | { 24 | if (intPropertyValue == null) 25 | throw new SQLException("Property Value for: " + intPropertyName + " not found!"); 26 | } 27 | catch (Exception ex) 28 | { 29 | throw new SQLException(ex.getMessage()); 30 | } 31 | } 32 | 33 | public static void checkProperty(String booleanPropertyName, Boolean booleanPropertyValue) throws SQLException 34 | { 35 | try 36 | { 37 | if (booleanPropertyValue == null) 38 | throw new SQLException("Property Value for: " + booleanPropertyName + " not found!"); 39 | } 40 | catch (Exception ex) 41 | { 42 | throw new SQLException(ex.getMessage()); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /history/0.1.3/sql/example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.3/tables/public.test.sql: -------------------------------------------------------------------------------- 1 | tableName=public.test 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.3/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.30.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.30.zip -------------------------------------------------------------------------------- /history/0.1.30/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.30/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.30/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.30/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.30/connections/hive.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:hive2://hdb:10000/default 2 | classForName=org.apache.hive.jdbc.HiveDriver 3 | readCommitted=true 4 | userName=hive 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.30/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/0.1.30/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.30/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | -------------------------------------------------------------------------------- /history/0.1.30/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/0.1.30/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.30/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.30/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.30/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.30/jar/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, console 2 | log4j.appender.console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.console.layout.conversionPattern=%5p [%t] (%F:%L) - %m%n 5 | -------------------------------------------------------------------------------- /history/0.1.30/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.30/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/0.1.30/sql/hive_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | -------------------------------------------------------------------------------- /history/0.1.30/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/0.1.30/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.30/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/0.1.30/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.30/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/0.1.30/tables/public.hive_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.hive_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.30/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.30/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.30/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.4.zip -------------------------------------------------------------------------------- /history/0.1.4/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.4/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.4/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.4/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.4/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.4/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.4/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.4/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.4/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.4/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.4/java/Validation.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class Validation 5 | { 6 | 7 | public static void checkProperty(String strPropertyName, String strPropertyValue) throws SQLException 8 | { 9 | try 10 | { 11 | if (strPropertyValue == null) 12 | throw new SQLException("Property Value for: " + strPropertyName + " not found!"); 13 | } 14 | catch (Exception ex) 15 | { 16 | throw new SQLException(ex.getMessage()); 17 | } 18 | } 19 | 20 | public static void checkProperty(String intPropertyName, Integer intPropertyValue) throws SQLException 21 | { 22 | try 23 | { 24 | if (intPropertyValue == null) 25 | throw new SQLException("Property Value for: " + intPropertyName + " not found!"); 26 | } 27 | catch (Exception ex) 28 | { 29 | throw new SQLException(ex.getMessage()); 30 | } 31 | } 32 | 33 | public static void checkProperty(String booleanPropertyName, Boolean booleanPropertyValue) throws SQLException 34 | { 35 | try 36 | { 37 | if (booleanPropertyValue == null) 38 | throw new SQLException("Property Value for: " + booleanPropertyName + " not found!"); 39 | } 40 | catch (Exception ex) 41 | { 42 | throw new SQLException(ex.getMessage()); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /history/0.1.4/sql/example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.4/tables/public.test.sql: -------------------------------------------------------------------------------- 1 | tableName=public.test 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.4/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.5.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.5.zip -------------------------------------------------------------------------------- /history/0.1.5/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.5/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.5/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.5/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.5/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.5/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.5/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.5/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.5/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.5/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.5/java/Validation.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class Validation 5 | { 6 | 7 | public static void checkProperty(String strPropertyName, String strPropertyValue) throws SQLException 8 | { 9 | try 10 | { 11 | if (strPropertyValue == null) 12 | throw new SQLException("Property Value for: " + strPropertyName + " not found!"); 13 | } 14 | catch (Exception ex) 15 | { 16 | throw new SQLException(ex.getMessage()); 17 | } 18 | } 19 | 20 | public static void checkProperty(String intPropertyName, Integer intPropertyValue) throws SQLException 21 | { 22 | try 23 | { 24 | if (intPropertyValue == null) 25 | throw new SQLException("Property Value for: " + intPropertyName + " not found!"); 26 | } 27 | catch (Exception ex) 28 | { 29 | throw new SQLException(ex.getMessage()); 30 | } 31 | } 32 | 33 | public static void checkProperty(String booleanPropertyName, Boolean booleanPropertyValue) throws SQLException 34 | { 35 | try 36 | { 37 | if (booleanPropertyValue == null) 38 | throw new SQLException("Property Value for: " + booleanPropertyName + " not found!"); 39 | } 40 | catch (Exception ex) 41 | { 42 | throw new SQLException(ex.getMessage()); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /history/0.1.5/sql/example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.5/tables/public.test.sql: -------------------------------------------------------------------------------- 1 | tableName=public.test 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.5/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.6.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.6.zip -------------------------------------------------------------------------------- /history/0.1.6/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.6/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.6/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.6/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.6/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.6/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.6/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.6/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.6/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.6/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.6/java/Validation.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class Validation 5 | { 6 | 7 | public static void checkProperty(String strPropertyName, String strPropertyValue) throws SQLException 8 | { 9 | try 10 | { 11 | if (strPropertyValue == null) 12 | throw new SQLException("Property Value for: " + strPropertyName + " not found!"); 13 | } 14 | catch (Exception ex) 15 | { 16 | throw new SQLException(ex.getMessage()); 17 | } 18 | } 19 | 20 | public static void checkProperty(String intPropertyName, Integer intPropertyValue) throws SQLException 21 | { 22 | try 23 | { 24 | if (intPropertyValue == null) 25 | throw new SQLException("Property Value for: " + intPropertyName + " not found!"); 26 | } 27 | catch (Exception ex) 28 | { 29 | throw new SQLException(ex.getMessage()); 30 | } 31 | } 32 | 33 | public static void checkProperty(String booleanPropertyName, Boolean booleanPropertyValue) throws SQLException 34 | { 35 | try 36 | { 37 | if (booleanPropertyValue == null) 38 | throw new SQLException("Property Value for: " + booleanPropertyName + " not found!"); 39 | } 40 | catch (Exception ex) 41 | { 42 | throw new SQLException(ex.getMessage()); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /history/0.1.6/sql/example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.6/tables/public.test.sql: -------------------------------------------------------------------------------- 1 | tableName=public.test 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.6/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.7.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.7.zip -------------------------------------------------------------------------------- /history/0.1.7/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.7/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.7/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.7/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.7/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.7/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.7/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.7/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.7/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.7/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.7/java/Validation.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class Validation 5 | { 6 | 7 | public static void checkProperty(String strPropertyName, String strPropertyValue) throws SQLException 8 | { 9 | try 10 | { 11 | if (strPropertyValue == null) 12 | throw new SQLException("Property Value for: " + strPropertyName + " not found!"); 13 | } 14 | catch (Exception ex) 15 | { 16 | throw new SQLException(ex.getMessage()); 17 | } 18 | } 19 | 20 | public static void checkProperty(String intPropertyName, Integer intPropertyValue) throws SQLException 21 | { 22 | try 23 | { 24 | if (intPropertyValue == null) 25 | throw new SQLException("Property Value for: " + intPropertyName + " not found!"); 26 | } 27 | catch (Exception ex) 28 | { 29 | throw new SQLException(ex.getMessage()); 30 | } 31 | } 32 | 33 | public static void checkProperty(String booleanPropertyName, Boolean booleanPropertyValue) throws SQLException 34 | { 35 | try 36 | { 37 | if (booleanPropertyValue == null) 38 | throw new SQLException("Property Value for: " + booleanPropertyName + " not found!"); 39 | } 40 | catch (Exception ex) 41 | { 42 | throw new SQLException(ex.getMessage()); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /history/0.1.7/sql/example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.7/tables/public.test.sql: -------------------------------------------------------------------------------- 1 | tableName=public.test 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.7/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.8.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.8.zip -------------------------------------------------------------------------------- /history/0.1.8/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.8/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.8/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.8/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.8/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.8/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.8/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.8/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.8/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.8/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.8/sql/example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.8/tables/public.test.sql: -------------------------------------------------------------------------------- 1 | tableName=public.test 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.8/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/0.1.9.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.9.zip -------------------------------------------------------------------------------- /history/0.1.9/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/0.1.9/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/0.1.9/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | extraProperies= 7 | -------------------------------------------------------------------------------- /history/0.1.9/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/0.1.9/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | -------------------------------------------------------------------------------- /history/0.1.9/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.9/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/0.1.9/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/0.1.9/jar/gpdb.jar -------------------------------------------------------------------------------- /history/0.1.9/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/0.1.9/sql/example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/0.1.9/tables/public.test.sql: -------------------------------------------------------------------------------- 1 | tableName=public.test 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/0.1.9/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/1.0.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.0.zip -------------------------------------------------------------------------------- /history/1.0.0/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/1.0.0/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/1.0.0/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.0/connections/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/1.0.0/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.0/connections/hive.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:hive2://hdb:10000/default 2 | classForName=org.apache.hive.jdbc.HiveDriver 3 | readCommitted=true 4 | userName=hive 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.0/connections/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.0/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/1.0.0/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.0/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | -------------------------------------------------------------------------------- /history/1.0.0/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/1.0.0/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.0/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/1.0.0/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.0/jar/gpdb.jar -------------------------------------------------------------------------------- /history/1.0.0/jar/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, console 2 | log4j.appender.console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.console.layout.conversionPattern=%5p [%t] (%F:%L) - %m%n 5 | -------------------------------------------------------------------------------- /history/1.0.0/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/1.0.0/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/1.0.0/sql/hive_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | -------------------------------------------------------------------------------- /history/1.0.0/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/1.0.0/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/1.0.0/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.0/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.0/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/1.0.0/tables/public.hive_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.hive_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.0/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.0/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.0/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/1.0.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.1.zip -------------------------------------------------------------------------------- /history/1.0.1/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/1.0.1/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/1.0.1/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.1/connections/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/1.0.1/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.1/connections/hive.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:hive2://hdb:10000/default 2 | classForName=org.apache.hive.jdbc.HiveDriver 3 | readCommitted=true 4 | userName=hive 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.1/connections/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.1/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/1.0.1/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.1/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | -------------------------------------------------------------------------------- /history/1.0.1/connections/teradata.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:teradata://td_server/database=EDW,TYPE=FASTEXPORT,charset=UTF8 2 | classForName=com.teradata.jdbc.TeraDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.1/connections/teradata_ldap.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:teradata://td_server/LOGMECH=LDAP,database=EDW,TYPE=FASTEXPORT,charset=UTF8 2 | classForName=com.teradata.jdbc.TeraDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.1/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/1.0.1/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.1/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/1.0.1/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.1/jar/gpdb.jar -------------------------------------------------------------------------------- /history/1.0.1/jar/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, console 2 | log4j.appender.console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.console.layout.conversionPattern=%5p [%t] (%F:%L) - %m%n 5 | -------------------------------------------------------------------------------- /history/1.0.1/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/1.0.1/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/1.0.1/sql/hive_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | -------------------------------------------------------------------------------- /history/1.0.1/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/1.0.1/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/1.0.1/sql/teradata_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/1.0.1/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.1/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.1/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/1.0.1/tables/public.hive_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.hive_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.1/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.1/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName="public"."SQLServerExample" 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.1/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/1.0.2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.2.zip -------------------------------------------------------------------------------- /history/1.0.2/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/1.0.2/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/1.0.2/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | gplinkHostName=gpdbsne 2 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 3 | classForName=org.postgresql.Driver 4 | readCommitted=true 5 | userName=gpadmin 6 | password=changeme 7 | gplinkHome=/home/gpadmin/src/gplink 8 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 9 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 10 | gplinkPortLower=24000 11 | gplinkPortUpper=25000 12 | -------------------------------------------------------------------------------- /history/1.0.2/connections/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/1.0.2/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.2/connections/hive.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:hive2://hdb:10000/default 2 | classForName=org.apache.hive.jdbc.HiveDriver 3 | readCommitted=true 4 | userName=hive 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.2/connections/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.2/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/1.0.2/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.2/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | -------------------------------------------------------------------------------- /history/1.0.2/connections/teradata.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:teradata://td_server/database=EDW,TYPE=FASTEXPORT,charset=UTF8 2 | classForName=com.teradata.jdbc.TeraDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.2/connections/teradata_ldap.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:teradata://td_server/LOGMECH=LDAP,database=EDW,TYPE=FASTEXPORT,charset=UTF8 2 | classForName=com.teradata.jdbc.TeraDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.2/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/1.0.2/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.2/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/1.0.2/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.2/jar/gpdb.jar -------------------------------------------------------------------------------- /history/1.0.2/jar/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, console 2 | log4j.appender.console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.console.layout.conversionPattern=%5p [%t] (%F:%L) - %m%n 5 | -------------------------------------------------------------------------------- /history/1.0.2/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/1.0.2/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/1.0.2/sql/hive_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | -------------------------------------------------------------------------------- /history/1.0.2/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/1.0.2/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/1.0.2/sql/teradata_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/1.0.2/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.2/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.2/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/1.0.2/tables/public.hive_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.hive_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.2/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.2/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName="public"."SQLServerExample" 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.2/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/1.0.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.3.zip -------------------------------------------------------------------------------- /history/1.0.3/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/1.0.3/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/1.0.3/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | gplinkHostName=gpdbsne 2 | gpfdistMaxLength=32768 3 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 4 | classForName=org.postgresql.Driver 5 | readCommitted=true 6 | userName=gpadmin 7 | password=changeme 8 | gplinkHome=/home/gpadmin/src/gplink 9 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 10 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 11 | gplinkPortLower=24000 12 | gplinkPortUpper=25000 13 | -------------------------------------------------------------------------------- /history/1.0.3/connections/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/1.0.3/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.3/connections/hive.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:hive2://hdb:10000/default 2 | classForName=org.apache.hive.jdbc.HiveDriver 3 | readCommitted=true 4 | userName=hive 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.3/connections/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.3/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/1.0.3/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.3/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | -------------------------------------------------------------------------------- /history/1.0.3/connections/teradata.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:teradata://td_server/database=EDW,TYPE=FASTEXPORT,charset=UTF8 2 | classForName=com.teradata.jdbc.TeraDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.3/connections/teradata_ldap.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:teradata://td_server/LOGMECH=LDAP,database=EDW,TYPE=FASTEXPORT,charset=UTF8 2 | classForName=com.teradata.jdbc.TeraDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.3/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/1.0.3/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.3/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/1.0.3/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.3/jar/gpdb.jar -------------------------------------------------------------------------------- /history/1.0.3/jar/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, console 2 | log4j.appender.console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.console.layout.conversionPattern=%5p [%t] (%F:%L) - %m%n 5 | -------------------------------------------------------------------------------- /history/1.0.3/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/1.0.3/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/1.0.3/sql/hive_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | -------------------------------------------------------------------------------- /history/1.0.3/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/1.0.3/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/1.0.3/sql/teradata_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/1.0.3/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.3/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.3/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/1.0.3/tables/public.hive_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.hive_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.3/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.3/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName="public"."SQLServerExample" 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.3/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /history/1.0.4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.4.zip -------------------------------------------------------------------------------- /history/1.0.4/bin/ext_gpldata: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script is referenced in the YML file and is used to parse the URL provided and call the gpldata script properly. 3 | 4 | PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 5 | 6 | source_config=`echo $1 | awk -F '+' '{print $1}'` 7 | sql=`echo $1 | awk -F '+' '{print $2}'` 8 | 9 | $PWD/gpldata -s "$source_config" -f "$sql" 10 | -------------------------------------------------------------------------------- /history/1.0.4/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | echo "Manifest-Version: 1.0" > manifest.txt 4 | echo "Main-Class: ExternalData" >> manifest.txt 5 | echo "Specification-Title: \"PivotalGuruGPLink\"" >> manifest.txt 6 | echo "Specification-Version: \"1.0\"" >> manifest.txt 7 | echo "Created-By: 1.6.0_65-b14-462-11M4609" >> manifest.txt 8 | d=`date` 9 | echo "Build-Date: $d" >> manifest.txt 10 | 11 | javac -Xbootclasspath:/usr/java/jdk1.6.0_45/jre/lib/rt.jar -source 1.6 -target 1.6 *.java 12 | jar cfm PivotalGuruGPLink.jar manifest.txt ExternalData.class CommonDB.class SQLFile.class TargetData.class Listener.class Validation.class GPLink.class 13 | mv PivotalGuruGPLink.jar jar/ 14 | -------------------------------------------------------------------------------- /history/1.0.4/connections/gplink.properties: -------------------------------------------------------------------------------- 1 | gplinkHostName=gpdbsne 2 | gpfdistMaxLength=32768 3 | gpfdistTimeout=5 4 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 5 | classForName=org.postgresql.Driver 6 | readCommitted=true 7 | userName=gpadmin 8 | password=changeme 9 | gplinkHome=/home/gpadmin/src/gplink 10 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 11 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 12 | gplinkPortLower=24000 13 | gplinkPortUpper=25000 14 | -------------------------------------------------------------------------------- /history/1.0.4/connections/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/1.0.4/connections/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.4/connections/hive.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:hive2://hdb:10000/default 2 | classForName=org.apache.hive.jdbc.HiveDriver 3 | readCommitted=true 4 | userName=hive 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.4/connections/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/gpadmin 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/home/gpadmin/src/gplink 7 | gplinkLog=/home/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/home/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.4/connections/oracle.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:oracle:thin:@//jonnywin:1521/XE 2 | classForName=oracle.jdbc.driver.OracleDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps=defaultRowPrefetch=2000 7 | -------------------------------------------------------------------------------- /history/1.0.4/connections/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.sqlserver_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.4/connections/sqlserver.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:sqlserver://jonnywin;CODEPAGE=65001;responseBuffering=adaptive;selectMethod=cursor; 2 | classForName=com.microsoft.sqlserver.jdbc.SQLServerDriver 3 | readCommitted=true 4 | userName=sa 5 | password=sa 6 | -------------------------------------------------------------------------------- /history/1.0.4/connections/teradata.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:teradata://td_server/database=EDW,TYPE=FASTEXPORT,charset=UTF8 2 | classForName=com.teradata.jdbc.TeraDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.4/connections/teradata_ldap.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:teradata://td_server/LOGMECH=LDAP,database=EDW,TYPE=FASTEXPORT,charset=UTF8 2 | classForName=com.teradata.jdbc.TeraDriver 3 | readCommitted=true 4 | userName=scott 5 | password=tiger 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.4/gplink_path.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | GPLINK_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 3 | export GPLINK_HOME 4 | 5 | export GPLINK_YML=$GPLINK_HOME/yml/gplink.yml 6 | 7 | export GPLINK_LOG=$GPLINK_HOME/log/gplink 8 | 9 | export PATH=$GPLINK_HOME/bin:$PATH 10 | 11 | export GPLINK_LOCK=/tmp/gplink.lock 12 | 13 | export GPLINK_PORT_LOWER=24000 14 | export GPLINK_PORT_UPPER=25000 15 | 16 | GPLINK_LOCAL_PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 17 | 18 | GPLINK_CLASS_PATH=$GPLINK_LOCAL_PWD/jar/PivotalGuruGPLink.jar 19 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:""$GPLINK_LOCAL_PWD/jar/log4j.properties" 20 | for j in $(ls $GPLINK_LOCAL_PWD/jar/*.jar | grep -v PivotalGuruGPLink.jar); do 21 | GPLINK_CLASS_PATH="$GPLINK_CLASS_PATH:"$j 22 | done 23 | export GPLINK_CLASS_PATH 24 | 25 | GPLINK_LOG4J_PROPERTIES=$GPLINK_LOCAL_PWD/jar/log4j.properties 26 | export GPLINK_LOG4J_PROPERTIES 27 | -------------------------------------------------------------------------------- /history/1.0.4/jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.4/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /history/1.0.4/jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/history/1.0.4/jar/gpdb.jar -------------------------------------------------------------------------------- /history/1.0.4/jar/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, console 2 | log4j.appender.console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.console.layout.conversionPattern=%5p [%t] (%F:%L) - %m%n 5 | -------------------------------------------------------------------------------- /history/1.0.4/java/SQLFile.java: -------------------------------------------------------------------------------- 1 | import java.sql.*; 2 | import java.io.*; 3 | 4 | public class SQLFile 5 | { 6 | public static String getSQLText(String sqlFile) throws SQLException 7 | { 8 | String sqlText = ""; 9 | String line = null; 10 | try 11 | { 12 | FileReader fileReader = new FileReader(sqlFile); 13 | BufferedReader bufferedReader = new BufferedReader(fileReader); 14 | while((line = bufferedReader.readLine()) != null) 15 | { 16 | if (sqlText.equals("")) 17 | sqlText=line; 18 | else 19 | sqlText= sqlText + " " + line; 20 | } 21 | 22 | bufferedReader.close(); 23 | 24 | return sqlText; 25 | } 26 | catch (Exception ex) 27 | { 28 | throw new SQLException(ex.getMessage()); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /history/1.0.4/sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /history/1.0.4/sql/hive_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | -------------------------------------------------------------------------------- /history/1.0.4/sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /history/1.0.4/sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/1.0.4/sql/teradata_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /history/1.0.4/tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /history/1.0.4/tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /history/1.0.4/tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /history/1.0.4/tables/public.hive_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.hive_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.4/tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.4/tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName="public"."SQLServerExample" 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /history/1.0.4/yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | -------------------------------------------------------------------------------- /jar/PivotalGuruGPLink.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/jar/PivotalGuruGPLink.jar -------------------------------------------------------------------------------- /jar/gpdb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RunningJon/gplink/b033a93b96d1a15f73159d48bedad7373d2d28f5/jar/gpdb.jar -------------------------------------------------------------------------------- /jar/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=WARN, console 2 | log4j.appender.console=org.apache.log4j.ConsoleAppender 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | log4j.appender.console.layout.conversionPattern=%5p [%t] (%F:%L) - %m%n 5 | -------------------------------------------------------------------------------- /manifest.txt: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Main-Class: ExternalData 3 | Specification-Title: "PivotalGuruGPLink" 4 | Specification-Version: "1.0" 5 | Created-By: 1.6.0_65-b14-462-11M4609 6 | Build-Date: Thu May 31 16:20:39 EDT 2018 7 | -------------------------------------------------------------------------------- /sql/greenplum_edw_example.sql: -------------------------------------------------------------------------------- 1 | select * 2 | from customer; 3 | -------------------------------------------------------------------------------- /sql/hive_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | -------------------------------------------------------------------------------- /sql/oracle_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' FROM DUAL 2 | union all 3 | select 'JON', 'ROBERTS' FROM DUAL 4 | -------------------------------------------------------------------------------- /sql/sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /sql/teradata_example.sql: -------------------------------------------------------------------------------- 1 | select 'jon', 'roberts' 2 | union all 3 | select 'JON', 'ROBERTS' 4 | -------------------------------------------------------------------------------- /tables/greenplum_edw.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://gpdbsne:5432/edw 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | extraProps= 7 | -------------------------------------------------------------------------------- /tables/local.properties: -------------------------------------------------------------------------------- 1 | connectionUrl=jdbc:postgresql://bigmac:5432/gpdb 2 | classForName=org.postgresql.Driver 3 | readCommitted=true 4 | userName=gpadmin 5 | password=changeme 6 | gplinkHome=/Users/gpadmin/src/gplink 7 | gplinkLog=/Users/gpadmin/src/gplink/log/gplink 8 | gplinkYml=/Users/gpadmin/src/gplink/yml/gplink.yml 9 | gplinkPortLower=24000 10 | gplinkPortUpper=25000 11 | -------------------------------------------------------------------------------- /tables/public.edw_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.edw_example 2 | columns=i int, fname text, lname text 3 | -------------------------------------------------------------------------------- /tables/public.hive_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.hive_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /tables/public.oracle_example.sql: -------------------------------------------------------------------------------- 1 | tableName=public.oracle_example 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /tables/public.sqlserver_example.sql: -------------------------------------------------------------------------------- 1 | tableName="public"."SQLServerExample" 2 | columns=first_name text, last_name text 3 | -------------------------------------------------------------------------------- /yml/gplink.yml: -------------------------------------------------------------------------------- 1 | --- 2 | VERSION: 1.0.0.1 3 | TRANSFORMATIONS: 4 | gplink: 5 | TYPE: input 6 | CONTENT: data 7 | COMMAND: /bin/bash bin/ext_gpldata %filename% 8 | --------------------------------------------------------------------------------