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