You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2022/02/07 07:44:07 UTC

[hop] branch master updated: [DOC] add Register Pipeline example

This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 0fea586  [DOC] add Register Pipeline example
     new 4148f76  Merge pull request #1338 from hansva/master
0fea586 is described below

commit 0fea58677ed03f7d74267889bed2ab7c6dcd6c35
Author: Hans Van Akelyen <ha...@gmail.com>
AuthorDate: Mon Feb 7 08:41:33 2022 +0100

    [DOC] add Register Pipeline example
---
 .../modules/ROOT/pages/hop-server/rest-api.adoc    | 182 ++++++++++++++++++++-
 1 file changed, 181 insertions(+), 1 deletion(-)

diff --git a/docs/hop-user-manual/modules/ROOT/pages/hop-server/rest-api.adoc b/docs/hop-user-manual/modules/ROOT/pages/hop-server/rest-api.adoc
index 444e686..ab80608 100644
--- a/docs/hop-user-manual/modules/ROOT/pages/hop-server/rest-api.adoc
+++ b/docs/hop-user-manual/modules/ROOT/pages/hop-server/rest-api.adoc
@@ -93,6 +93,7 @@ example request::
 `+http://localhost:8081/hop/addWorkflow/xml=Y+` with XML payload
 
 result::
+-
 
 == getPipelineImage
 
@@ -308,9 +309,188 @@ parameters::
 * xml Request body should contain xml containing pipeline_configuration (pipeline and pipeline_execution_configuration wrapped in pipeline_configuration tag).
 
 example request::
-`+http://localhost:8081/hop/registerPipeline/xml=Y+` with XML payload
+`+http://localhost:8081/hop/registerPipeline/xml=Y+`
+
+with XML payload (example):
+[source,xml]
+----
+<pipeline_configuration>
+<pipeline>
+  <info>
+    <name>generate_rows</name>
+    <name_sync_with_filename>Y</name_sync_with_filename>
+    <description/>
+    <extended_description/>
+    <pipeline_version/>
+    <pipeline_type>Normal</pipeline_type>
+    <parameters>
+    </parameters>
+    <capture_transform_performance>N</capture_transform_performance>
+    <transform_performance_capturing_delay>1000</transform_performance_capturing_delay>
+    <transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit>
+    <created_user>-</created_user>
+    <created_date>2022/02/03 13:47:49.645</created_date>
+    <modified_user>-</modified_user>
+    <modified_date>2022/02/03 13:47:49.645</modified_date>
+    <key_for_session_key>H4sIAAAAAAAA/wMAAAAAAAAAAAA=</key_for_session_key>
+    <is_key_private>N</is_key_private>
+  </info>
+  <notepads>
+  </notepads>
+  <order>
+    <hop>
+      <from>Generate rows</from>
+      <to>Delay row</to>
+      <enabled>Y</enabled>
+    </hop>
+    <hop>
+      <from>Delay row</from>
+      <to>result</to>
+      <enabled>Y</enabled>
+    </hop>
+  </order>
+  <transform>
+    <name>Delay row</name>
+    <type>Delay</type>
+    <description/>
+    <distribute>Y</distribute>
+    <custom_distribution/>
+    <copies>1</copies>
+    <partitioning>
+      <method>none</method>
+      <schema_name/>
+    </partitioning>
+    <scaletime>seconds</scaletime>
+    <timeout>1</timeout>
+    <attributes/>
+    <GUI>
+      <xloc>416</xloc>
+      <yloc>96</yloc>
+    </GUI>
+  </transform>
+  <transform>
+    <name>Generate rows</name>
+    <type>RowGenerator</type>
+    <description/>
+    <distribute>Y</distribute>
+    <custom_distribution/>
+    <copies>1</copies>
+    <partitioning>
+      <method>none</method>
+      <schema_name/>
+    </partitioning>
+    <fields>
+      <field>
+        <length>-1</length>
+        <name>value</name>
+        <precision>-1</precision>
+        <set_empty_string>N</set_empty_string>
+        <type>String</type>
+        <nullif>test</nullif>
+      </field>
+    </fields>
+    <interval_in_ms>5000</interval_in_ms>
+    <last_time_field>FiveSecondsAgo</last_time_field>
+    <never_ending>N</never_ending>
+    <limit>10000</limit>
+    <row_time_field>now</row_time_field>
+    <attributes/>
+    <GUI>
+      <xloc>160</xloc>
+      <yloc>96</yloc>
+    </GUI>
+  </transform>
+  <transform>
+    <name>result</name>
+    <type>Dummy</type>
+    <description/>
+    <distribute>Y</distribute>
+    <custom_distribution/>
+    <copies>1</copies>
+    <partitioning>
+      <method>none</method>
+      <schema_name/>
+    </partitioning>
+    <attributes/>
+    <GUI>
+      <xloc>720</xloc>
+      <yloc>96</yloc>
+    </GUI>
+  </transform>
+  <transform_error_handling>
+  </transform_error_handling>
+  <attributes/>
+</pipeline>
+  <pipeline_execution_configuration>
+    <pass_export>N</pass_export>
+    <parameters>
+    </parameters>
+    <variables>
+    <variable><name>HOP_AUDIT_FOLDER</name><value>/Users/hans/config/audit</value></variable>
+    <variable><name>HOP_AUTO_CREATE_CONFIG</name><value>Y</value></variable>
+    <variable><name>HOP_CONFIG_FOLDER</name><value>/Users/hans/config</value></variable>
+    <variable><name>HOP_DATASETS_FOLDER</name><value>/Users/hans/test/datasets</value></variable>
+    <variable><name>HOP_ENVIRONMENT_NAME</name><value>test1</value></variable>
+    <variable><name>HOP_METADATA_FOLDER</name><value>/Users/hans/test/metadata</value></variable>
+    <variable><name>HOP_PIPELINE_PAN_JVM_EXIT_CODE</name><value/></variable>
+    <variable><name>HOP_PROJECTS</name><value>/Users/hans/tmp/</value></variable>
+    <variable><name>HOP_PROJECT_NAME</name><value>test</value></variable>
+    <variable><name>HOP_UNIT_TESTS_FOLDER</name><value>/Users/hans/test</value></variable>
+    <variable><name>NEO4J_CONNECTION</name><value>neo4j</value></variable>
+    <variable><name>PROJECT_HOME</name><value>/Users/hans/test</value></variable>
+    <variable><name>TEST</name><value>TEST</value></variable>
+    <variable><name>ftp.nonProxyHosts</name><value>local|*.local|169.254/16|*.169.254/16</value></variable>
+    <variable><name>http.nonProxyHosts</name><value>local|*.local|169.254/16|*.169.254/16</value></variable>
+    <variable><name>jdk.debug</name><value>release</value></variable>
+    <variable><name>native.encoding</name><value>UTF-8</value></variable>
+    <variable><name>p1</name><value>a</value></variable>
+    <variable><name>socksNonProxyHosts</name><value>local|*.local|169.254/16|*.169.254/16</value></variable>
+    </variables>
+    <log_level>Basic</log_level>
+    <log_file>N</log_file>
+    <log_filename/>
+    <log_file_append>N</log_file_append>
+    <create_parent_folder>N</create_parent_folder>
+    <clear_log>Y</clear_log>
+    <show_subcomponents>Y</show_subcomponents>
+    <run_configuration>local</run_configuration>
+</pipeline_execution_configuration>
+<metastore_json>H4sIAAAAAAAA/+1XbVPbOBD+Kxl/upshzQsUAt/SxBzchSRNTDudpuNRZNlRkSVXkgk5hv9+K0t+
+CSl3cDP37coH8Gq1evTs7rPqo6eIvCfSu/j66G3JephlU5QS78Lzjjyl2EjwmCbeBc8ZKww3IoLV
+GDFFjrxMiofdXEht/TdCaW539/pn77rw0wNzhpTaChmB2edY7jJNolZ/Tc4HKMaDU4TO4j45wese
+Qv3T9zgyJjyAjVzwuTnhCuIqe4QArJJGxH+gSlOewHpGpKZENUE50w1Smkh7H3uBzGId9AYGmMPK
+ydZzd7mqbwCmHLhxX5jlJpb39A08aUYY5aQNW9aw+BVsOae6rYnS9lNG61QVnLq/Hr3ldPb5cjL8
+wzcfEdJojRSpuc5YnlB+bUiqPY88yiPyEKA1IypDuLrHFkmyEYDPbjbhDp0QxkSpYJeBpbuXnZeS
+4lUMVYgcwiUX25ihO2LKoqgY3qAVaS3pOtfE3vR2Pp8tgmUYXN/4y2B4Mw/Hw2AYBl/mcHnvC4T4
+eDsL/HA4mYSX1/5kvATzFMzVzg+z2cQfTg/2Xc4WIz+8HvvT4Bp2LuCMWTiZffYXo+HSd1HmC3/p
+Lz75ofs9Dj/PFuPQeZgwy4+TcDSbTv1RYO/607gA5nncS3+xgHjL0ZV/Mwynwxuz5j0deSniOWK3
+kh1Ujvf0VFVaQjiRFPdhR6My5rNl8Btg/Tj5SWlkkLVEArF7JdLY8mKNvLUomMCIme83tOzZOSa9
+bnR6fox6+Lwun/cnx/3nJTS3N7GY/6+ht9TQBnHVrKMsKYQIMnQXM7FtM5FY3cGQN8QjidpYcE6w
+poLbFU7Eyfd2IlG2aaeg4cyaQfLbJhfUVAjIlZZwVCxk6pI2ztN01/olEi0u9AYE91dAFlNGHJJV
+5xa2q1XHQFx1jAKuOqbyljbou03Gih2ERS7kPWK5kRFmFXypkc5r9XZxFUozRkK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</metastore_json>
+</pipeline_configuration>
+----
+
+The metastore_json is base64 encoded GZip content
+
 
 result::
+-
 
 == Register Workflow