I am using Spark 2.0. Requirement is to create a new table from selecting values into dataframe. While writing out the df as
df.write.saveasTable(hive_table_name, format='parquet',mode='overwrite')
Error is: client cannot authenticate via:[TOKEN, KERBEROS] Host Details : local host is: "some-ip" and destination host is:"some-other-ip"
Also if the table does not exist in hive, will spark.write.saveasTable create a new table in hive and auto infer the schema?