legstar.avro.cob2avro

Translates COBOL structures to Avro schemas. Converts Mainframe data to Avro records.

License

License

GroupId

GroupId

com.legsem.legstar
ArtifactId

ArtifactId

legstar.avro.cob2avro
Last Version

Last Version

0.4.2
Release Date

Release Date

Type

Type

jar
Description

Description

legstar.avro.cob2avro
Translates COBOL structures to Avro schemas. Converts Mainframe data to Avro records.
Project Organization

Project Organization

LegSem

Download legstar.avro.cob2avro

How to add to project

<!-- https://jarcasting.com/artifacts/com.legsem.legstar/legstar.avro.cob2avro/ -->
<dependency>
    <groupId>com.legsem.legstar</groupId>
    <artifactId>legstar.avro.cob2avro</artifactId>
    <version>0.4.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.legsem.legstar/legstar.avro.cob2avro/
implementation 'com.legsem.legstar:legstar.avro.cob2avro:0.4.2'
// https://jarcasting.com/artifacts/com.legsem.legstar/legstar.avro.cob2avro/
implementation ("com.legsem.legstar:legstar.avro.cob2avro:0.4.2")
'com.legsem.legstar:legstar.avro.cob2avro:jar:0.4.2'
<dependency org="com.legsem.legstar" name="legstar.avro.cob2avro" rev="0.4.2">
  <artifact name="legstar.avro.cob2avro" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.legsem.legstar', module='legstar.avro.cob2avro', version='0.4.2')
)
libraryDependencies += "com.legsem.legstar" % "legstar.avro.cob2avro" % "0.4.2"
[com.legsem.legstar/legstar.avro.cob2avro "0.4.2"]

Dependencies

compile (5)

Group / Artifact Type Version
com.legsem.legstar : legstar-base jar 2.0.4
org.apache.avro : avro jar 1.7.7
org.apache.avro : avro-compiler jar 1.7.7
com.legsem.legstar : legstar.avro.generator jar 0.4.2
commons-io : commons-io jar 2.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

legstar.avro

A COBOL to Apache Avro translator based on LegStar

The idea is that mainframe data might be useful in environments where Apache Avro records are commonplace. One such environment is Hadoop where MapReduce jobs can read/write Avro records.

Legstar.avro helps deliver mainframe data as Avro records.

Objectives

  • Provide a Generator to produce artifacts from a COBOL copybook:

    • Avro Schema matching the COBOL copybook

    • Conversion logic to turn mainframe records to Avro Generic records

    • Avro specific records compiled from the Avro schema

  • Readers for pure Java, or Hadoop, that read mainframe files and deliver an Avro record for each mainframe record

Overview

Requirements

  • Java JDK 6 and above (It is important that this is a JDK not a simple JRE)

  • Maven 3 (If you build from sources)

  • Ant 1.9.x (To run samples)

  • Hadoop 2.4.1 (To run the Hadoop sample)

Build from sources

  1. Clone the GIT repository

  2. From a command window, while located in the folder where you cloned the repo, type:

mvn clean install

Run the samples

If you built the project from sources, you will find the distribution zip file under legstar.avro/legstar.avro.distrib/target.

Otherwise you can get the latest released zip here.

Unzip the zip file in a location of your choice.

1. Run the CustdatReader sample

Go to the samples folder and type:

ant

You can get more information on the CustdatReader sample provided on the wiki

2. Run the CustdatHadoopReader sample

Go to the samples folder and type:

ant -f build-hadoop.xml

You can get more information on the CustdatHadoopReader sample provided on the wiki

Versions

Version
0.4.2
0.4.1
0.3.0
0.2.0
0.1.0