Uploaded image for project: 'Apache Hop (Retired)'
  1. Apache Hop (Retired)
  2. HOP-2945

Parameters not being passed correctly to remote hop server

    XMLWordPrintableJSON

Details

    Description

      When running a pipeline to a remote hop server configuration parameter values are not being passed (correctly).

      If I have a simple pipeline with 3 parameters, P_1, P_2, P_3, with the defaults of 1,2,3 respectively when run configuration is set to remote pipeline, 1,2,3 is displayed regardless of whether an override value is set.

       

      Deeper investigation shows that pipeline_execution_configuration xml sent to the server as part of the POST /hop/registerPipeline/?xml=Y request shows that P_1, P_2, P_3 are being sent as variables rather than parameters.  I'm not sure whether this is the cause of the misalignment:

      <pipeline_execution_configuration>
          <pass_export>N</pass_export>
          <parameters>
          </parameters>
          <variables>
          <variable><name>HOP_DATASETS_FOLDER</name><value>C:\bizcubed\simple-hop-project/datasets</value></variable>
          <variable><name>HOP_ENVIRONMENT_NAME</name><value/></variable>
          <variable><name>HOP_METADATA_FOLDER</name><value>config/projects/default/metadata,C:\bizcubed\simple-hop-project/metadata</value></variable>
          <variable><name>HOP_PROJECT_NAME</name><value>Simple Hop Project</value></variable>
          <variable><name>HOP_UNIT_TESTS_FOLDER</name><value>C:\bizcubed\simple-hop-project</value></variable>
          <variable><name>PROJECT_HOME</name><value>C:\bizcubed\simple-hop-project</value></variable>
          <variable><name>P_1</name><value>Ilovehop</value></variable>
          <variable><name>P_2</name><value>Iloveapache</value></variable>
          <variable><name>P_3</name><value>bizcubed</value></variable>
          <variable><name>jdk.vendor.version</name><value>Zulu 8.54.0.21-CA-win64</value></variable>
          <variable><name>swt.autoScale</name><value>false</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>removed
      </metastore_json>
      

      Attachments

        1. simple-hop-project.zip
          7 kB
          John Ballment
        2. Screenshot 2021-06-11 171619.png
          46 kB
          John Ballment
        3. Screenshot 2021-06-11 171614.png
          33 kB
          John Ballment
        4. noname
          3 kB
          Diego Mainou

        Issue Links

          Activity

            People

              Unassigned Unassigned
              john.ballment John Ballment
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m