copy-from-ftp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
copy-from-ftp [2016/03/02 19:26]
dmtolpeko
copy-from-ftp [2016/03/02 20:01]
dmtolpeko
Line 11: Line 11:
 options: options:
   OVERWRITE | NEW   OVERWRITE | NEW
-  SESSIONS num 
   SUBDIR   SUBDIR
 +  SESSIONS num  ​
 </​code>​ </​code>​
  
 Notes: Notes:
-  * //host, user// and //pwd// specify the FTP host name, user name and password (identifier,​ string literal, variable or expression can be specified)+  * //host, user// and //pwd// specify the FTP host name, user name and password (identifier,​ string literal, variable or expression can be specified).
   * DIR option specifies the directory to get files, optional. If skipped, the current working FTP directory is used   * DIR option specifies the directory to get files, optional. If skipped, the current working FTP directory is used
-  * FILES option specifies a wildcard (Java regular expression) to choose which files to transfer. By default, all files from the specified directory are transferred +  * FILES option specifies a wildcard (Java regular expression) to choose which files to transfer. By default, all files from the specified directory are transferred. 
-  * LOCAL keyword means that files are copied to the local file system. By default files are copied to HDFS compatible file system+  * LOCAL keyword means that files are copied to the local file system. By default files are copied to HDFS compatible file system
 +  * OVERWRITE means that the existing files will be overwritten,​ this is the default. NEW means that only new files will be transferred,​ and existing files will be skipped. ​
   * SUBDIR option specifies to search files in sub-directories. By default, the command transfers files only from the directory specified by DIR option. ​   * SUBDIR option specifies to search files in sub-directories. By default, the command transfers files only from the directory specified by DIR option. ​
   * SESSIONS specifies the number of concurrent FTP sessions to transfer the files. Each session transfers the whole file. By default, files are copied in the single session.   * SESSIONS specifies the number of concurrent FTP sessions to transfer the files. Each session transfers the whole file. By default, files are copied in the single session.