Giter VIP home page Giter VIP logo

Comments (4)

IanMeyers avatar IanMeyers commented on August 23, 2024

Yes, if you reprocess the batch it will use the configuration entry that you have set when the reprocess occurs, which if unchanged would load both clusters. You could create a single cluster configuration that you link to the prefix and change the old one if you want to change the load target.

from aws-lambda-redshift-loader.

andreys70 avatar andreys70 commented on August 23, 2024

The s3Prefix is a primary key in config table, so it won't let me to create two separate load configurations, with different Redshift clusters, but for the same s3 prefix.
I had to trick the config a bit and created two separate entries with the single Redshift cluster config for each; one prod and one dr. I hope it is going to work:
1. bucket/source/schema/table_name/year=*/month=*/day=*/hour=*
2. bucket/source/schema/table_name/year=*/month=*/day=*/*

from aws-lambda-redshift-loader.

IanMeyers avatar IanMeyers commented on August 23, 2024

I think in that case it will potentially use both, or may just select the first one. I would instead change the prefix to a dummy value for the single cluster, and then flip it back to the dual cluster configuration once the reprocess is done.

from aws-lambda-redshift-loader.

andreys70 avatar andreys70 commented on August 23, 2024

I used your suggestion, Ian. The approach that I described above did not work, and as you said, it picked up the first matching prefix configuration.

from aws-lambda-redshift-loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.