Comments (8)
+1
from emr-dynamodb-connector.
@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.
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.
@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?
- I would suggest adding necessary logging in putBatch to understand what is going on?
- 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.
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.
merge as #96
from emr-dynamodb-connector.
Hi Is there any documentation on how to use this with HIVE ?
from emr-dynamodb-connector.
Hi,
Is there any documentation on how to use this on EMR with HIVE ?
from emr-dynamodb-connector.
Related Issues (20)
- Conditional write support
- How does EMR connect to other Hadoop hdfs
- DynamodbImport - Support ignore empty lines
- Upgrade aws-java-sdk.version to latest aws java sdk version
- getAttributes of DynamoDBRecordReaderContext seems not in use
- Limited operator support in DynamoDBFilterPushdown for table hash key HOT 9
- Read throughput of table is not getting set correctly in 4.16.0 version
- DynamnoDBExport support for query criteria HOT 1
- Support for arbitrary precision number attributes
- Is this connector only for EMR? HOT 1
- Regarding pushdown filter predicate HOT 3
- How to configure DynamoDBExport READ_THROUGHPUT For On-Demand Billing Mode
- Deploy to maven central HOT 1
- Configured throughput and percentage ignored HOT 1
- mvn install / mvn package fails HOT 3
- Use of temporary credentials via env variables
- Hadoop scan with start end row example? (Row key filter)
- Use actual number of input splits when calculating target throughput per task
- Does this connector work with Spark 3.3 and EMR 6.11 HOT 1
- 5.x releases may not have been published as of March 2024 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emr-dynamodb-connector.