Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


You have a file personal_data.txt in the HDFS directory with 100 records. You want to see only the first 5 records from the employee.txt file. How will you do this?



You have a file personal_data.txt in the HDFS directory with 100 records. You want to see only the f..

Answer / Vipul Negi

To view the first 5 records of an HDFS file using Pig, you would need to load the data into a Pig relation and then limit the number of rows displayed. Here's an example: `LOAD personal_data.txt INTO employee; LIMIT employee 5; DUMP employee;`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Pig Interview Questions

What is a bag in Pig Latin?

1 Answers  


Explain avrostorage function?

1 Answers  


what is pig?

1 Answers  


What are all stats classes in the java api package available?

1 Answers  


What is atom in pig?

1 Answers  


How do users interact with HDFS in Apache Pig ?

1 Answers  


What is flatten in pig?

1 Answers  


When we write a= load …, what does 'a' called?

1 Answers  


Explain the LOAD keyword in Pig script?

1 Answers  


Explain the architecture of Hadoop Pig?

1 Answers  


What are some of the apache pig use cases you can think of?

1 Answers  


What are the use cases of Apache Pig?

1 Answers  


Categories