views:

121

answers:

0

I'm using the Hadoop 0.18.3 version in combination with java 5 and I'm trying to run the WordCount v1.0 example of the http://hadoop.apache.org/common/docs/r0.20.1/mapred_tutorial.html. But I get the following error

0/06/10 15:28:10 WARN fs.FileSystem: uri=file:///
        javax.security.auth.login.LoginException: Login failed: CreateProcess: bash -c groups error=2
            at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:250)
            at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:275)
            at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:257)
            at org.apache.hadoop.security.UserGroupInformation.login(UserGroupInformation.java:67)
            at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:1410)
            at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1348)
            at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:213)
            at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:118)
            at org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:354)
            at org.apache.hadoop.mapred.FileInputFormat.setInputPaths(FileInputFormat.java:377)
            at com.bol.autocomplete.WordCount.main(WordCount.java:95)
        10/06/10 15:28:10 WARN fs.FileSystem: uri=file:///
        javax.security.auth.login.LoginException: Login failed: CreateProcess: bash -c groups error=2
            at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:250)
            at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:275)
            at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:257)
            at org.apache.hadoop.security.UserGroupInformation.login(UserGroupInformation.java:67)
            at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:1410)
            at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1348)
            at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:213)
            at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:118)
            at org.apache.hadoop.mapred.LocalJobRunner.<init>(LocalJobRunner.java:311)
            at org.apache.hadoop.mapred.JobClient.init(JobClient.java:390)
            at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:361)
            at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1011)
            at com.bol.autocomplete.WordCount.main(WordCount.java:98)
        10/06/10 15:28:10 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker, sessionId=
        10/06/10 15:28:10 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
        Exception in thread "main" java.io.IOException: Failed to get the current user's information.
            at org.apache.hadoop.mapred.JobClient.configureCommandLineOptions(JobClient.java:559)
            at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:729)
            at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1026)
            at com.bol.autocomplete.WordCount.main(WordCount.java:98)
        Caused by: javax.security.auth.login.LoginException: Login failed: CreateProcess: bash -c groups error=2
            at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:250)
            at org.apache.hadoop.security.UnixUserGroupInformation.login(UnixUserGroupInformation.java:275)
            at org.apache.hadoop.mapred.JobClient.configureCommandLineOptions(JobClient.java:557)
            ... 3 more

Does someone know what I'm doing wrong.