adnanhemani commented on code in PR #1435:
URL: https://github.com/apache/polaris/pull/1435#discussion_r2059297388
##########
getting-started/assets/cloud_providers/deploy-azure.sh:
##########
@@ -31,6 +33,41 @@ POSTGRES_ADDR=$(echo $CREATE_DB_RESPONSE | jq -r '.host')
FULL_POSTGRES_ADDR=$(printf '%s\n'
"jdbc:postgresql://$POSTGRES_ADDR:5432/{realm}" | sed 's/[&/\]/\\&/g')
sed -i "/jakarta.persistence.jdbc.url/
s|value=\"[^\"]*\"|value=\"$FULL_POSTGRES_ADDR\"|"
"getting-started/assets/eclipselink/persistence.xml"
+STORAGE_ACCOUNT_NAME="polaristest$RANDOM_SUFFIX"
+STORAGE_CONTAINER_NAME="polaris-test-container-$RANDOM_SUFFIX"
+
+az storage account create \
+ --name "$STORAGE_ACCOUNT_NAME" \
+ --resource-group "$CURRENT_RESOURCE_GROUP" \
+ --location "$CURRENT_REGION" \
+ --sku Standard_LRS \
+ --kind StorageV2 \
+ --enable-hierarchical-namespace false
+
+az storage container create \
+ --account-name "$STORAGE_ACCOUNT_NAME" \
+ --name "$STORAGE_CONTAINER_NAME" \
+ --auth-mode login
+
+ASSIGNEE_PRINCIPAL_ID=$(az vm show --name $CURRENT_VM_NAME --resource-group
$CURRENT_RESOURCE_GROUP --query identity.principalId -o tsv)
+SCOPE=$(az storage account show --name $STORAGE_ACCOUNT_NAME --resource-group
$CURRENT_RESOURCE_GROUP --query id -o tsv)
+ROLE="Storage Blob Data Contributor"
+az role assignment create \
+ --assignee $ASSIGNEE_PRINCIPAL_ID \
+ --role "$ROLE" \
+ --scope "$SCOPE"
+
+export AZURE_TENANT_ID=$(az account show --query tenantId -o tsv)
+export
STORAGE_LOCATION="abfss://$STORAGE_CONTAINER_NAME@$STORAGE_ACCOUNT_NAME.dfs.core.windows.net/quickstart_catalog"
+
+cat >> getting-started/eclipselink/trino-config/catalog/iceberg.properties <<
EOF
+fs.native-azure.enabled=true
+azure.auth-type=DEFAULT
+EOF
+
+SPARK_ADDITIONAL_JARS=",org.apache.hadoop:hadoop-azure:3.3.4,org.apache.hadoop:hadoop-azure-datalake:3.3.4,org.apache.iceberg:iceberg-azure-bundle:1.6.1"
+sed -i "/^\s*--packages/s|\",$|${SPARK_ADDITIONAL_JARS}\",|"
getting-started/eclipselink/docker-compose.yml
Review Comment:
Added all JARs to the Docker Compose file directly and tested it. Everything
work as expected.
##########
getting-started/assets/cloud_providers/deploy-gcp.sh:
##########
@@ -41,6 +41,16 @@ POSTGRES_ADDR=$(gcloud sql instances describe
$DB_INSTANCE_NAME --format="get(ip
FULL_POSTGRES_ADDR=$(printf '%s\n'
"jdbc:postgresql://$POSTGRES_ADDR:5432/{realm}" | sed 's/[&/\]/\\&/g')
sed -i "/jakarta.persistence.jdbc.url/
s|value=\"[^\"]*\"|value=\"$FULL_POSTGRES_ADDR\"|"
"getting-started/assets/eclipselink/persistence.xml"
+GCS_BUCKET_NAME="polaris-test-gcs-$RANDOM_SUFFIX"
+echo "GCS Bucket Name: $GCS_BUCKET_NAME"
+
+gcloud storage buckets create "gs://$GCS_BUCKET_NAME"
--location=$CURRENT_REGION
+export STORAGE_LOCATION="gs://$GCS_BUCKET_NAME/quickstart_catalog/"
+
+SPARK_ADDITIONAL_JARS=",org.apache.iceberg:iceberg-gcp-bundle:1.7.0"
+sed -i "/^\s*--packages/s|\",$|${SPARK_ADDITIONAL_JARS}\",|"
getting-started/eclipselink/docker-compose.yml
Review Comment:
ditto
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]