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
Trying to Configure SourceTap #21
Comments
Could you put up a full stack trace and complete code configuration? |
Here is what i use to construct a Tap: props.put("db.columnFamily" , "cassandra_table_name");
props.put("mappings.cqlKeys", Arrays.asList("cassandra_col_1:Cascading_Field_1","cassandra_col_2:Cascading_Field_2"));
props.put("mappigs.cqlValues", Arrays.asList("cassandra_col_3:Cascading_Field_3"));
props.put("source.columns", "cassandra_col_1:CascadingField_1,cassandra_col_2:CascadingField_2,cassandra_col_3:CascadingField_3"); return new CassandraTap(new CassandraCQL3Scheme(props)); I am however using the Tap for as a sink just fine. The error I am grappling with is :
This is because Cascading cant seem to talk to the Tap to get field information out of it to plan the workflow. So, I need to understand how to construct a Tap as a Source. Thanks for your help ifesdjeen, |
Problem is that you still have to specify types: "types" {"id" "UTF8Type"
"version" "Int32Type"
"date" "DateType"
"count" "DecimalType"} In Java it would look pretty much like that: // Put mappings of types, specifying which source field has which type
Map<String, String> types = new HashMap<>();
types.put("name", "UTF8Type");
types.put("language", "UTF8Type");
types.put("schmotes", "Int32Type");
types.put("votes", "Int32Type");
config.put("types", types);
props.put("types", types); |
I really really appreciate if you could add a little README section about CQL3 :) i mean - if my comment have helped :) |
Hi,
I am trying to configure a SourceTap from Cassandra to source data from a column family.
I found that the docs are not in sync with the code; I am unclear on the expected configurations for the settings(Map<String, Object>). I keep running into:
java.lang.RuntimeException: no config type specs for key: types
I have tried setting the properties that the code seems to look for :
types.dynamic, source.columns(seperated by ':') etc. but to not much luck
Any sample code here would help.
Thanks guys,
Karthik
The text was updated successfully, but these errors were encountered: