You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2020/07/05 13:55:41 UTC

[GitHub] [incubator-heron] huijunwu commented on pull request #3522: Python 3 upgrade

huijunwu commented on pull request #3522:
URL: https://github.com/apache/incubator-heron/pull/3522#issuecomment-653891925


   Test with minikue. Looks good
   
   ```
   $ hostnamectl
            Icon name: computer-desktop
              Chassis: desktop
     Operating System: Ubuntu 20.04 LTS
               Kernel: Linux 5.4.0-40-generic
         Architecture: x86-64
   $ docker --version
   Docker version 19.03.8, build afacb8b7f0
   
   git clone https://github.com/apache/incubator-heron.git
   git remote add Code0x58 https://github.com/Code0x58/incubator-heron.git 
   git fetch Code0x58
   git checkout --track Code0x58/python-3-upgrade
   
   ./docker/scripts/build-artifacts.sh ubuntu20.04 0.0.0 ~/heron-release
   
   $ kubectl version --client
   Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.5", GitCommit:"e6503f8d8f769ace2f338794c914a96fc335df0f", GitTreeState:"clean", BuildDate:"2020-06-26T03:47:41Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
   $ minikube version
   minikube version: v1.11.0
   commit: 57e2f55f47effe9ce396cea42a1e0eb4f611ebbd
   
   eval $(minikube -p minikube docker-env)
   ./docker/scripts/build-docker.sh ubuntu20.04 0.0.0 ~/heron-release
   
   # cluster
   DIR=./deploy/kubernetes/minikube
   sed 's!heron/heron:latest!heron/heron:0.0.0!g' ${DIR}/zookeeper.yaml > /tmp/zookeeper.yaml
   sed 's!heron/heron:latest!heron/heron:0.0.0!g' ${DIR}/tools.yaml > /tmp/tools.yaml
   sed 's!heron/heron:latest!heron/heron:0.0.0!g' ${DIR}/apiserver.yaml > /tmp/apiserver.yaml
   
   kubectl create -f /tmp/zookeeper.yaml
   kubectl get pods
   kubectl create -f ${DIR}/bookkeeper.yaml
   kubectl create -f /tmp/tools.yaml
   kubectl create -f /tmp/apiserver.yaml
   
   # submit a job
   kubectl proxy -p 8001 &
   
   curl http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy/api/v1/version
   heron config kubernetes set service_url http://localhost:8001/api/v1/namespaces/default/services/heron-apiserver:9000/proxy
   heron submit kubernetes ~/.heron/examples/heron-api-examples.jar org.apache.heron.examples.api.AckingTopology acking
   heron kill kubernetes acking
   
   # clean
   kubectl delete -f /tmp/zookeeper.yaml
   kubectl delete -f ${DIR}/bookkeeper.yaml
   kubectl delete -f /tmp/tools.yaml
   kubectl delete -f /tmp/apiserver.yaml
   ```


----------------------------------------------------------------
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.

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