Github user fszabo2 commented on a diff in the pull request:

    https://github.com/apache/sqoop/pull/44#discussion_r175483531
  
    --- Diff: src/java/org/apache/sqoop/util/MainframeFTPClientUtils.java ---
    @@ -207,8 +208,18 @@ public static FTPClient getFTPConnection(Configuration 
conf)
             throw new IOException("Could not login to server " + server
                 + ":" + ftp.getReplyString());
           }
    -      // set ASCII transfer mode
    -      ftp.setFileType(FTP.ASCII_FILE_TYPE);
    +      // set transfer mode
    +      String transferMode = 
conf.get(MainframeConfiguration.MAINFRAME_FTP_TRANSFER_MODE);
    --- End diff --
    
    The whole getFTPConnection method is already very long and does a bunch of 
steps. You could consider refactoring it into smaller methods for readability.



---

Reply via email to