Giter Club home page Giter Club logo

cascading.jdbc's Introduction

Welcome

 This is the Cascading.JDBC module.

 It provides support for reading/writing data to/from an RDBMS via
 JDBC drivers when bound to a Cascading data processing flow.

 INSERT and UPDATE are both supported during sinking. Custom SELECTs
 can also be used during sourcing.

 Cascading is a feature rich API for defining and executing complex,
 scale-free, and fault tolerant data processing workflows on a Hadoop
 cluster. It can be found at the following location:

   http://www.cascading.org/

Building

 This release requires at least Cascading 1.0.1. Hadoop 0.19.x,
 and the related HBase release.

 To build a jar,

 > ant -Dcascading.home=... -Dhadoop.home=... jar

 To test,

 > ant -Dcascading.home=... -Dhadoop.home=... test

where "..." is the install path of each of the dependencies.


Using

  The cascading-jdbc.jar file should be added to the "lib"
  directory of your Hadoop application jar file along with all
  Cascading dependencies.

  See the JDBCTest unit test for sample code on using the JDBC taps and
  schemes in your Cascading application.

  You must also include a JDBC driver library for your database.

License

  Copyright (c) 2009 Concurrent, Inc.

  This work has been released into the public domain
  by the copyright holder. This applies worldwide.

  In case this is not legally possible:
  The copyright holder grants any entity the right
  to use this work for any purpose, without any
  conditions, unless such conditions are required by law.

cascading.jdbc's People

Contributors

cwensel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cascading.jdbc's Issues

Support non-Comparable tuple values

Tuple values not implementing the Comparable interface cause the jdbc tap to throw an exception. This means that no values of type byte[] can be saved to the db.

The issue is caused by the tuple.get( i ) method call in TupleRecord.java on line 51. If tuple.getObject(i) is used instead inserts containing byte[] values work fine.

DBOutputFormat::contructUpdateQuery and constructInsertQuery should not have terminating semicolon

JDBC spec indicate that you don't need the terminating semi-colon as it is JDBC implementation specific. For instance, in Oracle, you will fail with ORA-00911: invalid character error.

I removed it and validated that it worked with Oracle and the built in test with HSQLDB.

From http://download.oracle.com/javase/tutorial/jdbc/basics/tables.html:

This code does not end with a DBMS statement terminator, which can
vary from DBMS to DBMS. For example, Oracle uses a semicolon (;) to
indicate the end of a statement, and Sybase uses the word go. The
driver you are using will automatically supply the appropriate
statement terminator, and you will not need to include it in your JDBC
code.

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.