Try to read file in spark, Create a dataframe and try to load data into hive. If name already exists ignore otherwise increment the id value with 1

Try to read file in spark,
Create a dataframe and try to load data into hive.
If name already exists ignore otherwise increment the id value with 1