# Java HDFS-compatible API

For Java applications that expose a HDFS compatible API, such as Spark and Trino, Alluxio can be set as [the implementation of `org.apache.hadoop.fs.FileSystem`](https://cwiki.apache.org/confluence/display/HADOOP2/HCFS) to use for different schemes. By setting specific configurations and providing the required classes in the application classpath, it allows the application to transparently interface with Alluxio without the need to modify existing workflow code.

For specific instructions to integrate with a compatible application, see the corresponding installation documentation.

* [Trino](/ee-da-en/compute/trino-on-kubernetes.md)
* [Spark](/ee-da-en/compute/spark-on-kubernetes.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.alluxio.io/ee-da-en/data-access/java-hdfs-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
