Write
The Write activity is used to write data to a specified file in HDFS.
General
The General tab has the following fields.
Input
The input of this activity varies depending on the data format you chose in the General tab. The following table specifies the possible input of the activity.
| Input Item | Data Type | Description |
|---|---|---|
| fileName | string | Specifies the path of the file to be written in. |
| fileContent | string | Specifies the content to be written in the file. |
| binaryData | base64
Binary |
Specifies the binary data to be written in the file. |
| sourceFile
Path |
string | Specifies the path of the file to be written. |
| inputStream
Object |
Object | Specifies the streaming object to be written. |
| overwrite | boolean | Specifies whether to overwrite the existing data in the source file. |
| blockSize | long | Specifies the block size of the file. The value in this field must be greater than 0. |
| replication | short | Specifies the number of replications of the file. The value in this field must be greater than 0. |
| permission | integer | Specifies the permission of the file. The value in this field must be in the range 0 to 777. |
| buffersize | integer | Specifies the size of the buffer used in transferring data. The value in this field must be greater than 0. |
Fault
The Fault tab lists the exceptions that can be thrown by this activity.
| HDFSException | Description |
|---|---|
| msg | The error message description returned by the plug-in. |
| msgCode | The error code returned by the plug-in. |
| exception | Occurs when the plug-in has internal errors. |
| message | The error message returned by the server. |
| javaClassName | The name of the Java Class where an error occurred. |
Copyright © Cloud Software Group, Inc. All Rights Reserved.
to select an HDFS Connection shared resource.