Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Can i use hivecontext in map transformation?

Highlighted

Can i use hivecontext in map transformation?

New Contributor
 
2 REPLIES 2

Re: Can i use hivecontext in map transformation?

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.

Re: Can i use hivecontext in map transformation?

New Contributor

is this useful ? any questions welcome.

Don't have an account?
Coming from Hortonworks? Activate your account here