[incubator-pulsar.wiki] branch master updated: Updated Release Candidate Validation (markdown)

2018-07-19 Thread sijie
This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.wiki.git


The following commit(s) were added to refs/heads/master by this push:
 new 10c5a16  Updated Release Candidate Validation (markdown)
10c5a16 is described below

commit 10c5a1647a3c0295b9408fc3b3fd032d478b4600
Author: Sijie Guo 
AuthorDate: Thu Jul 19 16:41:41 2018 -0700

Updated Release Candidate Validation (markdown)
---
 Release-Candidate-Validation.md | 5 -
 1 file changed, 5 deletions(-)

diff --git a/Release-Candidate-Validation.md b/Release-Candidate-Validation.md
index 54111cc..81fd9e2 100644
--- a/Release-Candidate-Validation.md
+++ b/Release-Candidate-Validation.md
@@ -3,7 +3,6 @@
   * [Validate Pub/Sub and Java Functions](#validate-pubsub-and-java-functions)
   * [Validate Connectors](#validate-connectors)
   * [Validate Stateful Functions](#validate-stateful-functions)
-  * [Validate Python Functions](#validate-python-functions)
 - [Validate RPM and DEB packages](#validate-rpm-and-deb-packages)
   * [Prepare](#prepare)
   * [Validate RPM](#validate-rpm)
@@ -524,10 +523,6 @@ value = 10
 value = 20
 ```
 
- Validate Python Functions
-
-
-
 ### Validate RPM and DEB packages
 
  Prepare



[incubator-pulsar.wiki] branch master updated: Updated Release Candidate Validation (markdown)

2018-07-19 Thread sijie
This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.wiki.git


The following commit(s) were added to refs/heads/master by this push:
 new a6b5ff6  Updated Release Candidate Validation (markdown)
a6b5ff6 is described below

commit a6b5ff670d227c4a1d3ed28d1771e9fd9e4b7dc4
Author: Sijie Guo 
AuthorDate: Thu Jul 19 16:28:41 2018 -0700

Updated Release Candidate Validation (markdown)
---
 Release-Candidate-Validation.md | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Release-Candidate-Validation.md b/Release-Candidate-Validation.md
index 033e0cd..54111cc 100644
--- a/Release-Candidate-Validation.md
+++ b/Release-Candidate-Validation.md
@@ -3,12 +3,14 @@
   * [Validate Pub/Sub and Java Functions](#validate-pubsub-and-java-functions)
   * [Validate Connectors](#validate-connectors)
   * [Validate Stateful Functions](#validate-stateful-functions)
+  * [Validate Python Functions](#validate-python-functions)
 - [Validate RPM and DEB packages](#validate-rpm-and-deb-packages)
   * [Prepare](#prepare)
   * [Validate RPM](#validate-rpm)
   * [Validate DEB](#validate-deb)
 
-Here are some instructions for reviewing and validating a release candidate.
+Here are some manual instructions for reviewing and validating a release 
candidate.
+These steps can be automated. Contributions are welcome!
 
 ### Validate the binary distribution
 
@@ -522,6 +524,10 @@ value = 10
 value = 20
 ```
 
+ Validate Python Functions
+
+
+
 ### Validate RPM and DEB packages
 
  Prepare



[incubator-pulsar.wiki] branch master updated: Updated Release Candidate Validation (markdown)

2018-07-19 Thread sijie
This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.wiki.git


The following commit(s) were added to refs/heads/master by this push:
 new 9813603  Updated Release Candidate Validation (markdown)
9813603 is described below

commit 98136032ab83bfb1eabe84acca66a6ec520d915f
Author: Sijie Guo 
AuthorDate: Thu Jul 19 15:30:58 2018 -0700

Updated Release Candidate Validation (markdown)
---
 Release-Candidate-Validation.md | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Release-Candidate-Validation.md b/Release-Candidate-Validation.md
index ed7100a..033e0cd 100644
--- a/Release-Candidate-Validation.md
+++ b/Release-Candidate-Validation.md
@@ -3,6 +3,10 @@
   * [Validate Pub/Sub and Java Functions](#validate-pubsub-and-java-functions)
   * [Validate Connectors](#validate-connectors)
   * [Validate Stateful Functions](#validate-stateful-functions)
+- [Validate RPM and DEB packages](#validate-rpm-and-deb-packages)
+  * [Prepare](#prepare)
+  * [Validate RPM](#validate-rpm)
+  * [Validate DEB](#validate-deb)
 
 Here are some instructions for reviewing and validating a release candidate.
 
@@ -518,7 +522,7 @@ value = 10
 value = 20
 ```
 
-### Validate RPM and DEP packages
+### Validate RPM and DEB packages
 
  Prepare
 



[incubator-pulsar.wiki] branch master updated: Updated Release Candidate Validation (markdown)

2018-07-19 Thread sijie
This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.wiki.git


The following commit(s) were added to refs/heads/master by this push:
 new 041089e  Updated Release Candidate Validation (markdown)
041089e is described below

commit 041089e60abc7a815f883157da07f1d2f2e451e6
Author: Sijie Guo 
AuthorDate: Thu Jul 19 15:29:33 2018 -0700

Updated Release Candidate Validation (markdown)
---
 Release-Candidate-Validation.md | 27 ++-
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/Release-Candidate-Validation.md b/Release-Candidate-Validation.md
index c42d00f..ed7100a 100644
--- a/Release-Candidate-Validation.md
+++ b/Release-Candidate-Validation.md
@@ -537,7 +537,6 @@ in centos container, go to directory `/pulsar`
 ```shell
 [root@e6c29e2b70a9 /]# cd pulsar/
 [root@e6c29e2b70a9 pulsar]# ls
-apache-pulsar-2.1.0-incubating  apache-pulsar-client-dev.deb  
apache-pulsar-client-devel-2.1.0-1_incubating.x86_64.rpm
 ```
 
 2. Install RPM in the centos container
@@ -575,30 +574,26 @@ producer  producer.go
 # ./producer
 ```
 
- Validate RPM
+ Validate DEB
 
-1. Start a centos docker to install RPM
+1. Start an ubuntu docker to install DEB
 
 ```shell
-$ docker run -it --rm -v `pwd`:/pulsar centos:7
+$ docker run -it --rm -v `pwd`:/pulsar ubuntu:16.04
 ```
 
-in centos container, go to directory `/pulsar`
+in ubuntu container, go to directory `/pulsar`
 
 ```shell
 [root@e6c29e2b70a9 /]# cd pulsar/
 [root@e6c29e2b70a9 pulsar]# ls
-apache-pulsar-2.1.0-incubating  apache-pulsar-client-dev.deb  
apache-pulsar-client-devel-2.1.0-1_incubating.x86_64.rpm
 ```
 
 2. Install RPM in the centos container
 
 ```shell
-# rpm -ivh apache-pulsar-client-devel-2.1.0-1_incubating.x86_64.rpm 
apache-pulsar-client-2.1.0-1_incubating.x86_64.rpm
-Preparing...  # [100%]
-Updating / installing...
-   1:apache-pulsar-client-2.1.0-1_incu# [ 50%]
-   2:apache-pulsar-client-devel-2.1.0-# [100%]
+# apt install ./apache-pulsar-client.deb
+# apt install ./apache-pulsar-client-dev.deb
 ```
 
 3. Build the go client to validate the RPM package.
@@ -606,7 +601,14 @@ Updating / installing...
 a) install go
 
 ```shell
-# yum install -y go git
+# apt-get update
+# apt-get -y upgrade
+# apt-get install -y git curl gcc
+# curl -O https://storage.googleapis.com/golang/go1.9.1.linux-amd64.tar.gz
+# tar -xvf go1.9.1.linux-amd64.tar.gz
+# mv go /usr/local
+# export GOROOT=/usr/local/go
+# export PATH=$PATH:$GOROOT/bin
 ```
 
 b) get pulsar go client
@@ -622,6 +624,5 @@ c) build an example
 # go build .
 # ls
 producer  producer.go
-# ldconfig
 # ./producer
 ```
\ No newline at end of file



[incubator-pulsar.wiki] branch master updated: Updated Release Candidate Validation (markdown)

2018-07-19 Thread sijie
This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.wiki.git


The following commit(s) were added to refs/heads/master by this push:
 new f51bf79  Updated Release Candidate Validation (markdown)
f51bf79 is described below

commit f51bf79e3c684166cf88242285210ae5b08a46a6
Author: Sijie Guo 
AuthorDate: Thu Jul 19 15:10:42 2018 -0700

Updated Release Candidate Validation (markdown)
---
 Release-Candidate-Validation.md | 108 
 1 file changed, 108 insertions(+)

diff --git a/Release-Candidate-Validation.md b/Release-Candidate-Validation.md
index 4ab0238..c42d00f 100644
--- a/Release-Candidate-Validation.md
+++ b/Release-Candidate-Validation.md
@@ -516,4 +516,112 @@ The result in the terminal open at step 3 is updated to 
`20`.
 ```shell
 value = 10
 value = 20
+```
+
+### Validate RPM and DEP packages
+
+ Prepare
+
+Download the RPM and DEP packages to a directory. Let's name this directory as 
`pulsar_validation`. We will mount this directory to a docker container so that 
we can validate RPM packages.
+
+ Validate RPM
+
+1. Start a centos docker to install RPM
+
+```shell
+$ docker run -it --rm -v `pwd`:/pulsar centos:7
+```
+
+in centos container, go to directory `/pulsar`
+
+```shell
+[root@e6c29e2b70a9 /]# cd pulsar/
+[root@e6c29e2b70a9 pulsar]# ls
+apache-pulsar-2.1.0-incubating  apache-pulsar-client-dev.deb  
apache-pulsar-client-devel-2.1.0-1_incubating.x86_64.rpm
+```
+
+2. Install RPM in the centos container
+
+```shell
+# rpm -ivh apache-pulsar-client-devel-2.1.0-1_incubating.x86_64.rpm 
apache-pulsar-client-2.1.0-1_incubating.x86_64.rpm
+Preparing...  # [100%]
+Updating / installing...
+   1:apache-pulsar-client-2.1.0-1_incu# [ 50%]
+   2:apache-pulsar-client-devel-2.1.0-# [100%]
+```
+
+3. Build the go client to validate the RPM package.
+
+a) install go
+
+```shell
+# yum install -y go git
+```
+
+b) get pulsar go client
+
+```shell
+# go get -u github.com/apache/incubator-pulsar/pulsar-client-go/pulsar
+```
+
+c) build an example
+
+```shell
+# cd 
~/go/src/github.com/apache/incubator-pulsar/pulsar-client-go/examples/producer/
+# go build .
+# ls
+producer  producer.go
+# ldconfig
+# ./producer
+```
+
+ Validate RPM
+
+1. Start a centos docker to install RPM
+
+```shell
+$ docker run -it --rm -v `pwd`:/pulsar centos:7
+```
+
+in centos container, go to directory `/pulsar`
+
+```shell
+[root@e6c29e2b70a9 /]# cd pulsar/
+[root@e6c29e2b70a9 pulsar]# ls
+apache-pulsar-2.1.0-incubating  apache-pulsar-client-dev.deb  
apache-pulsar-client-devel-2.1.0-1_incubating.x86_64.rpm
+```
+
+2. Install RPM in the centos container
+
+```shell
+# rpm -ivh apache-pulsar-client-devel-2.1.0-1_incubating.x86_64.rpm 
apache-pulsar-client-2.1.0-1_incubating.x86_64.rpm
+Preparing...  # [100%]
+Updating / installing...
+   1:apache-pulsar-client-2.1.0-1_incu# [ 50%]
+   2:apache-pulsar-client-devel-2.1.0-# [100%]
+```
+
+3. Build the go client to validate the RPM package.
+
+a) install go
+
+```shell
+# yum install -y go git
+```
+
+b) get pulsar go client
+
+```shell
+# go get -u github.com/apache/incubator-pulsar/pulsar-client-go/pulsar
+```
+
+c) build an example
+
+```shell
+# cd 
~/go/src/github.com/apache/incubator-pulsar/pulsar-client-go/examples/producer/
+# go build .
+# ls
+producer  producer.go
+# ldconfig
+# ./producer
 ```
\ No newline at end of file