How to run multiple hive queries in tHiveRow in Talend latest versions

两盒软妹~` 提交于 2019-12-13 18:12:06

问题


I'm using talend 6.2.1 version. Trying to run multiple hive queries in tHiveRow, but it simply not allowing me to do so if I separate my queries with a ";".

I have tried with tForEach, but there is a limitation to it as we cannot include a value greater than 130 characters.

So, I turned to tFixedFlowInput but iterative run for multiple queries seems not possible here.

I followed this Running multiple hive queries using tHiveRow component in Talend

Can anybody help me achieve my objective.


回答1:


This can be achieved by saving the hive script in a text file. Now read the textfile with row delimiter as ";" and feild delimiter as something that is not used in the entire script (cedilla or $). Schema of this file will have only one column(say query)

Now connect tfileinputDelimite--row1-->thiverow. In thiverow query box write row1.query

That's it, it has woked for me .try.



来源:https://stackoverflow.com/questions/47260773/how-to-run-multiple-hive-queries-in-thiverow-in-talend-latest-versions

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!