Search results for kitap
singer-java module provide a Java API to write a custom singer. To import it, add the following dependency: Then you have access to the Singer class and its companion which provides the primitives to output properly the data: To build schema, keys, bookmarks, json and state which are all either JsonObject or JsonArray you can rely on JsonBuilderFactory which can be instantiated with this snippet: component-kitap is the name of the integration between singer-java and Talend Component Kit. It enables to run native Talend Component Kit components through a tap. The module relies on a proper setup of the component and classpath: Classpath is well setup - composed of component-kitap with a default SLF4J binding configured to log only errors on stderr. For convenience, you can use the all in one bundle provided by the module: org.talend.sdk.component:component-kitapp:${kit.version}:fatjar. Component is "deployed" - i.e. its maven repository is set provisionned with its dependencies. If you downloaded a component as a .car then you can run the car to do it. You can enforce the maven location through the system property talend.component.manager.m2.repository. Regarding SLF4J, the fatjar uses slf4j-standard of the framework which enables to set the logged level to error through a system property: -Dorg.talend.sdk.component.slf4j.StdLogger.level=err. To automatically register a component plugin/family you must add to the classpath a TALEND-INF/plugins.properties: The file only need to contain the registration of the plugin jar: Therefore the launch command can look like: Alternatively you can use org.talend.sdk.component.singer.kitap.Carpates main to launch the application, it differs from kitap in the sense it takes a .car as option and avoids to pre-build the m2 repository: Here is an example with a real component: The config.json must respect this format: in some environment, such a JSON is not desirable, it is possible to put component_config attribute as a string containing the full json (escaped indeed) too.