What are Map in pig?

0 votes

Hi,

Can any one explain the function of Map in pig?

May 7 in Big Data Hadoop by sana
27 views

1 answer to this question.

0 votes

Hey,

Map comes under the data mode in pig. It is the collection or set of key value pair.Image result for pig map image exampleHere the texts before the # are keys and texts after the # are values. In pig # is the delimiter that represents the difference in key and value pair. So, every row is a Map which has a set of key value pairs. However a Map cannot contain duplicate pairs.

For example;- [Band# Linkin Park, Member# 7, Origin# California]

Here to represent a Map you need to use the square brackets.

answered May 7 by Gitika
• 25,420 points

Related Questions In Big Data Hadoop

0 votes
1 answer

What are the different relational operations in “Pig Latin” you worked with?

Different relational operators are: for each order by filt ...READ MORE

answered Dec 14, 2018 in Big Data Hadoop by Frankie
• 9,810 points
28 views
0 votes
1 answer

What are Diagnostic operator in pig?

Hey, In Apache pig, the LOAD statement will ...READ MORE

answered May 6 in Big Data Hadoop by Gitika
• 25,420 points

edited May 7 by Gitika 24 views
0 votes
1 answer

What are SUCCESS and part-r-00000 files in Hadoop?

Yes, both the files i.e. SUCCESS and ...READ MORE

answered Apr 12, 2018 in Big Data Hadoop by nitinrawat895
• 10,760 points
2,963 views
0 votes
1 answer

What are the problems in creating volume in mapr hadoop?

It sounds like the user you are ...READ MORE

answered Aug 21, 2018 in Big Data Hadoop by Frankie
• 9,810 points
65 views
0 votes
1 answer

What do we exactly mean by “Hadoop” – the definition of Hadoop?

The official definition of Apache Hadoop given ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by Shubham
248 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,760 points
3,553 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,760 points
441 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
18,208 views
0 votes
1 answer

What are the components in Pig

Hi, Yes, this is absolutely correct that pig ...READ MORE

answered Apr 26 in Big Data Hadoop by Gitika
• 25,420 points
149 views
0 votes
1 answer

What are the relational operators available related to loading and storing in pig language?

Hey, For loading data and storing it into ...READ MORE

answered May 3 in Big Data Hadoop by Gitika
• 25,420 points
43 views