Skip to content

RATIS-1589. Get ratis-shell resource from bin tarball#656

Merged
szetszwo merged 4 commits intoapache:masterfrom
codings-dan:1589
Jun 10, 2022
Merged

RATIS-1589. Get ratis-shell resource from bin tarball#656
szetszwo merged 4 commits intoapache:masterfrom
codings-dan:1589

Conversation

@codings-dan
Copy link
Contributor

@codings-dan codings-dan commented Jun 7, 2022

@codings-dan
Copy link
Contributor Author

@szetszwo Can you help review this pull request, thank you!

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

@codings-dan , thanks a lot for working on this! Let add some subsections in the doc; see https://issues.apache.org/jira/secure/attachment/13044793/656_review.patch


You can get the ratis-shell from bin tarball as well:
Download the Ratis bin tarball from https://ratis.apache.org/downloads.html .
Note that ratis-shell is available starting from version 2.3.0
Copy link
Contributor

Choose a reason for hiding this comment

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

2.3.0 (already released) does not have ratis-shell bin.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Note that ratis-shell is available starting from version 2.3.0
Extract the bin tarball to a destination directory `<DST_DIR>`
```
$ tar -C <DST_DIR> -zxvf apache-ratis-<VERSION>-bin.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

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

We may select to extract only ratis-shell

$ tar -C <DST_DIR> -zxvf apache-ratis-<VERSION>-bin.tar.gz apache-ratis-<VERSION>/ratis-shell
$ cd <DST_DIR>
$ mv apache-ratis-<VERSION>/ratis-shell .
$ rmdir apache-ratis-<VERSION>/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, I have change it.

@codings-dan
Copy link
Contributor Author

@szetszwo PTAL again, thx!

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

@codings-dan , thanks for the update. Just a comment inlined.

Also, let's add a table right before "Setting up the ratis-shell".

## Availability
| Version  | Available in src tarball? | Available in bin tarball? |
| :------: | :-----------------------: | :-----------------------: |
| < 2.3.0  | No                        | No                        |
| 2.3.0    | Yes                       | No                        |
| \> 2.3.0 | Yes                       | Yes                       |

## Setting up the ratis-shell


### Setting up from a binary tarball
Download the Ratis bin tarball from https://ratis.apache.org/downloads.html .
Note that ratis-shell is available starting from version 2.3.0 (already released) does not have ratis-shell bin.
Copy link
Contributor

Choose a reason for hiding this comment

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

This sentence "... available ... does not have ..." is a little bit confusing. How about we rewrite it as below?

Note that the bin tarball of Ratis version 2.3.0 or earlier does not contain ratis-shell.
The bin tarball of later versions will contain ratis-shell.

@codings-dan
Copy link
Contributor Author

Also, let's add a table right before "Setting up the ratis-shell".

Adding a table is great, now it's all clear.

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

+1 the change looks good.

@szetszwo szetszwo merged commit aa77796 into apache:master Jun 10, 2022
@codings-dan
Copy link
Contributor Author

Thanks @szetszwo help review the pull request!

@codings-dan codings-dan deleted the 1589 branch June 10, 2022 03:12
szetszwo pushed a commit that referenced this pull request Jun 18, 2022
SzyWilliam pushed a commit to SzyWilliam/ratis that referenced this pull request Jul 2, 2022
symious pushed a commit to symious/ratis that referenced this pull request Mar 5, 2024
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.

2 participants