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
1,664 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
• 65,770 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 fil ...READ MORE

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

What are Diagnostic operator in pig?

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

answered May 7, 2019 in Big Data Hadoop by Gitika
• 65,770 points

edited May 8, 2019 by Gitika 1,547 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
• 11,380 points
12,571 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 22, 2018 in Big Data Hadoop by Frankie
• 9,830 points
1,035 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
1,895 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
• 11,380 points
11,054 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
• 11,380 points
2,557 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
108,966 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
• 65,770 points
2,097 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
• 65,770 points
754 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP