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
// Invoke Spark Shell | |
$ glue-spark-shell -v --properties-file /home/glue/glue_spark_shell.properties --packages com.databricks:spark-avro_2.11:4.0.0 | |
// Import Required Classes | |
import org.apache.spark.SparkContext | |
import com.amazonaws.services.glue.GlueContext | |
import com.amazonaws.services.glue.DynamicFrame | |
import com.amazonaws.services.glue.DynamicRecord | |
import com.amazonaws.services.glue.MappingSpec | |
import com.amazonaws.services.glue.errors.CallSite |
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
import sys | |
from awsglue.transforms import * | |
from awsglue.utils import getResolvedOptions | |
from pyspark.context import SparkContext | |
from awsglue.context import GlueContext | |
from awsglue.job import Job | |
from pyspark.sql.functions import * | |
from awsglue.dynamicframe import DynamicFrame | |
OlderNewer