Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/object-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ compatible replacements:
* [](/object-storage/file-system-azure)
* [](/object-storage/file-system-gcs)
* [](/object-storage/file-system-s3)
* [](/object-storage/file-system-local)
* [](/object-storage/file-system-alluxio)

The native support is available in all four connectors, and must be activated
Expand Down Expand Up @@ -101,6 +102,7 @@ storage:
/object-storage/file-system-azure
/object-storage/file-system-gcs
/object-storage/file-system-s3
/object-storage/file-system-local
/object-storage/file-system-hdfs
/object-storage/file-system-cache
/object-storage/file-system-alluxio
Expand Down
45 changes: 45 additions & 0 deletions docs/src/main/sphinx/object-storage/file-system-local.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Local file system support

Trino includes support to access a local file system with a catalog using the
Delta Lake, Hive, Hudi, or Iceberg connectors. The local file system must be a
local mount point for a shared file system available on all cluster nodes.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably would be good to detail what sort of file systems can be used here .. and how does that work with concurrent access from multiple workers .. will all that just work fine?


Support for local file system is not enabled by default, but can be activated by
setting the `fs.local.enabled` property to `true` in your catalog configuration
file.

## General configuration

Use the following properties to configure general aspects of local file system
support:

:::{list-table}
:widths: 40, 60
:header-rows: 1

* - Property
- Description
* - `fs.native-local.enabled`
- Activate the support for local file system access. Defaults to `false`. Set
to `true` to use local file system and enable all other properties.
* - `local.location`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if I dont read things in the code wrong .. the prefix is local or file .. and the property is location.. but there is no config class so I am entirely unsure

- Local path on all nodes to the root of the shared file system using the prefix
`local://` with the path to the mount point.

:::

The following example displays the related section from a
`etc/catalog/example.properties` catalog configuration using the Hive connector.
The coordinator and all workers nodes have an external storage mounted at
`/storage/datalake`, resulting in the location `local:///storage/datalake`.

```properties
connector.name=hive
...
fs.native-local.enabled=true
local.location=local:///storage/datalake
```

Creating a schema named `default` results in the path
`/storage/datalake/default`. Tables within that schema result in separated
directories such as `/storage/datalake/default/table1`.