'pyspark managed hive table grant not working

I am using below code to save results of processing from dataframe to a hive table

df.write.mode("append").format("parquet").saveAsTable(tablename)

I am able to access the table using select sql externally, after the spark processing is completed using spark-submit

But another user is getting error "permission denied" I have given the user permission using below grant statement

grant select on table schema1.tablename to user anotheruser;


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source