Not able to run oozie hive action

Not able to run oozie hive action due to error: “Class not found:org.apache.atlas.hive.hook.HiveHook”
Please find my code below:
job.properties:

nameNode=hdfs://sandbox.hortonworks.com:8020
jobTracker:8050=sandbox.hortonworks.com
queueName=default
examplesRoot=ravi/oozie
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/${user.name}/${examplesRoot}/hive/

workflow.xml:

<action name="Create_External_Table">
    <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>${nameNode}/user/${user}/${examplesRoot}/hive/external.hive</script>
    </hive>
    <ok to="end"/>
    <error to="fail"/>
</action>
<kill name="fail">
    <message>Hive failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name="end"/>

Please help me to resolve the issue

Hi Ravi,

nameNode and jobTracker configurations are wrong in your job.properites. Please replace them with CloudxLab configurations and it should work fine

Hi @abhinav,

Can you please provide CloudxLab configuration details of nameNode, jobTracker or how to identify them. Anything is fine.

Hi Ravi,

These configurations you can check in Ambari

1 Like