AWS IoT Analytics Datasets returning column names but no rows

0

Hi there, I have setup an ETL pipeline in AWS IoT Analytics (channels, pipeline, data store) and now want to create IoT Analytics Datasets. When creating the dataset, the query does not return any data, except for the column names. For testing purposes, I am using the default select query: SELECT * FROM my_data_store LIMIT 10. The datastore contains data, e.g., I ran a Glue Crawler over the data in the data store, queried it with Athena and got correct results. I also manually downloaded the data from S3, and the data can be queried locally. But the Datasets CSV keeps being empty (except for all the column names). The Datasets content view in the AWS Console also only displays the Column Names. To be on the safe side, I further added full S3 permissions to my IAM Roles, but without any success.

What is the problem here? Is the dataset functionality working for any of you?

Best, Jon

已提问 1 年前300 查看次数
1 回答
1
已接受的回答

Are you using your own S3 bucket for storing/managing the data then you must grant AWS IoT Analytics permission to perform these actions on your Amazon S3 bucket for you. If you use the data store as a source for an SQL query dataset, set up an Amazon S3 bucket policy that grants AWS IoT Analytics permission to invoke Amazon Athena queries on the contents of your bucket. Please refer to the https://docs.aws.amazon.com/iotanalytics/latest/userguide/policy.html link for more details.

If you update the options or permissions of your customer managed data store, you might need to reprocess channel data to ensure that any previously ingested data is included in dataset contents. For more information, see https://docs.aws.amazon.com/iotanalytics/latest/userguide/reprocessing.html#aws-iot-analytics-reprocessing.

  • s3:GetBucketLocation
  • s3:PutObject
  • s3:DeleteObject
AWS
Dhilip
已回答 1 年前
profile picture
专家
已审核 1 个月前
  • Thank you! That solved it. I somehow overlooked this part in the docs.

  • Glad this worked.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则