Coder Social home page Coder Social logo

spark-datasource-sap's Introduction

SAP data source for Spark

Warning

This repository is not maintained at the moment and CI action is disabled. Active maintenance and CI make sense only when there's access to an SAP system (there isn't right now).

Supported features

This was a POC project, here is what it can do:

  • Retrieve schemas for a list of tables
  • Read a table using RFC_READ_TABLE (within its limitations)
    • Allows configuring an alternative read table function
    • Some filter expressions from where clause could be pused down
  • Call a BAPI and return selected export parameters or tables

For usage examples see src/test/scala/SapSparkDatasourceIntegrationSpec.scala.

Known issues

Getting the SAP JCo driver

  • Get the driver from your SAP vendor or download it from SAP
  • Put the driver's jar, so and jnilib into the lib folder
  • Rename the files as explained here

Running tests

  • Get the SAP JCo JNI libraries (see above)
  • Set SAP credentials via the environment variables:
    export SAP_AHOST="/H/saprouter.example.com/S/0000/H/abcd/S/1111" SAP_USER=MYUSER SAP_PASSWORD=VERYSECRET
  • Run sbt test
  • Some tests relied on the contents of the test SAP system we had access to.

spark-datasource-sap's People

Contributors

sumerman 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.