You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Andrew Hitchcock <ad...@gmail.com> on 2007/04/04 23:58:01 UTC

JobClient's getFs method throws NPE

Hi,

I'm trying to create a MapFile.Reader in my MapReduce Driver. In order
to get the FileSystem, I call conf.getFs(), but that gives me the
following NullPointerException:

Exception in thread "main" java.lang.NullPointerException
	at org.apache.hadoop.mapred.JobClient.getFs(JobClient.java:216)
	at org.andrewhitchcock.netflix.NetflixDriver.main(NetflixDriver.java:47)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:137)

I imagine I'm doing something wrong, but I can't figure out how to solve this.

Thanks,
Andrew