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

[#789] Add getting started documentation #869

Merged
merged 7 commits into from
Dec 8, 2023

Conversation

justinmclean
Copy link
Member

What changes were proposed in this pull request?

Add documentation so people can easily get started with Gravinito.

Why are the changes needed?

To help people get started.

Fix: #789

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

Doc follows doc style.

@justinmclean justinmclean self-assigned this Nov 29, 2023
Copy link

github-actions bot commented Nov 29, 2023

Code Coverage Report

Overall Project 65.78% 🟢

There is no coverage information present for the Files changed

4. Install the required Java Development Kits for Gravitino:

```shell
sudo apt install openjdk-17-jdk-headless
Copy link
Contributor

Choose a reason for hiding this comment

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

After #868 is merged, we no longer need to manually install the JDK.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is not correct you do still need to install Java. I tried this out on latest main and got:
./gradlew build
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

Copy link
Member Author

Choose a reason for hiding this comment

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

So tested on a clean box and you still need one version of java installed. Updated guide to match that.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, let me give it a try.

Copy link
Contributor

@yuqi1129 yuqi1129 Nov 30, 2023

Choose a reason for hiding this comment

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

@justinmclean
Maybe we should add some explanation that the minimum JDK version is JDK8, I see you only have the sentence

Copy link
Contributor

Choose a reason for hiding this comment

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

  1. You need one version of JDK to start gradle (any version >= 8 is ok).
  2. You don't need to install JDK8 and 17 manually to build Gravitino, Gravitino gradle plugin will download them automatically if not installed.
  3. Currently, Gravitino can only work with JDK8, so if you want to run Gravitino please use JDK8.
  4. For the code format issue, please update the Gravitino code to the latest, I've fixed this issue.

Copy link
Member Author

Choose a reason for hiding this comment

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

Lastest Gravitino is still failing due to #879

Copy link
Member Author

Choose a reason for hiding this comment

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

From my testing, any version of the JDK is not correct. For instance, JDK21 currently fails. I've gone with JDK8 in these instructions as that is one that is needed. Is there anything else that needs to be updated?

Copy link
Contributor

Choose a reason for hiding this comment

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

@justinmclean

For instance, JDK21 currently fails

Can you show me your local environment? We need to fix it if so.

Copy link
Member Author

Choose a reason for hiding this comment

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

See #906 I can reproduce it on ubuntu on AWS as well.

@jerryshao
Copy link
Contributor

I think the doc should reflect the latest code, not still using 0.2.0.

@justinmclean
Copy link
Member Author

The doc does reflect the latest code. 0.2.0. is the last release we have, so it's mentioned in that content if you want to install it from a release.

@jerryshao jerryshao closed this Dec 4, 2023
@jerryshao jerryshao reopened this Dec 4, 2023
@justinmclean
Copy link
Member Author

Can we merge this please?


```shell
distribution/package/bin/gravitino.sh start
```
Copy link
Contributor

Choose a reason for hiding this comment

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

After starting the Gravitino server, suggest adding

  1. how to check GravitinoServer is started(like getting GravitinoServer version though curl)
  2. If GravitinoServer failed to start, where to check Gravitino logs

Copy link
Member Author

Choose a reason for hiding this comment

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

That's covered by another ticket #790

@jerryshao jerryshao merged commit 043c646 into apache:main Dec 8, 2023
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.

[Subtask] Add installation instructions
5 participants