or "cp /etc/hive/conf.dist/hive-default.xml.template hive-site.xml"
Be careful the metastore property. Otherwise, it will complain can't find the table.
<property>
<name>hive.metastore.uris</name>
<value>thrift://upladevhdt01.researchnow.com:9083</value>
<description>Thrift uri for the remote metastore. Used by metastore client to connect to remote metastore.</description>
</property>
Otherwise, need to specify the path in Hive Action. <file>lib/hive-site.xml</file>
<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><configuration><property><name>mapred.job.queue.name</name><value>${queueName}</value></property></configuration><script>script.hql</script><param>INPUT_PATH=${inputPath}</param></hive><ok to="end"/><error to="fail"/></action>
Reference:
http://www.tanzirmusabbir.com/2013/03/oozie-example-hive-actions.html
No comments:
Post a Comment