Reputation: 123
I have a file in hdfs and the contents of the file is just a single number 3 and the size of the file is 2bytes. it should be 1 byte right. I tried files with 5 numbers and it shows 6bytes. Its the same info in the linux as well command "ls -l"
Upvotes: 0
Views: 50
Reputation: 6857
You almost certainly have a newline character on the end of the file.
Use hexdump -C <filename>
if you want to see exactly what's in the file.
Upvotes: 1