Item name | Required / Optional | Use of variables | Description | Remarks |
---|---|---|---|---|
Name | Required | Not available | Enter the name to show on the script canvas. | |
Input data | Required | Not available | Select the component on the script canvas. |
Item name | Required / Optional | Use of variables | Description | Remarks |
---|---|---|---|---|
Destination | Required | Not available | Select a global resource.
![]()
|
|
HDFS file Path | Required | Available | Enters HDFS file path. |
|
Column list | Optional | Not available | Specify the column.
Each column can be operated with the following buttons.
|
|
Column list/Column name | Required | Available | Input the name of the column.
You can set the first row of the file specified in [File] of property action of [Update column list] as the column name. |
|
Column list/Quotation | Optional | Not available | Select whether to enclose each column with double quotation.
|
Item name | Description | Remarks |
---|---|---|
Update column list | Set the first line of the file specified in [HDFS file Path] as the column name. |
|
Get column name from the first row | Select the file in the file Selectr and set the first line of the file as the column name. | |
Get column count | Select the file in the file Selectr and set the number of columns of the file as the number of columns of the column name. |
Item name | Required / Optional | Use of variables | Description | Remarks |
---|---|---|---|---|
Encoding | Required | Available | Select or input read file encode.
Use only the canonical name supported by Java SE Runtime Environment 8 when specifying the encoding directly in the field. ![]() |
|
Line Feed code | Optional | Not available | Select the Line Feed code.
|
|
Overwrite | Optional | Not available | Select whether to overwrite, if the specified file exists.
|
|
Additional writing | Optional | Not available | Select whether to add in the end of the file or to overwrite, if the specified file exists.
|
|
Insert column name in the first row | Optional | Not available | Select whether to insert the column name in the first row of the specified file.
|
|
Does not insert column name if a file exists | Optional | Not available | Select whether to insert column name to the first row of the result data, if the specified data exists.
|
|
Item name | Required / Optional | Use of variables | Description | Remarks |
---|---|---|---|---|
Comment | Optional | Not available | You can write a short description of this adapter. The description will be reflected in the specifications. |
Component variable name | Description | Remarks |
---|---|---|
count | Return number of read columns. |
|
filePath | Return file path of read file. |
|
message_category | Stroes the category to which corresponding message code belongs to, when an error occurs. |
|
message_code | Stores its corresponding message code of occured error. |
|
message_level | Stores the severity of the corresponding message code of the occured error. |
|
error_type | Returns the error type when error occurred. |
|
error_message | Return the error message when error occurred. |
|
error_trace | Return trace information when error occurred. |
|
Exception name | Causes | Solution |
---|---|---|
ResourceNotFoundException Resource definition is not found. Name:[] |
[Destination] is not specified. | Specify [Destination]. |
ResourceNotFoundException Resource definition is not found. Name:[<Global resource name>] |
Resource definition selected in [Destination] is not found. | Check the global resource specified in [Destination]. |
InputDataNotFoundException | [Input data] is not specified. | Specify [Input data], or draw a data flow. |
InvalidPropertyConfigurationException
<Property name> is not specified. |
[<Property name>] is not specified. | Specify [<Property name>]. |
FileExistsException | A file specified in [HDFS file path] already exists. | Edit the file name of [HDFS file path], or select [Overwrite] in [Write settings]. |
FileIsDirectoryException | The path input in [HDFS file path] is the directory. | Input the file path in [HDFS file path]. |
java.io.UnsupportedEncodingException | Encodes that are not supported in [Encode] is specified. | Specify the encodes that are supported in Java SE Runtime Environment 8.
![]() |
org.apache.hadoop.ipc.RemoteException io.bytes.per.checksum(512) and blockSize(<Numerical value of block size>) do not match. blockSize should be a multiple of io.bytes.per.checksum |
The value of [Block size] is not in multiples of io.bytes.per.checksum value of HDFS. | Check the value of [Block size] of the global resource specified in [Destination]. |