How to run multiple hive queries in tHiveRow in Ta

2019-07-29 06:42发布

enter image description here

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.

标签: hive talend
1条回答
Anthone
2楼-- · 2019-07-29 07:13

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.

查看更多
登录 后发表回答