This file contains 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 pyspark.sql import SparkSession | |
catalog_name = "glue_catalog" | |
bucket_name = "stage-ap-northeast-1-cm-zunda-demo" | |
warehouse_path = f"s3://{bucket_name}/iceberg" | |
spark = SparkSession.builder \ | |
.config("spark.sql.extensions", "org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions") \ | |
.config(f"spark.sql.catalog.{catalog_name}", "org.apache.iceberg.spark.SparkCatalog") \ | |
.config(f"spark.sql.catalog.{catalog_name}.warehouse", warehouse_path) \ |
This file contains 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 pyspark.sql import SparkSession | |
catalog_name = "glue_catalog" | |
bucket_name = "stage-ap-northeast-1-cm-zunda-demo" | |
warehouse_path = f"s3://{bucket_name}/iceberg" | |
spark = SparkSession.builder \ | |
.config("spark.sql.extensions", "org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions") \ | |
.config(f"spark.sql.catalog.{catalog_name}", "org.apache.iceberg.spark.SparkCatalog") \ | |
.config(f"spark.sql.catalog.{catalog_name}.warehouse", warehouse_path) \ |
This file contains 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
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
function usage() { | |
cat <<-EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] | |
Script description here. | |
Available options: |