Re: Guice and Hadoop

2011-12-30 Thread egolan
Thanks Owen. I saw the answer in the Hadoop mailing list as well. So the solution is that simple? Have a Module, instantiate it in the setup / configure and then use the injector? (I thought about it, but it sounded too easy and simple). That is the first thing I will try. On Dec 30, 7:33 pm, "O

Re: What's wrong with my TypeLiteral equivalent of this generic Guice binding method?

2011-12-30 Thread glenviewjeff
My problem was that this line: final Key multibinderKey = Key.get(superClass, annotation); Should have been: final Key multibinderKey = Key.get(Types.setOf(superClass.getRawType()), annotation); -- You received this message because you are subscribed to the Google Groups "google-guic

What's wrong with my TypeLiteral equivalent of this generic Guice binding method?

2011-12-30 Thread glenviewjeff
Also posted on Stack Overflow . I have a follow-up question about further abstracting my generic method. Thanks to Stuart for the great help that allowed me to get this far. The following generic Guice binding method now behaves correctly: Key bindMu

Re: Guice and Hadoop

2011-12-30 Thread jordi
can you share the thread url? i can't find it On Fri, Dec 30, 2011 at 6:33 PM, Owen O'Malley wrote: > I replied over on the Hadoop lists, but your task should just create > the injector in the setup method. > > -- Owen > > On Dec 30, 2011, at 3:00 AM, egolan wrote: > > > Thanks. > > > > I am go

Re: Guice and Hadoop

2011-12-30 Thread Owen O'Malley
I replied over on the Hadoop lists, but your task should just create the injector in the setup method. -- Owen On Dec 30, 2011, at 3:00 AM, egolan wrote: > Thanks. > > I am going to migrate a full scale java app that calculates massive > amount of data into a Hadoop process. > So I am just star

Re: git src clone not working

2011-12-30 Thread Eric Charles
Hi Stuart, I 'viewed' this jira but didn't read it completely... After my git client upgrade, it's working fine :) Thx again, Eric On 30/12/11 17:19, Stuart McCulloch wrote: On 30 Dec 2011, at 16:02, Eric Charles wrote: Hi Stuart, That's what I did, Retrying: git clone https://eric.umg.cha

Re: git src clone not working

2011-12-30 Thread Stuart McCulloch
On 30 Dec 2011, at 16:02, Eric Charles wrote: > Hi Stuart, > > That's what I did, Retrying: > > git clone https://eric.umg.char...@code.google.com/p/google-guice/ > Initialized empty Git repository in /Users/echarles/dev/google-guice/.git/ > Password: (the password shown on https://code.google.c

Re: git src clone not working

2011-12-30 Thread Eric Charles
Hi Stuart, That's what I did, Retrying: git clone https://eric.umg.char...@code.google.com/p/google-guice/ Initialized empty Git repository in /Users/echarles/dev/google-guice/.git/ Password: (the password shown on https://code.google.com/hosting/settings) fatal: https://eric.umg.char...@code.g

Re: git src clone not working

2011-12-30 Thread Stuart McCulloch
On 30 December 2011 15:30, Eric Charles wrote: > Hi there, > > git clone > https://code.google.com/p/**google-guice > Initialized empty Git repository in /Users/echarles/dev/google-** > guice/.git/ > fatal: > https://code.google.com/p/**google-guice/info/

git src clone not working (404)

2011-12-30 Thread Eric Charles
Hi there, git clone https://code.google.com/p/google-guice Initialized empty Git repository in /Users/echarles/dev/google-guice/.git/ fatal: https://code.google.com/p/google-guice/info/refs not found: did you run git update-server-info on the server? My $HOME/.netrc machine code.google.com log

git src clone not working

2011-12-30 Thread Eric Charles
Hi there, git clone https://code.google.com/p/google-guice Initialized empty Git repository in /Users/echarles/dev/google-guice/.git/ fatal: https://code.google.com/p/google-guice/info/refs not found: did you run git update-server-info on the server? I tried via a cloned server repo on my goog

Re: Need help using keys with generics and TypeLiterals

2011-12-30 Thread glenviewjeff
Thanks very much Stuart for the help. I was able to remove the unchecked cast and maintain correct operation by modifying the code as follows: public Key bindMultibinder(Named annotation, Class superClass, ArrayList> contents) { Multibinder options = Multibinder.newSetBinder(binder(),

Re: Guice and Hadoop

2011-12-30 Thread egolan
Thanks. I am going to migrate a full scale java app that calculates massive amount of data into a Hadoop process. So I am just starting experimenting with the MR. I am also practicing the DI concept in our architecture and this is why I went into Guice (my preferable choice over Spring). So I wa

Re: Need help using keys with generics and TypeLiterals

2011-12-30 Thread Stuart McCulloch
On 30 Dec 2011, at 02:58, Russ Milliken wrote: > FWIW, that's the only way I've been able to get it to work (class cast and > warning). Yep, I forgot to add the cast - the reason you need it is because this approach uses: Key Key.get(Type type, Annotation annotation) and the compiler can't

Re: Guice and Hadoop

2011-12-30 Thread jordi
Hey Eyal There's an old jira with a patch [1] to support Spring Beans, that replaces the ReflectionUtils class used to instantiate everything with a much proper object factory. But that issue was closes as won't fix saying that you can achieve similar behavior using Hadoop Configuration... but tha