腾讯云提示invalid pos, pos is bigger than filesize! pos: 0, file_size: 0错误
起因
使用hdfs dfs -text xxx
命令提示下面错误,使用ls
可以看到其文件大小为0
```slf4j: see http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
17/11/23 11:30:39 INFO cosnative.NativeCosFileSystem: Opening ‘cosn://abc/_TEST‘ for reading
17/11/23 11:30:39 ERROR cosnative.NativeCosFileSystem: invalid pos, pos is bigger than filesize! pos: 0, file_size: 0
text: invalid pos, pos is bigger than filesize! pos: 0, file_size: 0
```
后续
出于好奇,尝试在Hadoop上创建了空文件,再使用text去查看内容,不会出现同样的问题
时间: 2024-10-10 15:22:45