Customer Portal

How to run execute remote calls or a remote script from the server

Comments 3

  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi,

    From the information you provided, I would recommend two better approaches then using a SystemExecute component to accomplish your use case.

    • DBInputTable component which uses the JDBC to connect to the database. In this case you would need to create a new JDBC connection in the Connections section of CloverETL Designer, you can read more about this here.

    • Bulk loader components (e.g. PostgreSQLDataWriter, MySQLDataWriter, etc.) which will use the native client to connect to the database.
  • Avatar
    paul.rego
    0
    Comment actions Permalink
    Thanks for the suggestions!

    First, we are using vertica. I dont believe there is a data writer.

    Some additional information, I'm trying to execute a bulk load with a compressed file which is not on the clover server. The remote server which has the compressed file, has the vertica client installed. We dont want to copy the file locally and the client is not installed on the clover server. Is there a component or combination of components which would facilitate the execution of the client remotely?
  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi,

    I would recommend that you use a combination of the UniversalDataReader and the DBOutputTable components. The following is the steps to accomplish this:

    • In the UniversalDataReader under File URL you will click on the Remote Files – Create/Edit URL, a window should pop up where you will enter the credentials for your remote server
    • After validating that the connection works you will be able to see all the files in the server and select the zip file (File URL should look something like zip:(sftp://someserver)#somefile.txt)
    • You should use DBOutputTable component which uses the JDBC to connect to the database. You will need to create a new JDBC connection in the Connections section of CloverETL Designer, you can read more about this here
    • Depending on the version of CloverETL you are running, the Vertica JDBC driver should be already included in the Database Connections section, in the case it’s not you can load the driver by clicking on the plus sign

Please sign in to leave a comment.