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 "azurerm_resource_group" "example" { | |
| name = "example-rg" | |
| location = "East US" | |
| } | |
| # Container App の作成(システム割り当てマネージド ID を有効化) | |
| resource "azurerm_container_app" "example" { | |
| name = "example-container-app" | |
| resource_group_name = azurerm_resource_group.example.name |
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 "azurerm_container_app_environment" "uwa_container_app_environment" { | |
| name = "uwa-container-app-env" | |
| resource_group_name = azurerm_resource_group.uwa_resource_group.name | |
| location = azurerm_resource_group.uwa_resource_group.location | |
| internal_load_balancer_enabled = false | |
| infrastructure_subnet_id = azurerm_subnet.container_app_subnet.id | |
| } | |
| resource "azurerm_container_app" "uwa_container_app" { | |
| name = "uwa-container-app" |
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 "azurerm_storage_account" "uwa_uwa_storage" { | |
| name = "uwa-uwastorageaccount" | |
| resource_group_name = azurerm_resource_group.uwa_uwa_rg.name | |
| location = azurerm_resource_group.uwa_uwa_rg.location | |
| account_tier = "Standard" | |
| account_replication_type = "LRS" | |
| } |
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
| terraform { | |
| required_providers { | |
| azurerm = { | |
| source = "hashicorp/azurerm" | |
| version = "~>3.0" | |
| } | |
| } | |
| required_version = ">= 0.14.9" | |
| } |
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
| terraform { | |
| required_providers { | |
| azurerm = { | |
| source = "hashicorp/azurerm" | |
| version = "~>3.0" | |
| } | |
| } | |
| required_version = ">= 0.14.9" | |
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| """ | |
| 5. BigQuery読込 | |
| """ | |
| from pyspark.sql import SparkSession | |
| from pyspark.sql import DataFrame as SparkDataFrame | |
| from pyspark.sql.utils import AnalysisException | |
| # ここは同じ | |
| spark: SparkSession = SparkSession \ |
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
| """ | |
| 1. Sessionを作る | |
| """ | |
| from pyspark.sql import SparkSession | |
| # BigQueryを使う&Stringの範囲を広げる | |
| spark: SparkSession = SparkSession \ | |
| .builder \ | |
| .appName(‘app_yakiu')\ |
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 datetime import datetime | |
| import os | |
| from pyspark.sql import SparkSession | |
| from pyspark.sql import DataFrame as SparkDataFrame | |
| from pyspark.sql.utils import AnalysisException | |
| from pyspark.sql.types import StructType, StructField, DoubleType, DateType, StringType, LongType | |
| spark = SparkSession \ | |
| .builder \ | |
| .appName('app_334')\ |
NewerOlder