Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # dev >> What is CommandNeedRetryException


Copy link to this message
-
Re: What is CommandNeedRetryException
Probably not telling you anything new here, but from the looks of it the
CliDriver will rerun the same command if it catches this exception from any
CommandProcessor. The Driver will throw this automatically if it is running
a task that is marked as retry-able. Also looks like it will only do that
in fat-client mode (no retries for HiveServer).

If you look at the Driver code there's some piece in there that seems to
indicate that one reason for introducing this was to try a query locally
and then retry it on the cluster if it fails. But I don't think the code to
auto-convert a full query was ever enabled.

My guess is that you would throw this in any task or command processor if
there was a reasonable chance that another run would succeed (i.e.: network
hiccup). This seems to be what FetchTask and ColumnStatsTask might be doing.

Cheers,
Gunther.

On Mon, Jul 8, 2013 at 7:36 PM, Edward Capriolo <[EMAIL PROTECTED]>wrote:

> No documentation here. Why should one throw it, and what does it mean to
> the caller?
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB