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
Pig >> mail # user >> Removing directory if counts match


Copy link to this message
-
Re: Removing directory if counts match
No, you cannot do this, but using python for control flow is a good match
for this.

2012/10/4 Hailey Charlie <[EMAIL PROTECTED]>

> Hell There,
>
> I'm trying to create a pig scrip that performs a line count on two
> different inputs and deletes one of them if they match up.
>
> Is there any sort of pig or grunt syntax to say if (count1 == count2) rmr
> /some/path/
>
> Thanks,
> Charlie
>
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