The following sample code (by C#) shows how to read data from the Microsoft SQL Server.
Continue reading “[Spark By Example] Read SQL Server”[AWS] Observability
One of the biggest challenges in developing and host applications in cloud is how to monitor and debugging issues. This post presents the basic concept of observability and AWS’s services.
Continue reading “[AWS] Observability”[Spark By Example] Schema
Spark can infer the data structure, but you can explicitly specify the data by providing the Schema to the DataFrame.
Continue reading “[Spark By Example] Schema”[Spark By Example] SparkSession
The following sample code (by Python and C#) shows how to use SparkSession.
SparkSession
- SparkSession is an entry point to your spark application since Spark version 2.
- SparkSession wraps all different contexts (SparkContext, SQLContext, HiveContext, …) to a single entry point.
- You can create as many SparkSessions as you want.
- In the Spark shell, such as PySpark shell, the SparkSession object (named as “spark”) is created for you.
- In the application, you need to create a SparkSession object.
[AWS Lab] Lambda – /tmp Space
In this lab, we will learn how to use local transient cache (/tmp) folder in a Lambda function.
- Overview
- S3
- Create a bucket
- Upload a configuration file
- Lambda – Function
- Retrieves the configuration file from S3 or /tmp
- Python, boto3
[AWS Lab] Lambda – Environment Variables
In this lab, we will learn how to use environment variables in a Lambda function.
- Overview
- S3
- Create a bucket
- Upload a image file
- Lambda – Function
- Get the bucket name and the image name from environment variables
- Retrieves the object properties
- Python, boto3
[AWS Lab] DynamoDB – Basic Operations via CLI
In this lab, we will learn how to work with DynamoDB tables using AWS CLI.
- Overview
- DynamoDB
- Create a table
- List tables
- Get the table information
- Insert, Update, and delete items
- Scan and Query items
- DynamoDB
[AWS Lab] Lambda Invocation via Polling – DynamoDB Stream
In this lab, we will learn how a lambda function can be invoked via Polling.
- Overview
- Source: DynamoDB Stream
- Create a DynamoDB Table
- Enable the Stream
- Target: Lambda – Function
- logs the received message
- does not return any value
- configures the trigger
- Python