Help in generating a report from hbase using pig

2014-12-02 Thread Nishanth S
Hello All, I am very new to pig and trying to use pig scripts to generate daily reports from hbase.I have an hbase table with a single column family.My requirement is to extract this data from hbase and convert it to a report.Below are some questions that came to my mind: Is there a way to l

Request Help in Date formatter

2014-12-04 Thread Nishanth S
Hey All, I am trying to convert one date format to another in pig in the below format.I am running into the below exception.My code is as follows.Any help or pointers is appreciated colsDate = FOREACH cols GENERATE ToDate(eventTs, '-MM-dd') as (dt:datetime); Sample Date format : 2014-12-

Delete hdfs directory afterpig execution

2019-01-31 Thread Nishanth S
Hey folks, I have a pig script as below. I want to delete a directory after data is moved from location x to y as you see below. I then want to delete the directory .However the fs command throws an error .Is this the correct way to delete the directory .Also is there a guarantee that the fs