Skip to content

Commit

Permalink
SPOT-212: [Ingest] [Proxy] bluecoat.py parser not able to save into H…
Browse files Browse the repository at this point in the history
…ive table

Replaced saveAsTable syntax (deprecated for Hive tables in Spark 2.0) with insertInto
  • Loading branch information
Deon Griessel committed Aug 1, 2017
1 parent 781ccf7 commit 1e9833e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spot-ingest/pipelines/proxy/bluecoat.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def save_data(rdd,sqc,db,db_table,topic):
sqc.setConf("hive.exec.dynamic.partition", "true")
sqc.setConf("hive.exec.dynamic.partition.mode", "nonstrict")
hive_table = "{0}.{1}".format(db,db_table)
df.write.saveAsTable(hive_table,format="parquet",mode="append",partitionBy=('y','m','d','h'))
df.write.format("parquet").mode("append").insertInto(hive_table)

else:
print("------------------------LISTENING KAFKA TOPIC:{0}------------------------".format(topic))
Expand Down

0 comments on commit 1e9833e

Please sign in to comment.