I have a spark dataframe named cost_matrix
. I am trying to convert this spark dataframe to a aws glue dynamic frame using the following line of code:
glue_cost_matrix = DynamicFrame.fromDF(cost_matrix, glueContext, 'glue_cost_matrix')
However, I'm getting this error:
An error occurred while calling z:com.amazonaws.services.glue.DynamicFrame.apply. java.lang.IllegalArgumentException
I am new at glue jobs so I'm not sure what it means. I would really appreciate your help. My Glue Job is a spark type and I'm using python as ETL language.