F

Flyte enables you to build & deploy data & ML pipelines, hassle-free. The infinitely scalable and flexible workflow orchestration platform that seamlessly unifies data, ML and analytics stacks. Explore and Join the Flyte Community!

Guidance on FlyteFile Permission Issue

Summary

The user is looking for guidance on how to return a list of files in Flyte from a zip file, which they need to split into batches for a map_task. They are facing a "permission denied" error when trying to return List[FlyteFile] while saving in the /tmp directory. They mention that using a list of FlyteDirectories worked, but they are unsure why a list of FlyteFiles did not.

Status
resolved
Tags
  • flyte
  • Flyte
  • Flyte Support
  • zip
  • User
  • /tmp
  • Developer
  • File Handling
  • Product Help
  • Question
  • Developer Help
Source
#ask-the-community
    k

    kumare

    11/6/2024

    Can share a snippet in a bit once at the keyboard

    l

    lior.greenberg

    11/6/2024

    Interesting, and that will make each pod only download each needed batches?

    k

    kumare

    11/6/2024

    Hmm weird - you can also use an iterator to stream write

    l

    lior.greenberg

    11/6/2024

    they are already in a zip, i want to unzip them to chunk into batches for a map_task.

    A list of FlyeDIrectorys actually worked, not sure why a list of FlyteFiles didn't.

    k

    kumare

    11/6/2024

    Also list of Flytefile should work

    k

    kumare

    11/6/2024

    You can still split it later just return the zip for now

    k

    kumare

    11/6/2024

    You can return a zip as a single file

    l

    lior.greenberg

    11/6/2024

    Hi, What is the correct Flyte way to return a list of files? (they are currently in a zip, and i want to split them into batches after). When i return List[FlyeFile] i get permission denied for the files (saving in /tmp)