Git Product home page Git Product logo

db2-spark-example's Introduction

db2-spark-example

This is the supporting example application for the db2-dev-env project. Showing how simple it could be talking back to our legacy DB2 instance running on a mainframe using a lite weight framework like Java spark.

Prerequisites

I'm on a Mac using Homebrew goodness...

• Java 1.8

brew cask install java

• Gradle

brew install gradle

• vagrant trigger plugin

vagrant plugin install vagrant-triggers

• A running DB2 instance

Follow the instructions here... db2-dev-env

or

This can be run with your own instance of DB2, just update the params in the build.gradle file or run the jar with manual arguments

Setting up and compiling

Create a libs folder and download the IBM JDBC driver from IBM db2jcc4.jar and place it in the lib folder.

If outside the db2-dev-env on your OS

gradle runJar

or

If inside the db2-dev-env

gradle runDevJar

or

Update the runJar task in the build.gradle file to suit your environment.

If running the API outside the db2-dev-env

http://localhost:7654/healh

http://localhost:7654/staff?name=Sanders

Look here for example data in the IBM sample database

As this is using log4j you can watch the print out in the console.

db2-spark-example's People

Contributors

418error avatar

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.