[
https://issues.apache.org/jira/browse/HADOOP-16462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16892782#comment-16892782
]
Steve Loughran commented on HADOOP-16462:
-----------------------------------------
We aren't going to change the {{Tool.run()}} entry point you are listing
because that's the command line entry point, and we have to keep behaviour
there the same, including exit codes. Many people who invoke distcp will be
very unhappy if we change that.
You should be able to just call {{createAndSubmitJob()}}, get a job ref back
and wait for it to complete, doing whatever you want with that failure
If there's some aspect of job setup which you can't do before calling
execute(), that we could help expose -but as other applications regularly use
distcp as part of their workflow (e.g hive at the end of a query), I'm
confident that it works as a library as well as an application.
> distcp error log not print out while use java client to call distcp.run
> method, only get -999 error code
> --------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-16462
> URL: https://issues.apache.org/jira/browse/HADOOP-16462
> Project: Hadoop Common
> Issue Type: Bug
> Components: tools/distcp
> Affects Versions: 3.1.1
> Reporter: lifulong
> Priority: Minor
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]