Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1511

Support the config resource Id parameter for creating JOB and LINK

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 2.0.0
    • None
    • None

    Description

      My biggest qualms was when using the JSON api to post LINK and JOB.

      The post data has to meticulously include every single fields of the job config and all it inputs, I cant even by pass the optional ones, since there is some weird checking we do in the code. Yes it is pretty weird that we check that every non required field is in the POST data

      
          MLink postedLink = links.get(0);
          MLinkConfig linkConfig = ConnectorManager.getInstance()
              .getConnectorConfigurable(postedLink.getConnectorId()).getLinkConfig();
          if (!linkConfig.equals(postedLink.getConnectorLinkConfig())) {
            throw new SqoopException(ServerError.SERVER_0003, "Detected incorrect link config structure");
          }
       
      
      

      So I should be able to just add values to the config objects once and give that ID in the LINK and JOB creation

      NOTE: we do not allow creating configs and inputs from APIs/ command line. It is done via the code classes in the connectors and driver and it will remain so

      Attachments

        Activity

          People

            vybs Veena Basavaraj
            vybs Veena Basavaraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment