Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

Can i use hivecontext in map transformation?

Explorer
 
2 REPLIES 2

New Contributor

first thing is why? what is the requirement of doing this? if you want to do it for lookup purpose you can pass a broadcast variable and get the values in side the closure. If you want to lookup huge data set joining the dataset is correct rather than executing query inside map tranformation. I haven't tried this but definitely it should be possible from anywhere. But its not advisable to do so.

New Contributor

is this useful ? any questions welcome.