Set an S3 Path in Forest Data Directory
- Last Updated: April 14, 2026
- 1 minute read
- MarkLogic Server
- Version 10.0
- Documentation
Set the data directory for the forest to a valid S3 path. For details on setting the forest data directory, see Creating a Forest in Administrate MarkLogic Server. Multiple forests can be configured for the same bucket.
The form of an S3 path is:
s3://bucket/directory/file
Where:
Item |
Description |
|---|---|
bucket |
The name of your S3 bucket. |
directory |
Zero or more directory names, separated by forward slashes (/). |
file |
The filename, if the path is to a specific file. |
For a directory path (such as a Forest data directory), then a bucket by itself is sufficient and files will be placed in the bucket root.
Example paths to S3 directories:
s3://my-company-bucket
s3://my-company-bucket/directory
s3://my-company-bucket/dir1/dir2/dir3
Example paths to S3 files:
s3://my-company-bucket/file.xml
s3://my-company-bucket/directory/file.txt
s3://my-company-bucket/dir1/dir2/dir3/file.txt
Warning:
Unless your S3 forest is configured with a fast data directory or updates allowed is set to read-only, you must set journaling on your database to off before attaching the forest to the database. Failure to do so will result in a forest error, and you will have to restart the forest after you have disabled journaling on the database.