Skip to content

Commit 7ebf80f

Browse files
PankajReidddddd
authored andcommitted
HBASE-22628 Document the custom WAL directory (hbase.wal.dir) usage
Signed-off-by Reid Chan <[email protected]>
1 parent 20ee7ab commit 7ebf80f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/main/asciidoc/_chapters/architecture.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,6 +2491,26 @@ For example: If source cluster FS client configurations are copied to the destin
24912491
24922492
NOTE: `DefaultSourceFSConfigurationProvider` supports only `xml` type files. It loads source cluster FS client configuration only once, so if source cluster FS client configuration files are updated, every peer(s) cluster RS must be restarted to reload the configuration.
24932493
2494+
[[arch.custom.wal.dir]]
2495+
=== Custom WAL Directory
2496+
HBASE-17437 added support for specifying a WAL directory outside the HBase root directory or even in a different FileSystem since 1.3.3/2.0+. Some FileSystems (such as Amazon S3) don’t support append or consistent writes, in such scenario WAL directory needs to be configured in a different FileSystem to avoid loss of writes.
2497+
2498+
Following configurations were added to accomplish this:
2499+
. `hbase.wal.dir`
2500+
+
2501+
This defines where the root WAL directory is located, could be on a different FileSystem than the root directory. WAL directory can not be set to a subdirectory of the root directory. The default value of this is the root directory if unset.
2502+
+
2503+
. `hbase.rootdir.perms`
2504+
+
2505+
Configures FileSystem permissions to set on the root directory. This is '700' by default.
2506+
+
2507+
. `hbase.wal.dir.perms`
2508+
+
2509+
Configures FileSystem permissions to set on the WAL directory FileSystem. This is '700' by default.
2510+
+
2511+
2512+
NOTE: While migrating to custom WAL dir (outside the HBase root directory or a different FileSystem) existing WAL files must be copied manually to new WAL dir, otherwise it may lead to data loss/inconsistency as HMaster has no information about previous WAL directory.
2513+
24942514
[[arch.hdfs]]
24952515
== HDFS
24962516

0 commit comments

Comments
 (0)