Datatype of map.values

8 views
Skip to first unread message

nae...@ic.ufal.br

unread,
May 18, 2015, 5:08:42 AM5/18/15
to rh...@googlegroups.com
How can I get the datatype of map.values or anyother variable inside a maper or reducer?


Saptarshi Guha

unread,
May 18, 2015, 4:45:24 PM5/18/15
to rh...@googlegroups.com
Could you elaborate?

On Mon, May 18, 2015 at 2:08 AM, <nae...@ic.ufal.br> wrote:
How can I get the datatype of map.values or anyother variable inside a maper or reducer?


--

---
You received this message because you are subscribed to the Google Groups "rhipe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhipe+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nae...@ic.ufal.br

unread,
May 19, 2015, 4:53:11 AM5/19/15
to rh...@googlegroups.com, saptars...@gmail.com
Hey. Thanks for your reply.

It's actualy a debuging question.

I want to do something like typeof(map.values) to get on screen the datatype of map.values. Is there any way to do it?
I guess it's a pretty basic question. Btw, I'm new to Rhipe. Thanks;

Saptarshi Guha

unread,
May 19, 2015, 12:12:43 PM5/19/15
to nae...@ic.ufal.br, rh...@googlegroups.com
That is tricky because the output will be distributed.

If you'd like to see type of map.values, rhread the input file e.g.

lapply(rhread(file, max=10),"[[",2)) if it's a sequence file
or rhead(file, max=10, type='text') for a text file.

If you just do print(map.values) in the map phase you'll need to go to the job web ui and see the output(stdout logs)

HTH

nae...@ic.ufal.br

unread,
May 23, 2015, 2:14:12 AM5/23/15
to rh...@googlegroups.com, nae...@ic.ufal.br, saptars...@gmail.com
Once again, thanks. :D
Reply all
Reply to author
Forward
0 new messages