You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by GitBox <gi...@apache.org> on 2022/05/13 13:28:43 UTC

[GitHub] [ratis] codings-dan opened a new pull request, #646: RATIS-1581. Add ratis-shell compile and command document

codings-dan opened a new pull request, #646:
URL: https://github.com/apache/ratis/pull/646

   see https://issues.apache.org/jira/browse/RATIS-1581


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] szetszwo commented on a diff in pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
szetszwo commented on code in PR #646:
URL: https://github.com/apache/ratis/pull/646#discussion_r874986549


##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,37 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+## Get the ratis-shell source 
+
+>Mention: Ratis shell is available starting from Apache Ratis 2.3.0.
+
+### Build `ratis-shell` from src tarball
+Get the ratis src tarball from [Ratis Source Download](https://ratis.apache.org/downloads.html)
+
+```
+$ tar -C <DST_DIR> -zxvf apache-ratis-*-src.tar.gz
+
+$ cd <DST_DIR>/apache-ratis-*-src
+
+$ mvn -DskipTests -Prelease -Papache-release clean package assembly:single
+...
+[INFO] BUILD SUCCESS
+
+$ tar -C <DST_DIR>/ratis-shell -xzf ratis-assembly/target/apache-ratis-2.3.0-SNAPSHOT-src.tar.gz
+
+$ cd <DST_DIR>/ratis-shell/apache-ratis-2.3.0-SNAPSHOT

Review Comment:
   Replace "2.3.0-SNAPSHOT" with `<VERSION>`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] szetszwo merged pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
szetszwo merged PR #646:
URL: https://github.com/apache/ratis/pull/646


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] codings-dan commented on a diff in pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
codings-dan commented on code in PR #646:
URL: https://github.com/apache/ratis/pull/646#discussion_r875423274


##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,37 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+## Get the ratis-shell source 
+
+>Mention: Ratis shell is available starting from Apache Ratis 2.3.0.
+
+### Build `ratis-shell` from src tarball
+Get the ratis src tarball from [Ratis Source Download](https://ratis.apache.org/downloads.html)
+
+```
+$ tar -C <DST_DIR> -zxvf apache-ratis-*-src.tar.gz
+
+$ cd <DST_DIR>/apache-ratis-*-src
+
+$ mvn -DskipTests -Prelease -Papache-release clean package assembly:single
+...
+[INFO] BUILD SUCCESS
+
+$ tar -C <DST_DIR>/ratis-shell -xzf ratis-assembly/target/apache-ratis-2.3.0-SNAPSHOT-src.tar.gz
+
+$ cd <DST_DIR>/ratis-shell/apache-ratis-2.3.0-SNAPSHOT

Review Comment:
   done



##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,37 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+## Get the ratis-shell source 
+
+>Mention: Ratis shell is available starting from Apache Ratis 2.3.0.
+
+### Build `ratis-shell` from src tarball
+Get the ratis src tarball from [Ratis Source Download](https://ratis.apache.org/downloads.html)
+
+```
+$ tar -C <DST_DIR> -zxvf apache-ratis-*-src.tar.gz
+
+$ cd <DST_DIR>/apache-ratis-*-src
+
+$ mvn -DskipTests -Prelease -Papache-release clean package assembly:single
+...
+[INFO] BUILD SUCCESS
+
+$ tar -C <DST_DIR>/ratis-shell -xzf ratis-assembly/target/apache-ratis-2.3.0-SNAPSHOT-src.tar.gz

Review Comment:
   done



##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,37 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+## Get the ratis-shell source 

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] codings-dan commented on a diff in pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
codings-dan commented on code in PR #646:
URL: https://github.com/apache/ratis/pull/646#discussion_r875423863


##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,37 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+## Get the ratis-shell source 
+
+>Mention: Ratis shell is available starting from Apache Ratis 2.3.0.
+
+### Build `ratis-shell` from src tarball
+Get the ratis src tarball from [Ratis Source Download](https://ratis.apache.org/downloads.html)
+
+```
+$ tar -C <DST_DIR> -zxvf apache-ratis-*-src.tar.gz
+
+$ cd <DST_DIR>/apache-ratis-*-src
+
+$ mvn -DskipTests -Prelease -Papache-release clean package assembly:single
+...
+[INFO] BUILD SUCCESS
+
+$ tar -C <DST_DIR>/ratis-shell -xzf ratis-assembly/target/apache-ratis-2.3.0-SNAPSHOT-src.tar.gz
+
+$ cd <DST_DIR>/ratis-shell/apache-ratis-2.3.0-SNAPSHOT
+```
+TODO(codings-dan): Get `ratis-shell` from bin tarball directly

Review Comment:
   I have remove this TODO. I will add this part in the future.  What can I do to make user get `ratis-shell` from bin tarball directly, I'd love to take this task and complete it!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] szetszwo commented on a diff in pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
szetszwo commented on code in PR #646:
URL: https://github.com/apache/ratis/pull/646#discussion_r873582962


##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,24 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+Get the ratis-shell source and Configure environment variables
+
+```
+$ mvn -DskipTests -Prelease -Papache-release clean package assembly:single

Review Comment:
   We should discuss how to run it from a release.   Let's ask the user to download the src tarball from https://ratis.apache.org/downloads.html and mention that ratis shell is available starting from 2.3.0.
   



##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,24 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+

Review Comment:
   Let's add a section title.
   ```
   ## Setting up ratis-shell
   ```
   



##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,24 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+Get the ratis-shell source and Configure environment variables
+
+```
+$ mvn -DskipTests -Prelease -Papache-release clean package assembly:single
+...
+[INFO] BUILD SUCCESS
+
+$ tar -C /tmp -xzf ratis-assembly/target/apache-ratis-2.3.0-SNAPSHOT-src.tar.gz
+
+$ cd /tmp/apache-ratis-2.3.0-SNAPSHOT

Review Comment:
   - /tmp seems not a good location since the files could be deleted by the system.
   - Let's do not hardcode the version number. 
   ```
   $ tar -C <DST_DIR> -xzf ratis-assembly/target/apache-ratis-*-src.tar.gz
   
   $ cd <DST_DIR>/apache-ratis-<VERSION>
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] codings-dan commented on a diff in pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
codings-dan commented on code in PR #646:
URL: https://github.com/apache/ratis/pull/646#discussion_r875423863


##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,37 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+## Get the ratis-shell source 
+
+>Mention: Ratis shell is available starting from Apache Ratis 2.3.0.
+
+### Build `ratis-shell` from src tarball
+Get the ratis src tarball from [Ratis Source Download](https://ratis.apache.org/downloads.html)
+
+```
+$ tar -C <DST_DIR> -zxvf apache-ratis-*-src.tar.gz
+
+$ cd <DST_DIR>/apache-ratis-*-src
+
+$ mvn -DskipTests -Prelease -Papache-release clean package assembly:single
+...
+[INFO] BUILD SUCCESS
+
+$ tar -C <DST_DIR>/ratis-shell -xzf ratis-assembly/target/apache-ratis-2.3.0-SNAPSHOT-src.tar.gz
+
+$ cd <DST_DIR>/ratis-shell/apache-ratis-2.3.0-SNAPSHOT
+```
+TODO(codings-dan): Get `ratis-shell` from bin tarball directly

Review Comment:
   I have remove this TODO. I will add this part in the future. So what can I do to make user get `ratis-shell` from bin tarball directly?  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] codings-dan commented on pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
codings-dan commented on PR #646:
URL: https://github.com/apache/ratis/pull/646#issuecomment-1128870059

   > We should point the user to download the src tarball and describe how to build from it.
   
   Sure, we could make user download the src tarball and executethe following command to build and get the `ratis-shell`
    `mvn -DskipTests -Prelease -Papache-release clean package assembly:single`
   
   > How about the bin tarball? How could we make ratis-shell work from the bin tarball without building it from the source?
   
   Good idea! User can get the ratis-shell from bin tarball without building it. Am I not authorized to change the contents of the bin tarball right now? Is there anything that I can do to support user getting ratis-shell directly from the bin tarball?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] codings-dan commented on pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
codings-dan commented on PR #646:
URL: https://github.com/apache/ratis/pull/646#issuecomment-1127144636

   @szetszwo Can you help review this patch, thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] szetszwo commented on a diff in pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
szetszwo commented on code in PR #646:
URL: https://github.com/apache/ratis/pull/646#discussion_r874986549


##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,37 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+## Get the ratis-shell source 
+
+>Mention: Ratis shell is available starting from Apache Ratis 2.3.0.
+
+### Build `ratis-shell` from src tarball
+Get the ratis src tarball from [Ratis Source Download](https://ratis.apache.org/downloads.html)
+
+```
+$ tar -C <DST_DIR> -zxvf apache-ratis-*-src.tar.gz
+
+$ cd <DST_DIR>/apache-ratis-*-src
+
+$ mvn -DskipTests -Prelease -Papache-release clean package assembly:single
+...
+[INFO] BUILD SUCCESS
+
+$ tar -C <DST_DIR>/ratis-shell -xzf ratis-assembly/target/apache-ratis-2.3.0-SNAPSHOT-src.tar.gz
+
+$ cd <DST_DIR>/ratis-shell/apache-ratis-2.3.0-SNAPSHOT

Review Comment:
   Replace "2.3.0-SNAPSHOT" with "<VERSION>".



##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,37 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+## Get the ratis-shell source 

Review Comment:
   Since this section is quite short.  Let's call it "Setting up the ratis-shell" for including the entire setup and don't have any subsections.
   



##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,37 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+## Get the ratis-shell source 
+
+>Mention: Ratis shell is available starting from Apache Ratis 2.3.0.
+
+### Build `ratis-shell` from src tarball
+Get the ratis src tarball from [Ratis Source Download](https://ratis.apache.org/downloads.html)
+
+```
+$ tar -C <DST_DIR> -zxvf apache-ratis-*-src.tar.gz
+
+$ cd <DST_DIR>/apache-ratis-*-src
+
+$ mvn -DskipTests -Prelease -Papache-release clean package assembly:single
+...
+[INFO] BUILD SUCCESS
+
+$ tar -C <DST_DIR>/ratis-shell -xzf ratis-assembly/target/apache-ratis-2.3.0-SNAPSHOT-src.tar.gz

Review Comment:
   It should use the shell.tar.gz but not src.tar.gz.
   ```
   $ tar -C <DST_DIR>/ratis-shell -xzf ratis-assembly/target/apache-ratis-<VERSION>-shell.tar.gz
   ```



##########
ratis-docs/content/cli.md:
##########
@@ -23,6 +23,37 @@ Ratis-shell is the command line interface of Ratis.
 > Ratis-shell is currently only **experimental**.
 > The compatibility story is not considered for the time being.
 
+
+## Get the ratis-shell source 
+
+>Mention: Ratis shell is available starting from Apache Ratis 2.3.0.
+
+### Build `ratis-shell` from src tarball
+Get the ratis src tarball from [Ratis Source Download](https://ratis.apache.org/downloads.html)
+
+```
+$ tar -C <DST_DIR> -zxvf apache-ratis-*-src.tar.gz
+
+$ cd <DST_DIR>/apache-ratis-*-src
+
+$ mvn -DskipTests -Prelease -Papache-release clean package assembly:single
+...
+[INFO] BUILD SUCCESS
+
+$ tar -C <DST_DIR>/ratis-shell -xzf ratis-assembly/target/apache-ratis-2.3.0-SNAPSHOT-src.tar.gz
+
+$ cd <DST_DIR>/ratis-shell/apache-ratis-2.3.0-SNAPSHOT
+```
+TODO(codings-dan): Get `ratis-shell` from bin tarball directly

Review Comment:
   Let's remove this TODO.  Otherwise, it will show up in the doc.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] codings-dan commented on pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
codings-dan commented on PR #646:
URL: https://github.com/apache/ratis/pull/646#issuecomment-1129514047

   @szetszwo Thanks for helping change the document, PTAL again, thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [ratis] codings-dan commented on pull request #646: RATIS-1581. Add ratis-shell compile and command document

Posted by GitBox <gi...@apache.org>.
codings-dan commented on PR #646:
URL: https://github.com/apache/ratis/pull/646#issuecomment-1130025520

   Thanks  @szetszwo for reviewing the code!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org