Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have number of questions about using the component kit:
1. Is there a simple mvn command which generate the basic Talend project for me without using the starter or the intellij plugin?
2. How to remove the dataset option? Why i can't building a simple Talend project with one input without the dataset annotation and field?
3. Is the mapper and configuration classes are must? can I create an empty project with only metadata to build and display in Talend studio?
4.Why when I try to build the generated project in eclipse I'm getting an error like this (but with command line it worked):
5.Is there any way to add the dependency to the Job's POM without using the command "talend-component:deploy-in-studio -Dtalend.component.studioHome"?
6. Is there an example or tutorial about using the "code" tab in Talend studio(the tab next to the designer tab, beneath the job flow)?
7. Is Talend support spring and spring boot?
8. When I drag & drop my custom connector to the job , my icon's background appear as green, how I change it?
9. Could I still use the Talend studio even after the free trial of Talend cloud over?
10. When i changed an existing project and built it again, the below error was shown:
Execution default-cli of goal org.talend.sdk.component:talend-component-maven-plugin:1.1.5:deploy-in-studio failed: Can't deploy this component. A different version '0.1' is already installed.
[ERROR] You can enforce the deployment by using -Dtalend.component.enforceDeploy=true
The command -Dtalend.component.enforceDeploy=true does not work. What can I do?
11. Is there any other solution than closing the studio each time i'm making changes to my custom component and building it?
* I'm using the free trial of Talend cloud version and Talend studio 7.1
Thanks with advance,
Daniel
Hello Daniel,
I will try to answer to all the questions
> 1. Is there a simple mvn command which generate the basic Talend project for me without using the starter or the intellij plugin?
Yes, you can use curl on the starter:
curl https://starter-toolkit.talend.io/api/project/zip \ -o gettingstarted-component.zip -H 'Content-Type: application/json' \ -d @- <<EOF { "group":"com.gettingstarted", "artifact":"gettingstarted-component", "family":"GettingStarted", "category":"Dev", "sources":[ { "name":"MyFirstInput", "genericOutput":true, "configurationStructure":{ "entries":[ { "name":"name", "type":"string" } ] } } ] } EOF
We don't provide an archetype because it does not bring as much as we want to provide (testing capabilities consistent with the component design typically).
> 2. How to remove the dataset option? Why i can't building a simple Talend project with one input without the dataset annotation and field?
Currently you can disable it through the options of the pom, see out documentation, however the support in Talend cloud environment - and maybe studio later - is not guaranteed current without that option.
> 3. Is the mapper and configuration classes are must? can I create an empty project with only metadata to build and display in Talend studio?
No, the framework design targets the runtime. In other words we guarantee that if you can see a component you can run it so we don't enable to decorelate both.
> 4.Why when I try to build the generated project in eclipse I'm getting an error like this (but with command line it worked):
This is because the embedded maven version of eclipse is too old - and by the way it is known as buggy. I recommand you to use maven >= 3.5 - you can configure it in eclipse as being external - and potentially to use the mvnw script provided when you generate a project with the starter.
> 5.Is there any way to add the dependency to the Job's POM without using the command "talend-component:deploy-in-studio -Dtalend.component.studioHome"?
The studio uses the metamodel of the server to populate the pom so you must have the component deployed into the studio and up to date.
You can find some tips on our documentation to make it easier.
> 6. Is there an example or tutorial about using the "code" tab in Talend studio(the tab next to the designer tab, beneath the job flow)?
This tab is only to see the generated code to help the user to understand what happens in case of failures, it is not intended to be used to code.
> 7. Is Talend support spring and spring boot?
In terms of "support", Talend does not do support on these technology but we support it if you want to use them in a component - even if I could recommand you to stay light and simple using the component service API.
> 8. When I drag & drop my custom connector to the job , my icon's background appear as green, how I change it?
It is part of the Studio design, this is not customizable for now.
> 9. Could I still use the Talend studio even after the free trial of Talend cloud over?
Talend Open Studio is open source and free so this is an option.
> 10. When i changed an existing project and built it again, the below error was shown:
> Execution default-cli of goal org.talend.sdk.component:talend-component-maven-plugin:1.1.5:deploy-in-studio failed: Can't deploy this component. A different version '0.1' is already installed.
> [ERROR] You can enforce the deployment by using -Dtalend.component.enforceDeploy=true
> The command -Dtalend.component.enforceDeploy=true does not work. What can I do?
It can be interesting to know what doesnt work here but you can always go in your studio configuration, remove the old registration from configuration/components-registration.properties and retry. If it still fails, exit the studio, retry and relaunch the studio - can happen if windows locks some files.
> 11. Is there any other solution than closing the studio each time i'm making changes to my custom component and building it?
Guess the previous link on the studio dev documentation answers that as well.
Hello Daniel,
I will try to answer to all the questions
> 1. Is there a simple mvn command which generate the basic Talend project for me without using the starter or the intellij plugin?
Yes, you can use curl on the starter:
curl https://starter-toolkit.talend.io/api/project/zip \ -o gettingstarted-component.zip -H 'Content-Type: application/json' \ -d @- <<EOF { "group":"com.gettingstarted", "artifact":"gettingstarted-component", "family":"GettingStarted", "category":"Dev", "sources":[ { "name":"MyFirstInput", "genericOutput":true, "configurationStructure":{ "entries":[ { "name":"name", "type":"string" } ] } } ] } EOF
We don't provide an archetype because it does not bring as much as we want to provide (testing capabilities consistent with the component design typically).
> 2. How to remove the dataset option? Why i can't building a simple Talend project with one input without the dataset annotation and field?
Currently you can disable it through the options of the pom, see out documentation, however the support in Talend cloud environment - and maybe studio later - is not guaranteed current without that option.
> 3. Is the mapper and configuration classes are must? can I create an empty project with only metadata to build and display in Talend studio?
No, the framework design targets the runtime. In other words we guarantee that if you can see a component you can run it so we don't enable to decorelate both.
> 4.Why when I try to build the generated project in eclipse I'm getting an error like this (but with command line it worked):
This is because the embedded maven version of eclipse is too old - and by the way it is known as buggy. I recommand you to use maven >= 3.5 - you can configure it in eclipse as being external - and potentially to use the mvnw script provided when you generate a project with the starter.
> 5.Is there any way to add the dependency to the Job's POM without using the command "talend-component:deploy-in-studio -Dtalend.component.studioHome"?
The studio uses the metamodel of the server to populate the pom so you must have the component deployed into the studio and up to date.
You can find some tips on our documentation to make it easier.
> 6. Is there an example or tutorial about using the "code" tab in Talend studio(the tab next to the designer tab, beneath the job flow)?
This tab is only to see the generated code to help the user to understand what happens in case of failures, it is not intended to be used to code.
> 7. Is Talend support spring and spring boot?
In terms of "support", Talend does not do support on these technology but we support it if you want to use them in a component - even if I could recommand you to stay light and simple using the component service API.
> 8. When I drag & drop my custom connector to the job , my icon's background appear as green, how I change it?
It is part of the Studio design, this is not customizable for now.
> 9. Could I still use the Talend studio even after the free trial of Talend cloud over?
Talend Open Studio is open source and free so this is an option.
> 10. When i changed an existing project and built it again, the below error was shown:
> Execution default-cli of goal org.talend.sdk.component:talend-component-maven-plugin:1.1.5:deploy-in-studio failed: Can't deploy this component. A different version '0.1' is already installed.
> [ERROR] You can enforce the deployment by using -Dtalend.component.enforceDeploy=true
> The command -Dtalend.component.enforceDeploy=true does not work. What can I do?
It can be interesting to know what doesnt work here but you can always go in your studio configuration, remove the old registration from configuration/components-registration.properties and retry. If it still fails, exit the studio, retry and relaunch the studio - can happen if windows locks some files.
> 11. Is there any other solution than closing the studio each time i'm making changes to my custom component and building it?
Guess the previous link on the studio dev documentation answers that as well.
@aromanenkoThank you very much!
How to handle the returned value from the @Producer function?
I connected my custom component to tLogRow but I saw nothing.
Hi Daniel,
Did you ensure to generate with guess schema button/fill the schema in the component properties pane? If not the data will not be emitted for next component.
Each schema is generating a rowStruct java class, can you check it was well generated in your case in the code tab of the designer please?
@rmannibucau I found row1Struct class with empty "read" and "write" function.
BTW, now I'm getting the next error: Unhandled event loop exception - java.lang.IllegalStateException: javax.json.stream.JsonParsingException: Unexpected character 'W' (Codepoint: 87) on [lineNumber=1, columnNumber=3, streamOffset=2]. Reason is [[Expected structural character or digit or 't' or 'n' or 'f' or '-']]
If the rowStruct is empty it means you didn't set or "guessed" (button) a schema for this component. Ensure it is set before moving forward and we check this json error which can be a side effect of this lack.
@rmannibucauCan you please give an example with custom component? and using the @Producer function?