You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone,
Using spline JAR (spark-3.3-spline-agent-bundle_2.12 JAR 2.0.0), I'm attempting to extract lineage from Glue jobs; however, this only functions with spark DataFrame and not with glue dynamic frame.
Is there any functionality in the Spline JAR or anything else that will help identify the Glue DynamicFrame's lineage?
For our UseCase, we are currently utilizing Glue 4.0.
Code:
frompyspark.contextimportSparkContextfromawsglue.contextimportGlueContextfromawsglue.dynamicframeimportDynamicFramefrompyspark.sqlimportSparkSession# Create a Spark sessionspark=SparkSession.builder.appName("CSV to DynamicFrame").getOrCreate()
# Read the CSV file into a DataFramedf=spark.read.format("csv").option("header", "true").load("s3://test/Employee/london_emp.csv")
# Perform transformations on the DataFrame if neededdf_transformed=df.withColumn("salary", df["salary"] *1.10)
# Create a GlueContextsc=SparkContext.getOrCreate()
glueContext=GlueContext(sc)
# Convert the Spark DataFrame to a DynamicFramedynamic_frame=DynamicFrame.fromDF(df, glueContext, "dynamic_frame")
# Write the DynamicFrame to S3glueContext.write_dynamic_frame.from_options(
frame=dynamic_frame,
connection_type="s3",
connection_options={"path": "s3://test/netflix"},
format="parquet"
)
The text was updated successfully, but these errors were encountered:
Hello everyone,
Using spline JAR (spark-3.3-spline-agent-bundle_2.12 JAR 2.0.0), I'm attempting to extract lineage from Glue jobs; however, this only functions with spark DataFrame and not with glue dynamic frame.
Is there any functionality in the Spline JAR or anything else that will help identify the Glue DynamicFrame's lineage?
For our UseCase, we are currently utilizing Glue 4.0.
Code:
The text was updated successfully, but these errors were encountered: