Oozie workflow: Hive table not found but it does exist

倖福魔咒の 提交于 2019-12-03 07:40:20
user2230605

The problem is other nodes don't know where your MYSQL is , so you are getting error table not found.

You need to do 2 things

  1. Copy hive-site.xml in the oozie workflow directory
  2. In your Hive action tell oozie that use my hive-site.xml

Something like below

action name="hive-node"> <hive xmlns="uri:oozie:hive-action:0.2"> <job-tracker>${jobTracker}</job-tracker> <name-node>${nameNode}</name-node> <job-xml>hive-site.xml</job-xml>

This should work.

Thanks

I have experienced same problem, apart from above mention solution about specifying hive-site.xml properly. I would recommend following things as well.

  1. check if you have mysql connector jar (in case you are using mysql as metastore) is available in classpath.
  2. in case of oozie hive actions just check if you are not adding hive jars multiple times. e.g. it is already present in oozie share lib and you have also copied in workflow/lib
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!