When you create an external table in Hive with an S3 location is the data transfered?

后端 未结 2 1561
不思量自难忘°
不思量自难忘° 2021-02-09 10:38

When you create an external table in Hive (on Hadoop) with an Amazon S3 source location is the data transfered to the local Hadoop HDFS on:

  • external table creation
2条回答
  •  暖寄归人
    2021-02-09 11:17

    Map tasks will read the data directly from S3. Between the Map and Reduce steps, data will be written to the local filesystem, and between mapreduce jobs (in queries that require multiple jobs) the temporary data will be written to HDFS.

    If you are concerned about S3 read costs, it might make sense to create another table that is stored on HDFS, and do a one-time copy from the S3 table to the HDFS table.

提交回复
热议问题