I am planning to use Jenkins with Hive. I have created some Hive scripts: test1.hql, test2.hql, test3.hql which lie on the sample server "ssh rt@test1.test2.net" location "/home/rt"
test1.hql:
select id, name from tblA;
test2.hql:
select id, name from tblB;
test3.hql:
select id, name from tblC;
How can I execute it from Jenkins?
On Jenkins up-to below is what I did:
New Job > Job name as test > Build a free-style software project
How can I point to my .hql scripts from Jenkins and what settings do I need to have? I am new to Jenkins.
Any help?
Thanks.
Found something:
Create a Jenkins job In the configuration of that job there is a "Build" section with "Add build step" Add a "Execute Shell" step, and put your code.
that code would be basically: hive -f /pathtohql/test1.hql
The only issue i see with this is that the m/c with jenkins will have to have hive installed and pointing to the correct metastore & cluster.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.