# Issue with Parquet File Retrieval from S3

**URL:** https://discuss.elastic.co/t/issue-with-parquet-file-retrieval-from-s3/349236
**Category:** Beats
**Tags:** filebeat
**Created:** [December 13, 2023, 9:26am UTC](https://discuss.elastic.co/t/issue-with-parquet-file-retrieval-from-s3/349236 "2023-12-13T09:26:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)
#### Post date: [December 13, 2023, 9:26am UTC](https://discuss.elastic.co/t/issue-with-parquet-file-retrieval-from-s3/349236/1 "2023-12-13T09:26:09Z")

</div>

Hello everyone,

I'm facing an issue while trying to retrieve a Parquet file from S3 using Filebeat. Below, I've included configuration details:

```auto
filebeat.inputs:
- type: aws-s3
  bucket_arn: ${BUCKET_ARN}
  bucket_list_prefix: ${BUCKET_LIST_PREFIX}
  bucket_list_interval: 60s
  region: eu-west-1
  default_region: eu-west-1
  number_of_workers: 5
  access_key_id: ${ACCESS_KEY_ID}
  secret_access_key: ${SECRET_ACCESS_KEY}
  decoding.codec.parquet.enabled: true
  decoding.codec.parquet.process_parallel: true
  decoding.codec.parquet.batch_size: 1000

setup.template.enabled: false

processors:
  - add_fields:
      target: '@metadata'
      fields:
        op_type: "index"

output.elasticsearch:
  hosts: ["${ELASTICSEARCH_HOSTS}"]
  username: ${ELASTICSEARCH_USERNAME}
  password: ${ELASTICSEARCH_PASSWORD}
  protocol: https
  index: utenti123
  allow_older_versions: true

```

I have tried various `bucket_list_prefix` solutions including:

emr-serverless/user-output/  
emr-serverless/user--output/_/_  
emr-serverless/user-output/\*  
emr-serverless/user-output/\*/

However, we consistently encounter the following error:

```auto
failed processing S3 event for object key "emr-serverless/user-output/" in bucket "root-content": failed to create parquet decoder: failed to create parquet reader: parquet: file too small (size=0)

```

Any insights or suggestions on troubleshooting steps would be highly appreciated. Please let me know if additional information is needed.

Thank you

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 10, 2024, 11:27am UTC](https://discuss.elastic.co/t/issue-with-parquet-file-retrieval-from-s3/349236/2 "2024-01-10T11:27:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
