Member since
03-26-2016
8
Posts
5
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1717 | 03-26-2016 10:48 AM |
05-08-2016
07:38 AM
Great !! Thanks a lot for the help. It works now.
... View more
05-07-2016
08:23 PM
I have a simple data covering the salary in USD like "$36200" as chararray. I am trying to remove the leading $ symbol through the SUBSTRING function as below: D = FOREACH C GENERATE SUBSTRING(wage, 1, SIZE(wage)) as wage_new; I am getting an error like this: ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1045:
Could not infer the matching function for org.apache.pig.builtin.SUBSTRING as multiple or none of them fit. Please use an explicit cast. However, if I am using the StopIndex of the SUBSTRING function explicitly, then the code compiles. But I would like to get to the end of the string dynamically. Can somebody help me ?
... View more
Labels:
- Labels:
-
Apache Pig
05-07-2016
08:21 AM
I think the issue was with the formatting of the data file. Problem is resolved now. Thanks a lot for the help.
... View more
05-07-2016
07:10 AM
Thanks a lot for the help. However, I am now testing with your dataset and code. dataset -- (3,8,9) (4,5,6) (1,4,7) (3,7,5)
(2,5,8) (9,5,8) code -- A = LOAD '/temp/test.csv' USING PigStorage('\t')
As (t1:tuple(t1a:int, t1b:int,t1c:int), t2:tuple(t2a:int,t2b:int,t2c:int));
X = FOREACH A GENERATE t1.t1a, t2.t2a; DUMP X; result -- (3,) (1,)
(2,) Don't understand why it is not reading the 2nd tuple. Can you help ?
... View more
05-06-2016
10:46 PM
1 Kudo
I have a file like: id,name,deg,salary,dept 1201,gopal, manager, 50000, TP 1202,manisha, proof reader, 50000, TP I am trying to load this in PIG using tuple as below: A = LOAD '/mydir/emp.txt' USING PigStorage(',')
AS (t:tuple(a:chararray, b:chararray, c:chararray, d:chararray, e:chararray)); X = FOREACH A GENERATE t.$0, t.$1, t.$2, t.$3, t.$4;
DUMP X; I am getting a result like : (,,,,)
(,,,,) Can somebody help me in understanding the reason behind this issue ?
... View more
Labels:
- Labels:
-
Apache Pig
03-26-2016
10:48 AM
3 Kudos
The problem is resolved now. Changed the Network adapter to NAT mode from Host Only mode.
... View more
03-26-2016
10:30 AM
"This site can’t be reached 127.0.0.1 refused to connect. ERR_CONNECTION_REFUSED" --I am getting the above error message
... View more
03-26-2016
07:52 AM
1 Kudo
I have installed HDP Sandbox 2.4 on oracle Virtualbox. However, can't access the local host 127.0.0.1:8888 from the chrome browser. I am getting a connection refused error. Please, can anybody help ?
... View more
Labels:
- Labels:
-
Hortonworks Data Platform (HDP)