Giter VIP home page Giter VIP logo

mainframeingestion's Introduction

Mainframe ingestion in the cloud

This repository is for a demo of doing ingestion of mainframe files defined by COBOL copybooks into a relational database using Spring Cloud Data Flow and it's related ecosystem on CloudFoundry.

java -jar spring-cloud-dataflow-server-local-1.7.0.M1.jar
--spring.datasource.url=jdbc:mysql://localhost:3306/store
--spring.datasource.username=root
--spring.datasource.password=p@ssw0rd
--spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
--spring.cloud.dataflow.task.maximum-concurrent-tasks=3

app register --name sftp --type source --uri file:///Users/mminella/Documents/IntelliJWorkspace/mainframeingestion/bin/cloudfoundry/apps_static/sftp-source-rabbit-2.0.3.BUILD-SNAPSHOT.jar app register --name launcher --type sink --uri file:///Users/mminella/Documents/IntelliJWorkspace/mainframeingestion/bin/cloudfoundry/apps_static/task-launcher-dataflow-sink-rabbit-1.0.0.BUILD-SNAPSHOT.jar app register --name store-ingest --type task --uri file:///Users/mminella/Documents/IntelliJWorkspace/mainframeingestion/bin/local/store-ingestion-0.0.1-SNAPSHOT.jar

dataflow:> task create store-ingest --definition "store-ingest" dataflow:> stream create file-ingest --definition "sftp --sftp.factory.password=scdf123 --sftp.factory.username=scdf --sftp.factory.host=0.0.0.0 --sftp.factory.allow-unknown-keys=true --sftp.remote-dir=/Users/scdf/input --sftp.local-dir=/Users/mminella/temp/input --task.launch.request.application-name=store-ingest --task.launch.request.format=DATAFLOW --logging.level.com.jcraft.jsch=ERROR | launcher --spring.cloud.dataflow.client.server-uri=http://localhost:9393/" dataflow:> stream deploy file-ingest

cd /Users/scdf/input sudo cp ~/Documents/IntelliJWorkspace/mainframeingestion/file-generator/target/data/*.bin .

DELETE FROM STORE; DELETE FROM BATCH_JOB_EXECUTION_CONTEXT; DELETE FROM BATCH_STEP_EXECUTION_CONTEXT; DELETE FROM BATCH_STEP_EXECUTION; DELETE FROM BATCH_JOB_EXECUTION_PARAMS; DELETE FROM BATCH_JOB_EXECUTION; DELETE FROM BATCH_JOB_INSTANCE; DELETE FROM TASK_TASK_BATCH; DELETE FROM TASK_EXECUTION_PARAMS; DELETE FROM TASK_EXECUTION;

mainframeingestion's People

Contributors

mminella avatar

Stargazers

 avatar Siva Karuppiah avatar  avatar  avatar Rowan Jacobs avatar

Watchers

 avatar James Cloos avatar

Forkers

mastermind1981

mainframeingestion's Issues

Error in file-generator

As per the recommendation , I tried buidling the File -generator , getting the following error [ERROR] Failed to execute goal on project file-generator: Could not resolve dependencies for project io.spring.batch:file-generator:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: net.sf:jrecord:jar:0.90, net.sf:cb2xml:jar:0.90: Could not find artifact net.sf:jrecord:jar:0.90 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Mainframe Batch File Processing Migration with Spring batch clarification

In the demo you are using .dat file and explained that is a binary and reading your content with copybooy

    03  DTAR1000-REC.                                                
        10 DTAR1000-STORE-NO       PIC S9(4) COMP.
        10 DTAR1000-REGION-NO      PIC S9(4) COMP.
        10 DTAR1000-STORE-NAME     PIC X(50).                        
        10 DTAR1000-NEW-STORE      PIC X(1).                         
        10 DTAR1000-ACTIVE-STORE   PIC X(1).                         
        10 DTAR1000-CLOSED-STORE   PIC X(1).                         
        10 DTAR1000-DC-TYPE        PIC X(1).                         
        10 DTAR1000-SRC-TYPE       PIC X(1). 
        10 DTAR1000-HO-TYPE        PIC X(1). 

I have a similar situation where I should read a character FB Dataset of mainframe using PL1 program using DCL Gen , we are migrating the batch which the PL1 process the character file data set with DCLGEN copybook to Java Based Batch application . We are planning to migrate this using spring batch and spring task flow. Can you give your recommendation on whether our business case can we reuse the implementation which your team have released?

PL1_Data_DCLGen Layout.docx

Demo data File

Hi,

I am trying to run this demo , downloaded the source, can you please give me the files that should be used for this application

cd /Users/scdf/input sudo cp ~/Documents/IntelliJWorkspace/mainframeingestion/file-generator/target/data/*.bin .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.