What are Map in pig?

0 votes

Hi,

Can any one explain the function of Map in pig?

May 7, 2019 in Big Data Hadoop by sana
37 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, 2019 by Gitika
• 26,310 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
38 views
0 votes
1 answer

What are Diagnostic operator in pig?

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

answered May 6, 2019 in Big Data Hadoop by Gitika
• 26,310 points

edited May 7, 2019 by Gitika 35 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,870 points
3,973 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
79 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
421 views
+1 vote
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,870 points
4,569 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,870 points
649 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
25,911 views
0 votes
1 answer

What are the components in Pig

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

answered Apr 26, 2019 in Big Data Hadoop by Gitika
• 26,310 points
211 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, 2019 in Big Data Hadoop by Gitika
• 26,310 points
54 views