Member since
08-21-2013
146
Posts
25
Kudos Received
34
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3108 | 10-24-2016 10:43 AM | |
6904 | 03-13-2016 02:15 PM | |
3550 | 12-11-2015 01:48 AM | |
3015 | 11-23-2015 12:11 PM | |
2774 | 07-06-2015 10:40 AM |
10-15-2014
03:22 PM
Seems like sed or similar on the text of the morphline config file are your friends here.
... View more
10-15-2014
12:35 AM
1 Kudo
Based on the TRACE log your XQuery generates the following output: ?foo? which isn?t meaningful for a morphline (e.g. into which morphline field should the ?foo? string be stored into and what if you want to return values for multiple fields or multiple records?) Thus, in your case the xquery command returns false and logDebug is never executed, hence you see no logDebug output. Note that the output of an XQuery must be shaped to conform to the format described here: http://kitesdk.org/docs/current/kite-morphlines/morphlinesReferenceGuide.html#/xquery Example XQuery output: foo bar This will generate a morphline record with a myFoo field that contains ?foo", as well as a myBar field that contains ?bar". Wolfgang.
... View more
10-14-2014
10:32 AM
CDH 4.x uses CDK whereas CDH 5.x uses Kite. The diff is just in the package names.
... View more
10-14-2014
10:05 AM
This info is in section "version 0.10.0" at http://kitesdk.org/docs/current/release_notes.html Wolfgang.
... View more
10-13-2014
01:38 PM
1 Kudo
That?s pretty much what it already does. Read the first paragraph at https://github.com/kite-sdk/kite-examples/tree/master/kite-examples-morphlines again and look into the dirs mentioned there.
... View more
10-13-2014
01:12 PM
This is described here: https://github.com/kite-sdk/kite-examples/tree/master/kite-examples-morphlines
... View more
09-30-2014
01:37 PM
That would work fine as well. Wolfgang.
... View more
09-30-2014
11:42 AM
1 Kudo
You can try the java command, like so: java { code: """ String str = new String((byte[]) record.getFirstValue("myInputField"), "UTF-8"); record.put("myOutputField", str); return getChild().process(record); // pass record to next command in chain """ } Wolfgang.
... View more
08-21-2014
06:20 AM
Try to use syntax with quotes, like so : /my_contexts : "/attachments[]/documents[]/context" Wolfgang.
... View more