Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
| #! /bin/bash | |
| PB_VERSION=2.5.0 | |
| set -e | |
| apt-get update | |
| apt-get install build-essential wget | |
| wget https://github.com/google/protobuf/releases/download/v$PB_VERSION/protobuf-$PB_VERSION.tar.gz |
| #!/bin/bash | |
| # this script should be launched on each node of cluster | |
| # on root account (should be updated later) | |
| # then on ${PREFIX}-hadoop-1 | |
| # go to /root/haddop | |
| # $ bin/hdfs namenode -format | |
| # $ sbin/start-dfs.sh | |
| # Check on ${PREFIX}-hadoop-1:50070 status of cluster | |
| PREFIX=${PREFIX:-customer} |
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
| #!/usr/bin/env python3 | |
| from datetime import datetime, timedelta | |
| import argparse | |
| from io import FileIO | |
| import json | |
| import os | |
| import os.path as osp | |
| import subprocess | |
| import sys |