From the course: Hadoop for Data Science Tips, Tricks, & Techniques
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Map data in Hive - Hadoop Tutorial
From the course: Hadoop for Data Science Tips, Tricks, & Techniques
Map data in Hive
- [Narrator] Hive has these complex data types that it supports, and it comes a lot from how data in modern web services are generated, where we nest certain collections of things within other things. So, for example, if we have customers, we may list all of their orders as a nested object inside of customer bro. And the way that plays out when you're looking at Hive here, and we've installed the samples in our Hue environment, so if you didn't follow that, go back to the very first video where we set this up, and inside of here, under customers, we have, essentially, a couple different nested data types. We have a struct with email preferences, we'll look at that in a minute. We have addresses, which is a map that we're going to look at here. And you have orders which are an array. Now, if I click on addresses, you can see that there's the key and then the value. Now, the value is of a different type of a struct, as another complex type. And inside of there, you have the elements of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.