talend

How to use Java classes in Talend

拟墨画扇 提交于 2019-11-28 02:15:28
问题 I have the following three classes : I tried making the routine of 1 & 2 and used tjava to call the main class and the method from 1 & 2 but I am unable to fetch those methods. 1) package page_scraper; import com.gargoylesoftware.htmlunit.Page; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.WebClientOptions; import com.gargoylesoftware.htmlunit.html.FrameWindow; import com.gargoylesoftware.htmlunit.html.HtmlButtonInput; import com.gargoylesoftware

JSON parser for Talend

删除回忆录丶 提交于 2019-11-27 08:14:06
问题 I need some help devising a strategy to parse JSON docs within a Talend job (Java job, not Perl). I am using Talend Version: 5.0.2 and developing on a Mac, planning to run on a Linux box. Unfortunately, I cannot use the tFileInputJSON component because of the format of my files -- each file contains several hundred JSON docs, with a complete JSON doc taking up one line in the file. I think the right solution is to read the file line by line then pass it into a JSON parser and from there send

alter table then update in single statement

懵懂的女人 提交于 2019-11-27 03:12:01
问题 I have a requirement where I need to Alter (Add 2 columns) and then update the same table. Here is the query I tried: ALTER TABLE A ADD c1 int,c2 varchar(10) UPDATE A set c1 = 23, c2 = 'ZZXX' I need to run the above two queries at a time. I am using Talend ETL tool, in this we have a component tMssqlrow, which allow us to run multiple queries (I am using 10 to 15 update queries in single component). But the above query is not working. I tested in DataBase Microsoft SQL. i am getting the below