Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#4962] feat(trino-connector): Support the Trino cascading connector #4935

Merged
merged 6 commits into from
Sep 25, 2024

Conversation

diqiu50
Copy link
Contributor

@diqiu50 diqiu50 commented Sep 13, 2024

What changes were proposed in this pull request?

Support the Trino cascading connector

Why are the changes needed?

Fix: #4962

Does this PR introduce any user-facing change?

No

How was this patch tested?

Add some ut and Manually test

@diqiu50 diqiu50 changed the title [TEST] Support the Trino cascading connector [#4962] feat(trino-connector): Support the Trino cascading connector Sep 19, 2024
@diqiu50 diqiu50 requested a review from yuqi1129 September 23, 2024 09:26
docs/trino-connector/trino-cascading-query.md Outdated Show resolved Hide resolved
docs/trino-connector/trino-cascading-query.md Outdated Show resolved Hide resolved
docs/trino-connector/trino-cascading-query.md Outdated Show resolved Hide resolved
Normally, the directory location is `Trino-server-<version>/plugin`, and the directory contains other catalogs used by Trino.

Ensure that the `plugin` directory contains `gravitino` and
`trino` subdirectories. Two Trino clusters need to be deployed on machines with hostnames `c1-trino` and `c2-trino`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Two Trino clusters need to be deployed on machines with hostnames c1-trino and c2-trino.

I believe what you want to express is that Assuming the hostnames of the machines in which the two Trino cluster deployed are c1-trinoandc2-trino``.

The hostname should not necessarily be c1-trino and c2-trino, so other name is okay, is that right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

Comment on lines 45 to 55
```bash
docker run --name c1-trino -d -p 8080:8080 <image-name> -v `gravitino-trino-connector-<version>`:/usr/lib/trino/plugin/gravitino
-v `gravitino-trino-cascading-connector-<version>`:/usr/lib/trino/plugin/trino
```

To start Trino on the host `c2-trino` and mount the plugins. execute the following command:

```bash
docker run --name c1-trino -d -p 8080:8080 <image-name> -v `gravitino-trino-connector-<version>`:/usr/lib/trino/plugin/gravitino
-v `gravitino-trino-cascading-connector-<version>`:/usr/lib/trino/plugin/trino
```
Copy link
Contributor

Choose a reason for hiding this comment

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

You can merge them as

docker run --name {machine_hostname} -d -p 8080:8080 <image-name> -v `gravitino-trino-connector-<version>`:/usr/lib/trino/plugin/gravitino   
-v `gravitino-trino-cascading-connector-<version>`:/usr/lib/trino/plugin/trino

docs/trino-connector/trino-cascading-query.md Outdated Show resolved Hide resolved
@diqiu50 diqiu50 self-assigned this Sep 24, 2024

## Deploying Trino

To set up the Trino cascading query environment, you should first deploy at least two Trino environments.
Copy link
Contributor

Choose a reason for hiding this comment

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

@mchades Please also take a look.

Copy link
Contributor

@mchades mchades left a comment

Choose a reason for hiding this comment

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

Overall LGTM.

@yuqi1129 yuqi1129 merged commit eaffd52 into apache:main Sep 25, 2024
23 checks passed
@diqiu50 diqiu50 deleted the t2t-connector branch September 26, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Support the Trino cascading connector
3 participants