-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java Heap Problem with Tap/Table with over 40 million entries #21
Comments
Can you post a stacktrace? Is this when reading from the table or when writing to it? Which version of Cascading and Cascading-jdbc are you using? |
We had something similar here with MySQL - the trick was to get the statement into Streaming mode (which might be DB-specific). I'm using v2.5.1, so I had to replace DBInputFormat.java and had to uncomment When I've some time left I'm gonna update to the latest version and maybe patch it. |
@locked-fg those kind of patches are always welcome. If you need database specific changes you can subclass subclass DBInputFormat in cascading-jdbc-mysql, like we do for oracle. Before we can use your patch, you will have to sign the contributors agreement: http://files.concurrentinc.com/agreements/Concurrent_Contributor_Agreement.doc |
I finally forked & checked out the project, made the according changes and did a "gradle build" in the cascading-jdbc-mysql folder (succeeded). |
There is currently no magic, you have to instantiate the MySQLScheme yourself, if you want to use it. We only do a bit of magic in the JDBCFactory, that we use for lingual. |
I implemented the change and tested it in Scalding using:
The contributors agreement is sent to concurrent already. |
@fbrubacher Can you please try again with cascading-jdbc-mysql version 2.5.5-wip-93? This has the fix for mysql streaming from @locked-fg in it. |
Will try to port the fix into postgres and update the ticket ! |
any update on this? Can this be closed? |
I am using Cascading - Postgres with a table with 40 million entries and I am getting a Java Heap problem.... Any suggestions on how to solve, hack this ?
Best
The text was updated successfully, but these errors were encountered: