-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-zip-and-send-to-secure-server.kjb
239 lines (239 loc) · 10.7 KB
/
create-zip-and-send-to-secure-server.kjb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<?xml version="1.0" encoding="UTF-8"?>
<job>
<name>create-zip-and-send-to-secure-server</name>
<description/>
<extended_description/>
<job_version/>
<directory>/</directory>
<created_user>-</created_user>
<created_date>2012/11/24 21:35:19.422</created_date>
<modified_user>-</modified_user>
<modified_date>2012/11/24 21:35:19.422</modified_date>
<parameters>
</parameters>
<connection>
<name>kettle_by_example</name>
<server>localhost</server>
<type>MYSQL</type>
<access>Native</access>
<database>kettle_by_example</database>
<port>3306</port>
<username>root</username>
<password>Encrypted 2be98afc86aa7f2e4cb79ce10cc9da0ce</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute>
<attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
<attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
<attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
<attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
<attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
<attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
<attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
<attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
</attributes>
</connection>
<slaveservers>
</slaveservers>
<job-log-table><connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field><id>ID_JOB</id><enabled>Y</enabled><name>ID_JOB</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>JOBNAME</id><enabled>Y</enabled><name>JOBNAME</name></field><field><id>STATUS</id><enabled>Y</enabled><name>STATUS</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>STARTDATE</id><enabled>Y</enabled><name>STARTDATE</name></field><field><id>ENDDATE</id><enabled>Y</enabled><name>ENDDATE</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>DEPDATE</id><enabled>Y</enabled><name>DEPDATE</name></field><field><id>REPLAYDATE</id><enabled>Y</enabled><name>REPLAYDATE</name></field><field><id>LOG_FIELD</id><enabled>Y</enabled><name>LOG_FIELD</name></field></job-log-table>
<jobentry-log-table><connection/>
<schema/>
<table/>
<timeout_days/>
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>JOBNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>JOBENTRYNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>RESULT</id><enabled>Y</enabled><name>RESULT</name></field><field><id>NR_RESULT_ROWS</id><enabled>Y</enabled><name>NR_RESULT_ROWS</name></field><field><id>NR_RESULT_FILES</id><enabled>Y</enabled><name>NR_RESULT_FILES</name></field><field><id>LOG_FIELD</id><enabled>N</enabled><name>LOG_FIELD</name></field><field><id>COPY_NR</id><enabled>N</enabled><name>COPY_NR</name></field></jobentry-log-table>
<channel-log-table><connection/>
<schema/>
<table/>
<timeout_days/>
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>LOGGING_OBJECT_TYPE</id><enabled>Y</enabled><name>LOGGING_OBJECT_TYPE</name></field><field><id>OBJECT_NAME</id><enabled>Y</enabled><name>OBJECT_NAME</name></field><field><id>OBJECT_COPY</id><enabled>Y</enabled><name>OBJECT_COPY</name></field><field><id>REPOSITORY_DIRECTORY</id><enabled>Y</enabled><name>REPOSITORY_DIRECTORY</name></field><field><id>FILENAME</id><enabled>Y</enabled><name>FILENAME</name></field><field><id>OBJECT_ID</id><enabled>Y</enabled><name>OBJECT_ID</name></field><field><id>OBJECT_REVISION</id><enabled>Y</enabled><name>OBJECT_REVISION</name></field><field><id>PARENT_CHANNEL_ID</id><enabled>Y</enabled><name>PARENT_CHANNEL_ID</name></field><field><id>ROOT_CHANNEL_ID</id><enabled>Y</enabled><name>ROOT_CHANNEL_ID</name></field></channel-log-table>
<pass_batchid>N</pass_batchid>
<shared_objects_file/>
<entries>
<entry>
<name>START</name>
<description/>
<type>SPECIAL</type>
<start>Y</start>
<dummy>N</dummy>
<repeat>N</repeat>
<schedulerType>0</schedulerType>
<intervalSeconds>0</intervalSeconds>
<intervalMinutes>60</intervalMinutes>
<hour>12</hour>
<minutes>0</minutes>
<weekDay>1</weekDay>
<DayOfMonth>1</DayOfMonth>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>46</xloc>
<yloc>123</yloc>
</entry>
<entry>
<name>Success</name>
<description/>
<type>SUCCESS</type>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>629</xloc>
<yloc>120</yloc>
</entry>
<entry>
<name>Zip file</name>
<description/>
<type>ZIP_FILE</type>
<zipfilename>/tmp/kettle-seminar.zip</zipfilename>
<compressionrate>1</compressionrate>
<ifzipfileexists>2</ifzipfileexists>
<wildcard>.*</wildcard>
<wildcardexclude>data-integration</wildcardexclude>
<sourcedirectory>/home/rsilva/git/kettle-seminar</sourcedirectory>
<movetodirectory/>
<afterzip>0</afterzip>
<addfiletoresult>Y</addfiletoresult>
<isfromprevious>N</isfromprevious>
<createparentfolder>N</createparentfolder>
<adddate>Y</adddate>
<addtime>Y</addtime>
<SpecifyFormat>N</SpecifyFormat>
<date_time_format/>
<createMoveToDirectory>N</createMoveToDirectory>
<include_subfolders>N</include_subfolders>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>325</xloc>
<yloc>122</yloc>
</entry>
<entry>
<name>Put a file with SFTP</name>
<description/>
<type>SFTPPUT</type>
<servername>localhost</servername>
<serverport>22</serverport>
<username>rsilva</username>
<password>Encrypted 2be98afc86aa7f2e4cb11bb7ddf9cbcfa</password>
<sftpdirectory>/home/rsilva/kettle-seminar-versions</sftpdirectory>
<localdirectory>/tmp</localdirectory>
<wildcard>kettle-seminar.*zip</wildcard>
<copyprevious>N</copyprevious>
<addFilenameResut>N</addFilenameResut>
<usekeyfilename>N</usekeyfilename>
<keyfilename/>
<keyfilepass>Encrypted </keyfilepass>
<compression>none</compression>
<proxyType/>
<proxyHost/>
<proxyPort/>
<proxyUsername/>
<proxyPassword>Encrypted </proxyPassword>
<createRemoteFolder>Y</createRemoteFolder>
<aftersftpput>delete</aftersftpput>
<destinationfolder/>
<createdestinationfolder>N</createdestinationfolder>
<successWhenNoFile>N</successWhenNoFile>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>467</xloc>
<yloc>124</yloc>
</entry>
<entry>
<name>CurrenciesTable exists?</name>
<description/>
<type>TABLE_EXISTS</type>
<tablename>currencies</tablename>
<schemaname/>
<connection>kettle_by_example</connection>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>163</xloc>
<yloc>120</yloc>
</entry>
<entry>
<name>create and load currencies</name>
<description/>
<type>SQL</type>
<sql/>
<useVariableSubstitution>F</useVariableSubstitution>
<sqlfromfile>T</sqlfromfile>
<sqlfilename>${Internal.Job.Filename.Directory}/currencies_table.sql</sqlfilename>
<sendOneStatement>F</sendOneStatement>
<connection>kettle_by_example</connection>
<parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>225</xloc>
<yloc>236</yloc>
</entry>
</entries>
<hops>
<hop>
<from>Zip file</from>
<to>Put a file with SFTP</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>Put a file with SFTP</from>
<to>Success</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>START</from>
<to>CurrenciesTable exists?</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>Y</unconditional>
</hop>
<hop>
<from>CurrenciesTable exists?</from>
<to>Zip file</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>create and load currencies</from>
<to>Zip file</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>Y</evaluation>
<unconditional>N</unconditional>
</hop>
<hop>
<from>CurrenciesTable exists?</from>
<to>create and load currencies</to>
<from_nr>0</from_nr>
<to_nr>0</to_nr>
<enabled>Y</enabled>
<evaluation>N</evaluation>
<unconditional>N</unconditional>
</hop>
</hops>
<notepads>
</notepads>
</job>