> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WebHDFS directory observations

> Mount one read-only directory through a fixed TLS WebHDFS gateway.

Use a gateway that serves the WebHDFS v1 API at `/webhdfs/v1` on its
reviewed HTTPS origin. It must accept a scoped bearer for `LISTSTATUS`,
`GETFILESTATUS` and `OPEN`, share stable file IDs and serve the requested
offset and length itself. The reader requires a direct response. A NameNode
redirect to a DataNode fails without following the redirect.

Follow the [file app mount guide](https://docs.bijection.com/integrations/native-sftp.md) and pass `webhdfsDirectory("hdfs.example.com:443", credential, label)` as
`provider`. Bind the receiver and the mount under the same `data` label, and
set the credential with `bijection secret set`.

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "protocol": "webhdfs",
  "directory": "incoming",
  "token": "<read-only gateway bearer>",
  "trustedCertificate": "<optional PEM trust anchor>"
}
```

Use an empty directory for the gateway root. The source reads regular files
in one flat directory. Records are keyed by relative file name. The cursor
resumes strictly after the last committed name. A listing can include up to
2,048 entries and 1 MiB of JSON. File ID, length and millisecond modification
time must match before and after each 24 KiB range. Files up to 1 MiB are
retained. Larger files receive metadata. Missing names never cause deletions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.