【发布时间】:2016-04-14 19:30:41
【问题描述】:
我正在尝试设置用于备份 DynamoDB 的管道 我几乎明白了... 我没有默认 VPC,我无法更改它
备份任务无法定位我正在使用的区域 在 syslog 中,我收到以下错误:
2016-04-11 08:53:32,444 警告 org.apache.hadoop.dynamodb.DynamoDBUtil (main):尝试获取 AWS 区域信息时出现异常。将要 忽略并默认为 us-east-1
这导致在标准错误中:
线程“主”java.lang.RuntimeException 中的异常:不能 在 DynamoDB 中查找表 dev_user。
我的部分管道定义:
{
"objects": [
{
"output": {
"ref": "S3BackupLocation"
},
"input": {
"ref": "DDBSourceTable"
},
"maximumRetries": "2",
"name": "TableBackupActivity",
"step": "s3://dynamodb-emr-#{myDDBRegion}/emr-ddb-storage-handler/2.1.0/emr-ddb-2.1.0.jar,org.apache.hadoop.dynamodb.tools.DynamoDbExport,#{output.directoryPath},#{input.tableName},#{input.readThroughputPercent}",
"id": "TableBackupActivity",
"runsOn": {
"ref": "EmrClusterForBackup"
},
"type": "EmrActivity",
"resizeClusterBeforeRunning": "true"
},
...
{
...
"coreInstanceCount": "1",
"releaseLabel": "emr-4.5.0",
"masterInstanceType": "m3.xlarge",
"type": "EmrCluster",
"terminateAfter": "1 Hour",
"name": "EmrClusterForBackup",
"coreInstanceType": "m3.xlarge",
"id": "EmrClusterForBackup",
"region": "eu-west-1"
},
{
"readThroughputPercent": "#{myDDBReadThroughputRatio}",
"name": "DDBSourceTable",
"id": "DDBSourceTable",
"type": "DynamoDBDataNode",
"region": "eu-west-1",
"tableName": "dev_user"
}
],
"parameters": [
...
{
"default": "eu-west-1",
"watermark": "eu-west-1",
"description": "Region of the DynamoDB table",
"id": "myDDBRegion",
"type": "String"
}
],
"values": {
"myDDBRegion": "eu-west-1",
"myDDBTableName": "dev_user",
"myDDBReadThroughputRatio": "0.25",
...
}
}
【问题讨论】:
标签: amazon-web-services amazon-s3 amazon-dynamodb