Skip to content

Herd Uploader #370

@tinshuksingh

Description

@tinshuksingh

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 object with registration server successfully but after that getting null pointer exception while 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
    } ]
    }

    image

  • We tried to pass directory path in manifest.json file but it was failing with exception UnrecognizedPropertyException.
    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
    } ]
    }

    image

  • Please let us know if we are missing anything.

Thanks,
Tinshuk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions