https://drive.google.com/file/d/1uaSukJCFOvNIE1UygmLGt91G83vAOEz8/view?usp=sharing
nano config.yaml
sourceFormat: HUDI
targetFormats:
- ICEBERG
datasets:
-
tableBasePath: s3://<>/hudi/people
tableName: people
partitionSpec: city:VALUE
namespace: icebergdb
aws s3 cp <PATH>/config.yaml s3://XXXconfig/config.yaml
docker build -t xtable-lambda .
docker run -p 9000:8080 \
-v ~/.aws:/root/.aws:ro \
xtable-lambda
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"path":"s3://datalake-demo-1995/config/config.yaml"}'
sls deploy