child.ktr 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <transformation>
  3. <info>
  4. <name>child</name>
  5. <description/>
  6. <extended_description/>
  7. <trans_version/>
  8. <trans_type>Normal</trans_type>
  9. <directory>/</directory>
  10. <parameters>
  11. <parameter>
  12. <name>input_db_ip</name>
  13. <default_value>172.17.0.1</default_value>
  14. <description/>
  15. </parameter>
  16. <parameter>
  17. <name>input_db_port</name>
  18. <default_value>27017</default_value>
  19. <description/>
  20. </parameter>
  21. <parameter>
  22. <name>out_db_ip</name>
  23. <default_value>172.17.0.1</default_value>
  24. <description/>
  25. </parameter>
  26. <parameter>
  27. <name>out_db_name</name>
  28. <default_value>ry</default_value>
  29. <description/>
  30. </parameter>
  31. <parameter>
  32. <name>out_db_port</name>
  33. <default_value>3306</default_value>
  34. <description/>
  35. </parameter>
  36. <parameter>
  37. <name>out_db_pwd</name>
  38. <default_value>sckjadmin</default_value>
  39. <description/>
  40. </parameter>
  41. <parameter>
  42. <name>out_db_username</name>
  43. <default_value>root</default_value>
  44. <description/>
  45. </parameter>
  46. </parameters>
  47. <log>
  48. <trans-log-table>
  49. <connection/>
  50. <schema/>
  51. <table/>
  52. <size_limit_lines/>
  53. <interval/>
  54. <timeout_days/>
  55. <field>
  56. <id>ID_BATCH</id>
  57. <enabled>Y</enabled>
  58. <name>ID_BATCH</name>
  59. </field>
  60. <field>
  61. <id>CHANNEL_ID</id>
  62. <enabled>Y</enabled>
  63. <name>CHANNEL_ID</name>
  64. </field>
  65. <field>
  66. <id>TRANSNAME</id>
  67. <enabled>Y</enabled>
  68. <name>TRANSNAME</name>
  69. </field>
  70. <field>
  71. <id>STATUS</id>
  72. <enabled>Y</enabled>
  73. <name>STATUS</name>
  74. </field>
  75. <field>
  76. <id>LINES_READ</id>
  77. <enabled>Y</enabled>
  78. <name>LINES_READ</name>
  79. <subject/>
  80. </field>
  81. <field>
  82. <id>LINES_WRITTEN</id>
  83. <enabled>Y</enabled>
  84. <name>LINES_WRITTEN</name>
  85. <subject/>
  86. </field>
  87. <field>
  88. <id>LINES_UPDATED</id>
  89. <enabled>Y</enabled>
  90. <name>LINES_UPDATED</name>
  91. <subject/>
  92. </field>
  93. <field>
  94. <id>LINES_INPUT</id>
  95. <enabled>Y</enabled>
  96. <name>LINES_INPUT</name>
  97. <subject/>
  98. </field>
  99. <field>
  100. <id>LINES_OUTPUT</id>
  101. <enabled>Y</enabled>
  102. <name>LINES_OUTPUT</name>
  103. <subject/>
  104. </field>
  105. <field>
  106. <id>LINES_REJECTED</id>
  107. <enabled>Y</enabled>
  108. <name>LINES_REJECTED</name>
  109. <subject/>
  110. </field>
  111. <field>
  112. <id>ERRORS</id>
  113. <enabled>Y</enabled>
  114. <name>ERRORS</name>
  115. </field>
  116. <field>
  117. <id>STARTDATE</id>
  118. <enabled>Y</enabled>
  119. <name>STARTDATE</name>
  120. </field>
  121. <field>
  122. <id>ENDDATE</id>
  123. <enabled>Y</enabled>
  124. <name>ENDDATE</name>
  125. </field>
  126. <field>
  127. <id>LOGDATE</id>
  128. <enabled>Y</enabled>
  129. <name>LOGDATE</name>
  130. </field>
  131. <field>
  132. <id>DEPDATE</id>
  133. <enabled>Y</enabled>
  134. <name>DEPDATE</name>
  135. </field>
  136. <field>
  137. <id>REPLAYDATE</id>
  138. <enabled>Y</enabled>
  139. <name>REPLAYDATE</name>
  140. </field>
  141. <field>
  142. <id>LOG_FIELD</id>
  143. <enabled>Y</enabled>
  144. <name>LOG_FIELD</name>
  145. </field>
  146. <field>
  147. <id>EXECUTING_SERVER</id>
  148. <enabled>N</enabled>
  149. <name>EXECUTING_SERVER</name>
  150. </field>
  151. <field>
  152. <id>EXECUTING_USER</id>
  153. <enabled>N</enabled>
  154. <name>EXECUTING_USER</name>
  155. </field>
  156. <field>
  157. <id>CLIENT</id>
  158. <enabled>N</enabled>
  159. <name>CLIENT</name>
  160. </field>
  161. </trans-log-table>
  162. <perf-log-table>
  163. <connection/>
  164. <schema/>
  165. <table/>
  166. <interval/>
  167. <timeout_days/>
  168. <field>
  169. <id>ID_BATCH</id>
  170. <enabled>Y</enabled>
  171. <name>ID_BATCH</name>
  172. </field>
  173. <field>
  174. <id>SEQ_NR</id>
  175. <enabled>Y</enabled>
  176. <name>SEQ_NR</name>
  177. </field>
  178. <field>
  179. <id>LOGDATE</id>
  180. <enabled>Y</enabled>
  181. <name>LOGDATE</name>
  182. </field>
  183. <field>
  184. <id>TRANSNAME</id>
  185. <enabled>Y</enabled>
  186. <name>TRANSNAME</name>
  187. </field>
  188. <field>
  189. <id>STEPNAME</id>
  190. <enabled>Y</enabled>
  191. <name>STEPNAME</name>
  192. </field>
  193. <field>
  194. <id>STEP_COPY</id>
  195. <enabled>Y</enabled>
  196. <name>STEP_COPY</name>
  197. </field>
  198. <field>
  199. <id>LINES_READ</id>
  200. <enabled>Y</enabled>
  201. <name>LINES_READ</name>
  202. </field>
  203. <field>
  204. <id>LINES_WRITTEN</id>
  205. <enabled>Y</enabled>
  206. <name>LINES_WRITTEN</name>
  207. </field>
  208. <field>
  209. <id>LINES_UPDATED</id>
  210. <enabled>Y</enabled>
  211. <name>LINES_UPDATED</name>
  212. </field>
  213. <field>
  214. <id>LINES_INPUT</id>
  215. <enabled>Y</enabled>
  216. <name>LINES_INPUT</name>
  217. </field>
  218. <field>
  219. <id>LINES_OUTPUT</id>
  220. <enabled>Y</enabled>
  221. <name>LINES_OUTPUT</name>
  222. </field>
  223. <field>
  224. <id>LINES_REJECTED</id>
  225. <enabled>Y</enabled>
  226. <name>LINES_REJECTED</name>
  227. </field>
  228. <field>
  229. <id>ERRORS</id>
  230. <enabled>Y</enabled>
  231. <name>ERRORS</name>
  232. </field>
  233. <field>
  234. <id>INPUT_BUFFER_ROWS</id>
  235. <enabled>Y</enabled>
  236. <name>INPUT_BUFFER_ROWS</name>
  237. </field>
  238. <field>
  239. <id>OUTPUT_BUFFER_ROWS</id>
  240. <enabled>Y</enabled>
  241. <name>OUTPUT_BUFFER_ROWS</name>
  242. </field>
  243. </perf-log-table>
  244. <channel-log-table>
  245. <connection/>
  246. <schema/>
  247. <table/>
  248. <timeout_days/>
  249. <field>
  250. <id>ID_BATCH</id>
  251. <enabled>Y</enabled>
  252. <name>ID_BATCH</name>
  253. </field>
  254. <field>
  255. <id>CHANNEL_ID</id>
  256. <enabled>Y</enabled>
  257. <name>CHANNEL_ID</name>
  258. </field>
  259. <field>
  260. <id>LOG_DATE</id>
  261. <enabled>Y</enabled>
  262. <name>LOG_DATE</name>
  263. </field>
  264. <field>
  265. <id>LOGGING_OBJECT_TYPE</id>
  266. <enabled>Y</enabled>
  267. <name>LOGGING_OBJECT_TYPE</name>
  268. </field>
  269. <field>
  270. <id>OBJECT_NAME</id>
  271. <enabled>Y</enabled>
  272. <name>OBJECT_NAME</name>
  273. </field>
  274. <field>
  275. <id>OBJECT_COPY</id>
  276. <enabled>Y</enabled>
  277. <name>OBJECT_COPY</name>
  278. </field>
  279. <field>
  280. <id>REPOSITORY_DIRECTORY</id>
  281. <enabled>Y</enabled>
  282. <name>REPOSITORY_DIRECTORY</name>
  283. </field>
  284. <field>
  285. <id>FILENAME</id>
  286. <enabled>Y</enabled>
  287. <name>FILENAME</name>
  288. </field>
  289. <field>
  290. <id>OBJECT_ID</id>
  291. <enabled>Y</enabled>
  292. <name>OBJECT_ID</name>
  293. </field>
  294. <field>
  295. <id>OBJECT_REVISION</id>
  296. <enabled>Y</enabled>
  297. <name>OBJECT_REVISION</name>
  298. </field>
  299. <field>
  300. <id>PARENT_CHANNEL_ID</id>
  301. <enabled>Y</enabled>
  302. <name>PARENT_CHANNEL_ID</name>
  303. </field>
  304. <field>
  305. <id>ROOT_CHANNEL_ID</id>
  306. <enabled>Y</enabled>
  307. <name>ROOT_CHANNEL_ID</name>
  308. </field>
  309. </channel-log-table>
  310. <step-log-table>
  311. <connection/>
  312. <schema/>
  313. <table/>
  314. <timeout_days/>
  315. <field>
  316. <id>ID_BATCH</id>
  317. <enabled>Y</enabled>
  318. <name>ID_BATCH</name>
  319. </field>
  320. <field>
  321. <id>CHANNEL_ID</id>
  322. <enabled>Y</enabled>
  323. <name>CHANNEL_ID</name>
  324. </field>
  325. <field>
  326. <id>LOG_DATE</id>
  327. <enabled>Y</enabled>
  328. <name>LOG_DATE</name>
  329. </field>
  330. <field>
  331. <id>TRANSNAME</id>
  332. <enabled>Y</enabled>
  333. <name>TRANSNAME</name>
  334. </field>
  335. <field>
  336. <id>STEPNAME</id>
  337. <enabled>Y</enabled>
  338. <name>STEPNAME</name>
  339. </field>
  340. <field>
  341. <id>STEP_COPY</id>
  342. <enabled>Y</enabled>
  343. <name>STEP_COPY</name>
  344. </field>
  345. <field>
  346. <id>LINES_READ</id>
  347. <enabled>Y</enabled>
  348. <name>LINES_READ</name>
  349. </field>
  350. <field>
  351. <id>LINES_WRITTEN</id>
  352. <enabled>Y</enabled>
  353. <name>LINES_WRITTEN</name>
  354. </field>
  355. <field>
  356. <id>LINES_UPDATED</id>
  357. <enabled>Y</enabled>
  358. <name>LINES_UPDATED</name>
  359. </field>
  360. <field>
  361. <id>LINES_INPUT</id>
  362. <enabled>Y</enabled>
  363. <name>LINES_INPUT</name>
  364. </field>
  365. <field>
  366. <id>LINES_OUTPUT</id>
  367. <enabled>Y</enabled>
  368. <name>LINES_OUTPUT</name>
  369. </field>
  370. <field>
  371. <id>LINES_REJECTED</id>
  372. <enabled>Y</enabled>
  373. <name>LINES_REJECTED</name>
  374. </field>
  375. <field>
  376. <id>ERRORS</id>
  377. <enabled>Y</enabled>
  378. <name>ERRORS</name>
  379. </field>
  380. <field>
  381. <id>LOG_FIELD</id>
  382. <enabled>N</enabled>
  383. <name>LOG_FIELD</name>
  384. </field>
  385. </step-log-table>
  386. <metrics-log-table>
  387. <connection/>
  388. <schema/>
  389. <table/>
  390. <timeout_days/>
  391. <field>
  392. <id>ID_BATCH</id>
  393. <enabled>Y</enabled>
  394. <name>ID_BATCH</name>
  395. </field>
  396. <field>
  397. <id>CHANNEL_ID</id>
  398. <enabled>Y</enabled>
  399. <name>CHANNEL_ID</name>
  400. </field>
  401. <field>
  402. <id>LOG_DATE</id>
  403. <enabled>Y</enabled>
  404. <name>LOG_DATE</name>
  405. </field>
  406. <field>
  407. <id>METRICS_DATE</id>
  408. <enabled>Y</enabled>
  409. <name>METRICS_DATE</name>
  410. </field>
  411. <field>
  412. <id>METRICS_CODE</id>
  413. <enabled>Y</enabled>
  414. <name>METRICS_CODE</name>
  415. </field>
  416. <field>
  417. <id>METRICS_DESCRIPTION</id>
  418. <enabled>Y</enabled>
  419. <name>METRICS_DESCRIPTION</name>
  420. </field>
  421. <field>
  422. <id>METRICS_SUBJECT</id>
  423. <enabled>Y</enabled>
  424. <name>METRICS_SUBJECT</name>
  425. </field>
  426. <field>
  427. <id>METRICS_TYPE</id>
  428. <enabled>Y</enabled>
  429. <name>METRICS_TYPE</name>
  430. </field>
  431. <field>
  432. <id>METRICS_VALUE</id>
  433. <enabled>Y</enabled>
  434. <name>METRICS_VALUE</name>
  435. </field>
  436. </metrics-log-table>
  437. </log>
  438. <maxdate>
  439. <connection/>
  440. <table/>
  441. <field/>
  442. <offset>0.0</offset>
  443. <maxdiff>0.0</maxdiff>
  444. </maxdate>
  445. <size_rowset>10000</size_rowset>
  446. <sleep_time_empty>50</sleep_time_empty>
  447. <sleep_time_full>50</sleep_time_full>
  448. <unique_connections>N</unique_connections>
  449. <feedback_shown>Y</feedback_shown>
  450. <feedback_size>50000</feedback_size>
  451. <using_thread_priorities>Y</using_thread_priorities>
  452. <shared_objects_file/>
  453. <capture_step_performance>N</capture_step_performance>
  454. <step_performance_capturing_delay>1000</step_performance_capturing_delay>
  455. <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
  456. <dependencies>
  457. </dependencies>
  458. <partitionschemas>
  459. </partitionschemas>
  460. <slaveservers>
  461. </slaveservers>
  462. <clusterschemas>
  463. </clusterschemas>
  464. <created_user>-</created_user>
  465. <created_date>2020/07/21 16:12:38.197</created_date>
  466. <modified_user>-</modified_user>
  467. <modified_date>2020/07/21 16:12:38.197</modified_date>
  468. <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
  469. <is_key_private>N</is_key_private>
  470. </info>
  471. <notepads>
  472. </notepads>
  473. <connection>
  474. <name>child</name>
  475. <server>${out_db_ip}</server>
  476. <type>MYSQL</type>
  477. <access>Native</access>
  478. <database>${out_db_name}</database>
  479. <port>${out_db_port}</port>
  480. <username>${out_db_username}</username>
  481. <password>${out_db_pwd}</password>
  482. <servername/>
  483. <data_tablespace/>
  484. <index_tablespace/>
  485. <attributes>
  486. <attribute>
  487. <code>EXTRA_OPTION_MYSQL.characterEncoding</code>
  488. <attribute>UTF-8</attribute>
  489. </attribute>
  490. <attribute>
  491. <code>EXTRA_OPTION_MYSQL.defaultFetchSize</code>
  492. <attribute>500</attribute>
  493. </attribute>
  494. <attribute>
  495. <code>EXTRA_OPTION_MYSQL.rewriteBatchedStatements</code>
  496. <attribute>true</attribute>
  497. </attribute>
  498. <attribute>
  499. <code>EXTRA_OPTION_MYSQL.useCompression </code>
  500. <attribute>true</attribute>
  501. </attribute>
  502. <attribute>
  503. <code>EXTRA_OPTION_MYSQL.useCursorFetch</code>
  504. <attribute>true</attribute>
  505. </attribute>
  506. <attribute>
  507. <code>EXTRA_OPTION_MYSQL.useServerPrepStmts </code>
  508. <attribute>false</attribute>
  509. </attribute>
  510. <attribute>
  511. <code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
  512. <attribute>N</attribute>
  513. </attribute>
  514. <attribute>
  515. <code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
  516. <attribute>N</attribute>
  517. </attribute>
  518. <attribute>
  519. <code>IS_CLUSTERED</code>
  520. <attribute>N</attribute>
  521. </attribute>
  522. <attribute>
  523. <code>PORT_NUMBER</code>
  524. <attribute>${out_db_port}</attribute>
  525. </attribute>
  526. <attribute>
  527. <code>PRESERVE_RESERVED_WORD_CASE</code>
  528. <attribute>Y</attribute>
  529. </attribute>
  530. <attribute>
  531. <code>QUOTE_ALL_FIELDS</code>
  532. <attribute>N</attribute>
  533. </attribute>
  534. <attribute>
  535. <code>STREAM_RESULTS</code>
  536. <attribute>Y</attribute>
  537. </attribute>
  538. <attribute>
  539. <code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
  540. <attribute>Y</attribute>
  541. </attribute>
  542. <attribute>
  543. <code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
  544. <attribute>Y</attribute>
  545. </attribute>
  546. <attribute>
  547. <code>USE_POOLING</code>
  548. <attribute>N</attribute>
  549. </attribute>
  550. </attributes>
  551. </connection>
  552. <order>
  553. <hop>
  554. <from>MongoDB input</from>
  555. <to>更新</to>
  556. <enabled>Y</enabled>
  557. </hop>
  558. </order>
  559. <step>
  560. <name>MongoDB input</name>
  561. <type>MongoDbInput</type>
  562. <description/>
  563. <distribute>Y</distribute>
  564. <custom_distribution/>
  565. <copies>1</copies>
  566. <partitioning>
  567. <method>none</method>
  568. <schema_name/>
  569. </partitioning>
  570. <hostname>${input_db_ip}</hostname>
  571. <port>${input_db_port}</port>
  572. <use_all_replica_members>N</use_all_replica_members>
  573. <db_name>info_admin</db_name>
  574. <fields_name/>
  575. <collection>family</collection>
  576. <json_field_name>json</json_field_name>
  577. <json_query> {$project:{
  578. child:{
  579. $cond:
  580. [{ $ne: [{ $ifNull: [ '$openId', [] ] }, [] ] }, 0, 1 ],
  581. }
  582. }},
  583. {$match:{child:0}}
  584. }
  585. }</json_query>
  586. <auth_database/>
  587. <auth_user/>
  588. <auth_password>Encrypted </auth_password>
  589. <auth_mech/>
  590. <auth_kerberos>N</auth_kerberos>
  591. <connect_timeout/>
  592. <socket_timeout/>
  593. <use_ssl_socket_factory>N</use_ssl_socket_factory>
  594. <read_preference>primary</read_preference>
  595. <output_json>N</output_json>
  596. <query_is_pipeline>Y</query_is_pipeline>
  597. <execute_for_each_row>N</execute_for_each_row>
  598. <mongo_fields>
  599. <mongo_field>
  600. <field_name>_id</field_name>
  601. <field_path>$._id</field_path>
  602. <field_type>String</field_type>
  603. </mongo_field>
  604. <mongo_field>
  605. <field_name>child</field_name>
  606. <field_path>$.child</field_path>
  607. <field_type>Integer</field_type>
  608. </mongo_field>
  609. <mongo_field>
  610. <field_name>dept1</field_name>
  611. <field_path>$.dept1</field_path>
  612. <field_type>String</field_type>
  613. </mongo_field>
  614. </mongo_fields>
  615. <attributes/>
  616. <cluster_schema/>
  617. <remotesteps>
  618. <input>
  619. </input>
  620. <output>
  621. </output>
  622. </remotesteps>
  623. <GUI>
  624. <xloc>200</xloc>
  625. <yloc>100</yloc>
  626. <draw>Y</draw>
  627. </GUI>
  628. </step>
  629. <step>
  630. <name>更新</name>
  631. <type>Update</type>
  632. <description/>
  633. <distribute>Y</distribute>
  634. <custom_distribution/>
  635. <copies>1</copies>
  636. <partitioning>
  637. <method>none</method>
  638. <schema_name/>
  639. </partitioning>
  640. <connection>child</connection>
  641. <skip_lookup>N</skip_lookup>
  642. <commit>100</commit>
  643. <use_batch>Y</use_batch>
  644. <error_ignored>Y</error_ignored>
  645. <ignore_flag_field/>
  646. <lookup>
  647. <schema>ry</schema>
  648. <table>info</table>
  649. <key>
  650. <name>_id</name>
  651. <field>fid</field>
  652. <condition>=</condition>
  653. <name2/>
  654. </key>
  655. <value>
  656. <name>child</name>
  657. <rename>child</rename>
  658. </value>
  659. </lookup>
  660. <attributes/>
  661. <cluster_schema/>
  662. <remotesteps>
  663. <input>
  664. </input>
  665. <output>
  666. </output>
  667. </remotesteps>
  668. <GUI>
  669. <xloc>448</xloc>
  670. <yloc>96</yloc>
  671. <draw>Y</draw>
  672. </GUI>
  673. </step>
  674. <step_error_handling>
  675. </step_error_handling>
  676. <slave-step-copy-partition-distribution>
  677. </slave-step-copy-partition-distribution>
  678. <slave_transformation>N</slave_transformation>
  679. <attributes/>
  680. </transformation>