Coder Social home page Coder Social logo

Comments (8)

Tang8330 avatar Tang8330 commented on September 4, 2024

+1

from emr-dynamodb-connector.

Tang8330 avatar Tang8330 commented on September 4, 2024

@itsgrimetime I tried to modify source to be something like this: https://github.com/Tang8330/emr-dynamodb-connector/blob/dynamo4.2/emr-dynamodb-hadoop/src/main/java/org/apache/hadoop/dynamodb/DynamoDBClient.java#L151

However, it's not quite working and is still inserting, despite me playing around with the default state.

Any ideas? I'm happy to make the necessary changes.

from emr-dynamodb-connector.

Tang8330 avatar Tang8330 commented on September 4, 2024

my function looks something like this:

JobConf jobConf = new JobConf(sc.hadoopConfiguration());
jobConf.set(DynamoDBConstants.INPUT_TABLE_NAME, INPUT_TABLE_NAME);
jobConf.set(DynamoDBConstants.OUTPUT_TABLE_NAME, OUTPUT_TABLE_NAME);
jobConf.set(DynamoDBConstants.DELETION_MODE, "true");

// Should be deleting.
filtered_results.saveAsHadoopDataset(jobConf);

from emr-dynamodb-connector.

ajay25 avatar ajay25 commented on September 4, 2024

@Tang8330 Did you ensure that writeBatch()- https://github.com/awslabs/emr-dynamodb-connector/blob/master/emr-dynamodb-hadoop/src/main/java/org/apache/hadoop/dynamodb/DynamoDBClient.java#L202 was indeed invoked?

  1. I would suggest adding necessary logging in putBatch to understand what is going on?
  2. Also, examine batchwriteresult. Specifically check for itemcollectionmetrics https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html#API_BatchWriteItem_ResponseSyntax to see how many records were affected.

from emr-dynamodb-connector.

Tang8330 avatar Tang8330 commented on September 4, 2024

I would suggest adding necessary logging in putBatch to understand what is going on?

Adding it in now, I'll test it out now.

examine batchwriteresult

I have difficulties examining the output since the function results.saveAsHadoopDataset(jobConf); is void

from emr-dynamodb-connector.

taklwu avatar taklwu commented on September 4, 2024

merge as #96

from emr-dynamodb-connector.

tuppimax avatar tuppimax commented on September 4, 2024

Hi Is there any documentation on how to use this with HIVE ?

from emr-dynamodb-connector.

satya-thirumani avatar satya-thirumani commented on September 4, 2024

Hi,

Is there any documentation on how to use this on EMR with HIVE ?

from emr-dynamodb-connector.

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.