mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 07:10:23 +08:00
commit
3000483701
@ -172,14 +172,14 @@ HdfsReader实现了从Hadoop分布式文件系统Hdfs中读取文件数据并转
|
|||||||
用户可以指定Column字段信息,配置如下:
|
用户可以指定Column字段信息,配置如下:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type": "long",
|
"type": "long",
|
||||||
"index": 0 //从本地文件文本第一列获取int字段
|
"index": 0 //从本地文件文本第一列获取int字段
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"value": "alibaba" //HdfsReader内部生成alibaba的字符串字段作为当前字段
|
"value": "alibaba" //HdfsReader内部生成alibaba的字符串字段作为当前字段
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
对于用户指定Column信息,type必须填写,index/value必须选择其一。
|
对于用户指定Column信息,type必须填写,index/value必须选择其一。
|
||||||
|
Loading…
Reference in New Issue
Block a user