Skip to content

Commit 902a793

Browse files
authored
HADOOP-18128. Fix typo issues of outputstream.md (apache#4025)
1 parent 9e475ae commit 902a793

File tree

1 file changed

+6
-6
lines changed
  • hadoop-common-project/hadoop-common/src/site/markdown/filesystem

1 file changed

+6
-6
lines changed

hadoop-common-project/hadoop-common/src/site/markdown/filesystem/outputstream.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ or `FSDataOutputStreamBuilder.build()`.
4242
These all return instances of `FSDataOutputStream`, through which data
4343
can be written through various `write()` methods.
4444
After a stream's `close()` method is called, all data written to the
45-
stream MUST BE persisted to the fileysystem and visible to oll other
45+
stream MUST BE persisted to the filesystem and visible to oll other
4646
clients attempting to read data from that path via `FileSystem.open()`.
4747

4848
As well as operations to write the data, Hadoop's `OutputStream` implementations
@@ -126,7 +126,7 @@ consistent with the data at the filesystem.
126126

127127
The output stream returned from a call of
128128
`FileSystem.append(path, buffersize, progress)` within a filesystem `FS`,
129-
can be modelled as a stream whose `buffer` is intialized to that of
129+
can be modelled as a stream whose `buffer` is initialized to that of
130130
the original file:
131131

132132
```python
@@ -184,7 +184,7 @@ This document covers the requirements of such implementations.
184184

185185
HDFS's `FileSystem` implementation, `DistributedFileSystem`, returns an instance
186186
of `HdfsDataOutputStream`. This implementation has at least two behaviors
187-
which are not explicitly declared by the base Java implmentation
187+
which are not explicitly declared by the base Java implementation
188188

189189
1. Writes are synchronized: more than one thread can write to the same
190190
output stream. This is a use pattern which HBase relies on.
@@ -648,7 +648,7 @@ in production.
648648
1. `OutputStream.write()` MAY persist the data, synchronously or asynchronously
649649
1. `OutputStream.flush()` flushes data to the destination. There
650650
are no strict persistence requirements.
651-
1. `Syncable.hflush()` synchronously sends all outstaning data to the destination
651+
1. `Syncable.hflush()` synchronously sends all outstanding data to the destination
652652
filesystem. After returning to the caller, the data MUST be visible to other readers,
653653
it MAY be durable. That is: it does not have to be persisted, merely guaranteed
654654
to be consistently visible to all clients attempting to open a new stream reading
@@ -678,7 +678,7 @@ public void hflush() throws IOException {
678678
```
679679

680680
This is perfectly acceptable as an implementation: the semantics of `hflush()`
681-
are satisifed.
681+
are satisfied.
682682
What is not acceptable is downgrading `hsync()` to `hflush()`, as the durability guarantee is no longer met.
683683

684684

@@ -863,7 +863,7 @@ local data as can be written to full checksummed blocks of data.
863863
That is, the hsync/hflush operations are not guaranteed to write all the pending
864864
data until the file is finally closed.
865865

866-
For this reason, the local fileystem accessed via `file://` URLs
866+
For this reason, the local filesystem accessed via `file://` URLs
867867
does not support `Syncable` unless `setWriteChecksum(false)` was
868868
called on that FileSystem instance so as to disable checksum creation.
869869
After which, obviously, checksums are not generated for any file.

0 commit comments

Comments
 (0)