[AWS -Python] DynamoDB with Boto3

Let’s work with DynamoDB with the Python Boto3 library.

We can

  • list tables
  • retrieve table information including keys and indexes
  • create a table
  • read, write, and delete items
  • delete a table

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html

Continue reading “[AWS -Python] DynamoDB with Boto3”

[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.
Continue reading “[Spark By Example] SparkSession”