Streamsets HTTP client && JSON parse && local FS use

Source: Internet
Author: User
Tags streamsets

Streamsets contains a rich set of components, Origin processer destination

Test examples are integrated with the HTTP client and JSON processing

Start the service

Using Docker

    • Create pipeline
    • Add an HTTP client component
    • Configuring the HTTP Client

      HTTP Service Address: Https://raw.githubusercontent.com/rongfengliang/json-learning/master/user3.json

    • Add JSON parse
    • Configuring JSON Parse

      Note that the path is/starts with a way like jsonpath and JSON patches, depending on the code

    • Add Local FS Component

      Output to temp file system

    • Connecting components

Run


The converted Data

{"name":"json-patch","version":"1.0.0","main":"index.js","license":"MIT","dependencies":{"generate-schema":"^2.6.0","json-merge-patch":"^0.2.3","json-templater":"^1.2.0","json8-patch":"^0.4.1","jsonpatch":"^3.0.1","jsonschema":"^1.2.4","uglify-js":"^3.4.5","uglifyify":"^5.0.1","uglifyjs":"^2.4.11"},"apps":"{\"users\":{\"name\":\"dalong\",\"age\":33}}","type":"dGhpcyBpcyBhIGV4YW1wbGU=","scripts":{"t":"node t","p":"node p","s":"node s","gs":"node gs","build":"browserify t.js | uglifyjs -c > bundle.js","live":"live-server","m":"node m"},"devDependencies":{"browserify":"^16.2.2","live-server":"^1.2.0"},"result":{"users":{"name":"dalong","age":33}}}
Resources

Https://streamsets.com/documentation/datacollector/latest/help/datacollector/UserGuide/Origins/Origins_ Overview.html#concept_hpr_twm_jq

Streamsets HTTP client && JSON parse && local FS use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.