talend

How to extract JSON values that does not have attribute names?

一世执手 提交于 2019-12-13 09:55:58
问题 { "A1":{ "name":"Ad hoc", "projectId":0 }, "X2":{ "name":"BBB", "projectId":101 }, "AB":{ "name":"CCC", "projectId":102 }, "recordsCount":3 } For this JSON, how to extract values? i need output like, A1, Ad hoc X2, BBB AB, CCC experts inputs appreciated. 回答1: Analysis XPath can't read unnamed attributes. It will always result in an exception. If you want to get the values, you need to use JsonPath . Solution Even then, it makes sense to add surrounding brackets, otherwise the first level will

Running Talend jobs with Python

不羁岁月 提交于 2019-12-13 08:39:20
问题 I'm trying to automate some stuff I would otherwise have to do manually, so I can run one python script instead of taking a whole bunch of steps. I want to find a way to run a Talend job from the python script. How do I accomplish this? Is it even possible? 回答1: Oops! sorry. From the Studio, build the job to get an autonomous job you can launch from command line. Extract the files from the generated archive. Search for folder "script/yourJobname". Check the syntax from one of the .bat or .sh

Dynamic drop down list in talend custom component

痞子三分冷 提交于 2019-12-13 07:12:04
问题 I am writing the custom component for the talend. And I want to add a drop-down list in the component settings. Where I need to add the list items from the server using the given host id and password for example: Hostname Password Dropdown once the user fills the 1 and 2 then the dropdown will be filled using the host response. I tried to search the related content in the talend documents but didn't find can anyone suggest me how I can achieve this feature or it is possible to develop? I did

using Joblets in talend with tMemorize and tJavaFlex

僤鯓⒐⒋嵵緔 提交于 2019-12-13 04:54:45
问题 I am trying to create some joblets in Talend that will speed up some processes. I have an input from a MSSQLInput, the results are then sorted and filtered a little. Then I have a tMemorizeRows and a tJavaFlex, the purpose of this is to memorize the rows in a column to preform a count. The count is based on a customer ID, once the the id changes the count starts back to 1 and the proccess begine again and continues to the end. I have refactored this as a joblet but it does not work, the error

Loading multiple CSV files into MySQL [closed]

南楼画角 提交于 2019-12-13 04:51:53
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am working on a metrics project for my team. I have to load several different reports into a central repository and then create

Error while Installing Talend v7.0.1 on Windows 10 machine

我们两清 提交于 2019-12-13 03:32:10
问题 I am trying to install Talend Open Studio for Data Integration v7.0.1 on a Windows 10 (64 bit) machine and I get error as a log file in my configuration folder. My Java version is 10.0.1. ERROR is two log files long. Here's the snippet from first file eclipse.buildId=unknown java.version=10.0.1 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86_64 !ENTRY org.eclipse.equinox.ds 4 0 2018-04-27

Talend Neo4j Relationship component throws error when start node doesn't exist

流过昼夜 提交于 2019-12-13 03:21:29
问题 We're using Talend Open Studio for Big Data to migrate MySQL data to Neo4j. I've gotten a few jobs to run, however I get stuck using the tNeo4jOutputRelationship compontent on a rels.csv file which contains relatioships between values that dont exist in our nodes.csv file. Explicit error that is thrown: Exception in component tNeo4jOutputRelationship_1 java.lang.RuntimeException: Start node looked up by index with my_index as key and my_value as value doesn't exist Did a bit of research and

How to get an excel column name to set a case value

梦想的初衷 提交于 2019-12-13 03:00:40
问题 It is possible to get an excel column name to set a case value? Not a best way to show you my expectation than with an example. Example Input excel file LastName,FirstName,Maths,IT John,Polo,10,15 Mike,Dupond,6,9 Result excepted LastName,FirstName,Course,Grade John,Polo,Maths,10 John,Polo,IT,15 Mike,Dupond,Maths,6 Mike,Dupond,IT,9 Here my actual Talend structure Currently, this structure allow me to obtain this result: LastName,FirstName,Course,Grade John,Polo,"",10 John,Polo,"",15 Mike

Talend - Merge two rows of a Delimited file to get one single register

廉价感情. 提交于 2019-12-12 18:58:36
问题 I'm parsing Delimited Files files to get information that I will put in a Database Table. Now, I have a file where I have to merge each two rows, to get information about one single register (one row of the Database Table) - the line 1 has some fields from a database row, and line 2 has some other fields to put in the same row. How can I process two rows at a time? For example, assuming that I have a file with 6 rows, it corresponds to 3 entries in my Database Table, that has 9 columns. From

Count the number of rows for each file along with the file name in Talend

[亡魂溺海] 提交于 2019-12-12 06:36:59
问题 I have built a job that reads the data from a file, and based on the unique data of a particular columns, splits the data set into many files. I am able to acheive the requirement by the below job : Now from this job which is splitting the output into multiple files, what I want is to add a sub job which would give me two columns. In the first column I want the name of the files that I created in my main job and in the second column, I want the count of number of rows each created output file