简体   繁体   English

用于分析的 s3 命令

[英]s3 command for analyse

Suppose that you work in an e-commerce company, which keeps records of multiple products (more than a thousand) in the S3 bucket 'records'.假设您在一家电子商务公司工作,该公司在 S3 存储桶“记录”中保存了多种产品(超过一千种)的记录。 The files have the following structure for filename: 'category-productid.csv'.这些文件具有以下文件名结构:“category-productid.csv”。

Now, you have to analyse the records associated with the 'Electronics' category only.现在,您只需分析与“电子”类别关联的记录。 You are expected to download the specific category reports and then perform the analysis over your local machine.您需要下载特定的类别报告,然后在您的本地计算机上执行分析。

Provide the command that helps you perform this task.提供帮助您执行此任务的命令。

i am trying on s3 help page, but i can download the csv file, but how to analyze particular category in csv?我在 s3 帮助页面上尝试,但我可以下载 csv 文件,但如何分析 csv 中的特定类别?

aws s3 cp s3://records “local_path” --recursive --exclude “ ” --include “electronics aws s3 cp s3://records “local_path” --recursive --exclude “ ” --include “electronics

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM