'Why after put command in HDFS the new file seems to be empty?

after several tries I figured out how to put a file from local sys to HDFS. I'm able to see the added files trough HDFS GUI. But the file seems to be empty even though has some dimension.

Command that I used to put file in HDFS:

hadoop fs -put /input.txt /input.txt

Here view from HADOOP GUI hadoop-gui

empty file

Even if I create other files, all of them have same dimension 340 B. What's wrong with this?

Thanks for your help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source