-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Hi Team,
We created business object definition and now trying to upload file to S3 bucket using herd-uploader-0.63.0.jar from ec2 instance.
-
We followed the wiki steps which you mentioned to upload file to S3.
-
We are able to pre-register the
business objectwith registration server successfully but after that gettingnull pointer exceptionwhile reading the directory path.
manifest.json
{
"namespace": "S3UploadNamespace",
"businessObjectDefinitionName": "S3BusinessDefination",
"businessObjectFormatUsage": "PRC",
"businessObjectFormatFileType": "TXT",
"businessObjectFormatVersion": "0",
"partitionKey": "PROCESS_DATE",
"partitionValue": "2014-04-01",
"storageName": "S3StorageUnit",
"subPartitionValues": [
"2014-04-01"
],
"manifestFiles" : [ {
"fileName" : "testFile1.gz",
"rowCount" : 0
}, {
"fileName" : "testFile2.gz",
"rowCount" : 0
} ]
}

-
We tried to pass directory path in
manifest.jsonfile but it was failing with exceptionUnrecognizedPropertyException.
manifest.json
{
"namespace": "S3UploadNamespace",
"businessObjectDefinitionName": "S3BusinessDefination",
"businessObjectFormatUsage": "PRC",
"businessObjectFormatFileType": "TXT",
"businessObjectFormatVersion": "0",
"partitionKey": "PROCESS_DATE",
"partitionValue": "2014-04-01",
"storageUnits": [ {
"storageName": "S3StorageUnit",
"storageDirectory": {
"directoryPath": "Herd_poc_bucket"
},
"storageFiles": [
{
"filePath": "testFile1.txt",
"fileSizeBytes": 0,
"rowCount": 0
}
],
"discoverStorageFiles": true
}],
"subPartitionValues": [
"2014-04-01"
],
"manifestFiles" : [ {
"fileName" : "testFile1.gz",
"rowCount" : 0
}, {
"fileName" : "testFile2.gz",
"rowCount" : 0
} ]
}

-
Please let us know if we are missing anything.
Thanks,
Tinshuk