AnsweredAssumed Answered

oozie ssh action takes long time to complete

Question asked by sachin on Jul 2, 2013
Latest reply on Jul 3, 2013 by sachin
I tried running an ssh action workflow job in oozie with the following action code Passwordless ssh was configured :

       <action name="sshaction">
            <ssh xmlns="uri:oozie:ssh-action:0.1">
                <host>127.0.0.1</host>
                <command>/bin/bash</command>
             <args>/home/510600/HADOOP_ECO/CDH4/oozietest/test.sh</args>
                <args>first</args>
                <capture-output/>
            </ssh>
            <ok to="WordCount" />
            <error to="fail" />
        </action>
        <action name="WordCount">
            <java>
                <job-tracker>${jobTracker}</job-tracker>
                <name-node>${nameNode}</name-node>
                <prepare>
                    <delete path="${nameNode}/user/510600/output/" />
                </prepare>
                <main-class>${parse_mainClass}</main-class>
                <arg>${inputDir}</arg>
                <arg>${parse_Output}</arg>
            </java>
            <ok to="end" />
            <error to="fail" />
        </action>

Problem I encountered with the above code is oozie ssh action is taking long time to complete even with a 2 line shell script, However other action runs very fast.

For the above 2 actions sshaction took 12 mins to complete and the action WordCount took only 15 Seconds to complete

my shellscript is as /home/510600/HADOOP_ECO/CDH4/oozietest/test.sh

    #!/bin/bash
     rm -rf /home/510600/abc.log

Can anyone explain why oozie ssh action takes long time to run ?

Outcomes