What happens,when client try to read from HDFS file already opened for writing?

Free Online Certification Courses – Learn Today. Lead Tomorrow. Forums Apache Hadoop What happens,when client try to read from HDFS file already opened for writing?

Viewing 1 reply thread
  • Author
    Posts
    • #4964
      DataFlair TeamDataFlair Team
      Spectator

      Does HDFS allow a client to read a file which is already opened for writing?

    • #4965
      DataFlair TeamDataFlair Team
      Spectator

      It depend upon the block size, Lets say 500MB of file is uploading in HDFS and 100 MB of data is uploaded successfully. At this time client is trying to read the file. Now lets say you have 64 MB of block size. It means 1 block is uploaded successfully. So this block is available for client and another block will be available when its uploaded to HDFS successfully.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.