File Output Transporter Module Configuration

The File Output transporter obtains data from the previous module specified in the adapter configuration file and writes it to local files. Set values for this transporter in the adapter configuration file.

XML Element Description
Dir

Type: string

(Required) Specify the absolute path to the data files that you want the adapter to write to. For example, <username>/<foldername>. The default value is ".", meaning the current directory in which the adapter is running.

To use Hadoop system files, use an HDFS folder instead of a local file system folder. For example, hdfs://<hdfsserver>:9000/<foldername>/<subfoldername>/<leaffoldername>.

To use Hadoop, download the binaries for Hadoop version 1.2.1 from http://hadoop.apache.org. Copy the hadoop-core .jar file (for example, for version 1.2.1 hadoop-core-1.2.1.jar) to %ESP_HOME%\ adapters\framework\libj. Ensure you use a stable version rather than a beta.

Use a forward slash for both UNIX and Windows paths.

File

Type: string

(Required) Specify the file to which the adapter writes.

AccessMode

Type: string

(Required) Specify an access mode:
  • rowBased – the adapter writes one text line at a time into the file.
  • Streaming – the adapter writes the raw data in ByteBuffer into the file.
No default value.
AppendMode

Type: boolean

(Optional) If set to true, the adapter appends the data into the existing file. If set to false, the adapter overwrites existing content in the file. Default value is false.