In my case, it was due to the comma after the last column in the table. For example:
CREATE EXTERNAL TABLE IF NOT EXISTS my_table ( one STRING, two STRING, ) LOCATION 's3://my-bucket/some/path';
After I removed the comma at the end of two STRING, it worked fine.
Ralph bolton
source share