Making oozie hbase work with Kerberos enabled cluster

At the top of workflow add

<credentials>
  <credential name='hbaseauth' type='hbase'>
  </credential>
</credentials>

Within any action add the details about credentials.

<action name="process" cred="hbaseauth">


Also add details about hbase-site.xml

<job-xml>${hbaseSite}</job-xml>
<file>${hbaseSite}#hbase-site.xml</file>

Complete example


<action name="process" cred="hbaseauth">
        <java>
            <job-tracker>${jobTracker}</job-tracker>
            <name-node>${nameNode}</name-node>
            <job-xml>${hbaseSite}</job-xml>
            <configuration>
                <property>
                    <name>mapred.job.queue.name</name>
                    <value>${queueName}</value>
                </property>
            </configuration>

            <main-class>${process_classname}</main-class>
           <file>${hbaseSite}#hbase-site.xml</file>
            <capture-output/>
        </java>
        <ok to="success"/>
        <error to="failed"/>
    </action>

 

No comments:

Post a Comment

Please share your views and comments below.

Thank You.