S3 Avro Repair Link to heading

NodeJs application to connect and download avro from S3 bucket, test and repair. You can configure to upload de recoverd file, if you want. This application has been builded to solve a specific problem, so improvements can be done.

I wish this project can be used to “start” from other people needs. In no way can I be held responsible for any loss of data or problems that the application may cause (use at your own risk)

Avro Tools Link to heading

Documentation about the tool and details can be seen here.

More about cat command you can read in this feature documentation.

Settings Link to heading

It’s necessary set the path of Java will be used to run Avro Tools. To configure edit the application.yml. If you don’t know where is the Java, you can use the whereis linux command to show.

Install Link to heading

npm install --no-optional 

Parameters Link to heading

The parameters must be set via process variables for NodeJS. Here are the available settings:

VariableDescription
AWS_ACCESS_KEY_IDSpecifies an AWS access key associated with an IAM user or role.
AWS_REGIONSpecifies the AWS Region to send the request to.
AWS_SECRET_ACCESS_KEYSpecifies the secret key associated with the access key. This is essentially the “password” for the access key.
AWS_SESSION_TOKENSpecifies the session token value that is required if you are using temporary security credentials that you retrieved directly from AWS STS operations.
DEBUG_LEVELSpecify application logging level

Run Link to heading

DEBUG_LEVEL="debug" AWS_ACCESS_KEY_ID="" AWS_REGION="" AWS_SECRET_ACCESS_KEY="" AWS_SESSION_TOKEN="" node --require ts-node/register src/app.ts