Using Amazon EMR with AWS Glue Catalog

   Go back to the Task List

  « 4. Create Glue Database    6. Launch EMR Cluster »

5. Create Glue Crawler

In this step, you configure AWS Glue Crawler to catalog the customers.csv data stored in the S3 bucket.

  1. Goto Glue Management console. Click on the Crawlers menu in the left and then click on the Add crawler button.

    AWS Glue

  2. On the next screen, type in dojocrawler as the crawler name and click on the Next button.

    AWS Glue

  3. On the next screen, select Data stores for the Crawler source type and select Crawl all folders for the Repeat crawls of S3 data stores fields. Click on the Next button.

  4. On the next screen, select S3 as the data store. Select Specified path in my account option for the Crawl data in field. Select s3://dojo-lake/customers for the include path. If you created bucket with a different name; then use that bucket name. Click on the Next button.

    AWS Glue

  5. On the next screen, select No for Add another data store and click on the Next button.

  6. On the next screen, select Choose an existing IAM role option. Select dojo-glue-role as the IAM role and click on the Next button.

    AWS Glue

  7. On the next screen, for the crawler run frequency, select Run on demand and click on the Next button.

  8. On the next screen, select dojodb as the database and click on the Next button.

    AWS Glue

  9. On the next screen, click on the Finish button. The crawler is created in no time. Select the crawler and click on the Run crawler button.

    AWS Glue

  10. The crawler execution will start. Wait till it finishes and you can see one table catalog added.

    AWS Glue

  11. Open the table details and check the schema to get familiar with the data format.

    AWS Glue

  12. In the next step, you launch the EMR Cluster.