cwensel / cascading.jdbc Goto Github PK
View Code? Open in Web Editor NEWJDBC adapter for Cascading
Home Page: http://www.cascading.org/
JDBC adapter for Cascading
Home Page: http://www.cascading.org/
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.