This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PYENV_VERSION=3.9.15 | |
| VIRTUAL_ENV=.venv | |
| AWS_PROFILE=xxx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "snowflake_unsafe_execute" "volume" { | |
| execute = <<EOT | |
| CREATE OR REPLACE EXTERNAL VOLUME ${var.external_volume_name} | |
| STORAGE_LOCATIONS = | |
| ( | |
| ( | |
| NAME = '${var.external_volume_bucket_name}' | |
| STORAGE_PROVIDER = 'S3' | |
| STORAGE_BASE_URL = 's3://${var.external_volume_bucket_name}' | |
| STORAGE_AWS_ROLE_ARN = '${var.snowflake_iam_role_arn}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM maven:3.6.3-jdk-8 as builder | |
| RUN mvn dependency:copy -Dartifact=org.apache.hudi:hudi-spark3.3-bundle_2.12:0.13.0 -DoutputDirectory=/opt/jars | |
| RUN mvn dependency:copy -Dartifact=io.delta:delta-core_2.12:2.2.0 -DoutputDirectory=/opt/jars | |
| RUN mvn dependency:copy -Dartifact=io.delta:delta-storage:2.2.0 -DoutputDirectory=/opt/jars | |
| FROM 107292555468.dkr.ecr.eu-central-1.amazonaws.com/spark/emr-6.9.0:latest | |
| COPY --from=builder /opt/jars/hudi-spark3.3-bundle_2.12-0.13.0.jar /usr/lib/spark/jars | |
| COPY --from=builder /opt/jars/delta-core_2.12-2.2.0.jar /usr/lib/spark/jars | |
| COPY --from=builder /opt/jars/delta-storage-2.2.0.jar /usr/lib/spark/jars |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for file in $(ls .); do | |
| for ll in $(otool -L $file | grep -oE "/usr/local/[^ ]*"); do | |
| echo "copying $ll to ." | |
| sudo cp $ll . | |
| #echo "" | |
| done | |
| done | |
| for file in $(ls .); do | |
| for ll in $(otool -L $file | grep -oE "/usr/local/[^ ]*"); do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # launch cli and connect to scheduler | |
| docker run \ | |
| --network host \ | |
| --rm -it \ | |
| -v /Users/timvw:/Users/timvw \ | |
| apache/arrow-ballista-cli:0.10.0 --host 127.0.0.1 --port 50050 | |
| create external table test stored as parquet location '/Users/timvw/Desktop/test.parquet'; | |
| select * from test limit 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```bash | |
| cat LSQL-messages-2022-11-23-06-44-47.json | jq -r '.[].value | [.day, .count] | @tsv' | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lsof -nP -i4TCP:$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "rust-playground" | |
| version = "0.1.0" | |
| edition = "2021" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [dependencies] | |
| aws-config = "0.11.0" | |
| aws-sdk-s3 = "0.11.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl -n kube-system get secret -o json | \ | |
| jq -r '.items[] | select(.metadata.name | startswith("deployment-controller-token")) | .data.token' | \ | |
| base64 --decode | \ | |
| pbcopy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package be.icteam.sample | |
| import cats.effect._ | |
| import cats.implicits._ | |
| import cats.effect.concurrent.Semaphore | |
| import java.util.concurrent.Executors | |
| import scala.concurrent.ExecutionContext | |