Reply
New Contributor
Posts: 1
Registered: ‎04-27-2017

Returned value from distcp is non-zero (-1)

Hello,

I have a oozie work-flow which is performing a distcp operation. Workflow file is as below :

....

<start to="distcp-initial"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<action name="distcp-initial">
<distcp xmlns="uri:oozie:distcp-action:0.1">
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<prepare>
<delete path="${nameNode}${working_path}/vers_num=0/*"/>
<mkdir path="${nameNode}${working_path}/vers_num=0/"/>
</prepare>
<arg>${nameNode}${full_final_path}/*</arg>
<arg>${nameNode}${working_path}/vers_num=0/</arg>
</distcp>

....

But it gives me the following error:

 

Main class [org.apache.oozie.action.hadoop.DistcpMain], main() threw exception, Returned value from distcp is non-zero (-1)

 

Has anyone faced this problem before?

 

Thanks !

Expert Contributor
Posts: 203
Registered: ‎01-25-2017

Re: Returned value from distcp is non-zero (-1)

Hi @PKPNT this error means that you have an error with the arguments:

 

 

try {
 Tool distcp = (Tool) construct.newInstance(constArgs);
 int i = ToolRunner.run(distcp, args);
 if (i != 0) {
 throw new RuntimeException("Returned value from distcp is non-zero (" + i + ")");
 }

 

 

Announcements