AWS Athena Returning Zero Records from Tables Created from GLUE Crawler input csv from S3

Kush Vyas picture Kush Vyas · Nov 13, 2017 · Viewed 8.9k times · Source

Part One :

I tried glue crawler to run on dummy csv loaded in s3 it created a table but when I try view table in athena and query it it shows Zero Records returned.

But the demo data of ELB in Athena works fine.

Part Two (Scenario:)

Suppose I Have a excel file and data dictionary of how and what format data is stored in that file , I want that data to be dumped in AWS Redshift What would be best way to achieve this ?

Answer

harpoon11 picture harpoon11 · Dec 26, 2017

I experienced the same issue. You need to give the folder path instead of the real file name to the crawler and run it. I tried with feeding folder name to the crawler and it worked. Hope this helps. Let me know. Thanks,