Ask Your Question
1

HTTP client to Cassandra

asked 2017-12-07 06:29:47 -0600

HARSH TG gravatar image

Using HTTP client origin after specifying resource URL and content type, it returns the response as a JSON. Now, I need to store the response JSON in CASSANDRA column. Since the response is in the boolean value, I have used Boolean data type in CQL. Can you please help me out to store the response data in CASSANDRA column.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-12-08 00:11:30 -0600

HARSH TG gravatar image

updated 2017-12-08 01:29:58 -0600

Once the configuration in HTTP client origin is done, receive the response JSON in JSON PARSER and configure "Field to Parse" as "/{JSON OBJECT}" and the "Target Field" as of where do you want the response to be stored in the Cassandra column. Then use "Field Type Converter" to convert to String. Configure "Fields to Convert " as "/{JSON OBJECT}". And configure the Cassandra, "Field to Column Mapping" as "/{JSON OBJECT}".

Hope this helps :)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-12-07 06:29:47 -0600

Seen: 356 times

Last updated: Dec 08 '17