koochiswathiTR opened a new issue, #6644:
URL: https://github.com/apache/hudi/issues/6644

   Hi,
   This is the first time we are setting up hudi with Multi writer,
   Below are my hudi config properties, I have set up 
   
HoodieWriteConfig.WRITE_CONCURRENCY_MODE.key()->"optimistic_concurrency_control",
   HoodieCompactionConfig.FAILED_WRITES_CLEANER_POLICY.key()->"LAZY",
    HoodieLockConfig.LOCK_ACQUIRE_NUM_RETRIES.key()->"3000",
   HoodieLockConfig.LOCK_ACQUIRE_CLIENT_NUM_RETRIES.key()->"1",
   
HoodieLockConfig.LOCK_PROVIDER_CLASS_NAME.key()->"org.apache.hudi.aws.transaction.lock.DynamoDBBasedLockProvider",
    DynamoDbBasedLockConfig.DYNAMODB_LOCK_TABLE_NAME.key()->"hoodi_lock", 
       DynamoDbBasedLockConfig.DYNAMODB_LOCK_PARTITION_KEY.key()->"lock",
       DynamoDbBasedLockConfig.DYNAMODB_LOCK_REGION.key()->"us-east-1",
       HoodieAWSConfig.AWS_ACCESS_KEY.key()->"XXX",
       HoodieAWSConfig.AWS_SECRET_KEY.key()->"XXX",
       HoodieAWSConfig.AWS_SESSION_TOKEN.key()->"XXXX",
       DynamoDbBasedLockConfig.DYNAMODB_ENDPOINT_URL.key()->  
RegionUtils.getRegion("us-east-1").getServiceEndpoint(AmazonDynamoDB.ENDPOINT_PREFIX)
 //"dynamodb.us-east-1.amazonaws.com"
   
   I have created dynamodb table which will be used for locking, and partition 
key as lock
   Below are my questions,
   
   Is it mandatory to set AWS_ACCESS_KEY,AWS_SECRET_KEY ?  - I dont want to set 
these keys
   Should we need to create Dynamodb table or Hudi will create it automatically?
   I am getting below exception while connecting to dynamodb table
   
   com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: The 
provided key element does not match the schema 
   Dynamodb table is created with partition key lock(String)
   
   - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)?
   
   - Join the mailing list to engage in conversations and get faster support at 
[email protected].
   
   - If you have triaged this as a bug, then file an 
[issue](https://issues.apache.org/jira/projects/HUDI/issues) directly.
   
   **Describe the problem you faced**
   
   A clear and concise description of the problem.
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1.
   2.
   3.
   4.
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   **Environment Description**
   
   * Hudi version : 0.11
   
   * Spark version :3.2.1
   
   * Hive version :
   
   * Hadoop version :
   
   * Storage (HDFS/S3/GCS..) :S3
   
   * Running on Docker? (yes/no) :no
   
   
   **Additional context**
   
   Add any other context about the problem here.
   
   **Stacktrace**
   
   ```Add the stacktrace of the error.```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to