A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.
python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.
python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
| #!/usr/bin/env python | |
| """ | |
| Very simple HTTP server in python (Updated for Python 3.7) | |
| Usage: | |
| ./dummy-web-server.py -h | |
| ./dummy-web-server.py -l localhost -p 8000 | |
| Send a GET request: |
| gitUrl=$1 | |
| token=$2 | |
| curl -O -L https://github.com/actions/runner/releases/download/v2.272.0/actions-runner-linux-x64-2.272.0.tar.gz; | |
| tar xzf ./actions-runner-linux-x64-2.272.0.tar.gz; | |
| ./config.sh --url $gitUrl --token $token --labels ubuntu --name test --work _work --unattended; | |
| nohup ./run.sh > nohup-output.txt & |
| Gravitee.IO Standalone Runtime Bootstrap Environment | |
| GRAVITEE_HOME: /opt/graviteeio-management-api | |
| GRAVITEE_OPTS: | |
| JAVA: /opt/java/openjdk/bin/java | |
| JAVA_OPTS: -Djava.net.preferIPv4Stack=true -Xms1024m -Xmx2048m -Djava.awt.headless=true -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 |
| # Default values for gravitee. | |
| # This is a YAML-formatted file. | |
| # Declare variables to be passed into your templates. | |
| chaos: | |
| enabled: false | |
| inMemoryAuth: | |
| enabled: true | |
| allowEmailInSearchResults: false |
TL;DR
Install Postgres 10, and then:
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 mainEasiest HDFS cluster in the world with kubernetes.
Inspiration from kimoonkim/kubernetes-HDFS
kubectl create -f namenode.yaml
kubectl create -f datanode.yaml
Setup a port-forward to so you can see it is alive: