Re: Pig script : Need help

2014-04-01 Thread Ankit Bhatnagar
Run a group by year field Then do whatever u want to do On 4/1/14 5:45 PM, Krishnan Narayanan krishnan.sm...@gmail.com wrote: Hi All, Using Pig how can I achieve the below mentioned output from the input. Input year , 2000 year , 2001 year , 2002 OutPut year 2000|2001|2002 ( in one row).

Re: Python UDF Error

2014-03-15 Thread Ankit Bhatnagar
Check the log file ..it should in the folder where your are running the script On 3/15/14 2:12 PM, Jason W ingv...@yahoo.com wrote: Updated for a typo: hi all, My script basically performs a calculation and outputs an array of values. Pig script: register pcent.py using jython as pc; data

Re: load a hive table from pig

2014-03-03 Thread Ankit Bhatnagar
Use LOAD '$HIVEDB.$TABLENAME' USING org.apache.hcatalog.pig.HCatLoader(); On 3/3/14 3:00 PM, Noam Lavie noam.la...@pontis.com wrote: Hi. I'm trying to load a hive table from pig: REGISTER /opt/mapr/pig/pig-0.11/contrib/piggybank/java/piggybank.jar REGISTER

Re: Trouble with REGEX in PIG

2013-12-04 Thread Ankit Bhatnagar
R u planning to use org.apache.pig.builtin.REGEX_EXTRACT ? On 12/4/13 9:28 AM, Watrous, Daniel daniel.t.watr...@hp.com wrote: Hi, I'm trying to use regular expressions in PIG, but it's failing. Based on the documentation http://pig.apache.org/docs/r0.12.0/func.html#regex-extract I am trying

Re: Ignoring headers while processing the tsv file

2013-08-27 Thread Ankit Bhatnagar
One school of thought - will be to write a wrapper on the existing loader class On 8/27/13 5:23 AM, Siddhi Borkar siddhi_bor...@persistent.co.in wrote: Hi All, I have a pig script which loads a tsv file and then filters the data based on the filter expression. However the tsv file contains the

Re: Adding dependent jars for UDF in the PIG

2013-08-12 Thread Ankit Bhatnagar
Can u elaborate In the eval function I am using a third party jar for processing. On 8/12/13 10:38 PM, Darpan R darpa...@gmail.com wrote: In the eval function I am using a third party jar for processing.

Load multiple files

2013-05-09 Thread Ankit Bhatnagar
Hi folks, I wanted to reach out to see if somebody has encountered a similar issue. Reading multiple file fails with error- (Pig + ozzie) The mapper syslog Error: g2013-04-24 07:22:45,905 FATAL [main] org.apache.hadoop.mapred.YarnChild: Error running child : java.lang.OutOfMemoryError