hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HAMA-53) NullPointerException on mapreduce
Date Mon, 08 Sep 2008 09:26:47 GMT

     [ https://issues.apache.org/jira/browse/HAMA-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Edward J. Yoon updated HAMA-53:
-------------------------------

    Status: Patch Available  (was: Open)

[root@udanax hadoop]# bin/hadoop jar hama-0.1.0-dev-examples.jar addition 2 2
08/09/08 18:21:42 INFO hama.AbstractMatrix: Initializing the matrix storage.
08/09/08 18:21:53 INFO hama.AbstractMatrix: Create the 2 * 2 random matrix : randtaomi
08/09/08 18:21:53 INFO hama.AbstractMatrix: Initializing the matrix storage.
08/09/08 18:22:03 INFO hama.AbstractMatrix: Create the 2 * 2 random matrix : randixbtc

Matrix A
----------------------
0.3158728437136139
0.0023375750126571893
0.26854090499835137
0.14129756406011307

Matrix B
----------------------
0.3122335774203091
0.772572456955955
0.8131162438093995
0.8987044024276719

08/09/08 18:22:03 INFO hama.AbstractMatrix: Initializing the matrix storage.
08/09/08 18:22:13 WARN mapred.JobClient: No job jar file set.  User classes may not be found.
See JobConf(Class) or JobConf#setJar(String).
08/09/08 18:22:14 INFO mapred.JobClient: Running job: job_200809081723_0007
08/09/08 18:22:15 INFO mapred.JobClient:  map 0% reduce 0%
08/09/08 18:22:18 INFO mapred.JobClient:  map 100% reduce 0%
08/09/08 18:22:21 INFO mapred.JobClient:  map 100% reduce 100%
08/09/08 18:22:22 INFO mapred.JobClient: Job complete: job_200809081723_0007
08/09/08 18:22:22 INFO mapred.JobClient: Counters: 13
08/09/08 18:22:22 INFO mapred.JobClient:   File Systems
08/09/08 18:22:22 INFO mapred.JobClient:     Local bytes read=317
08/09/08 18:22:22 INFO mapred.JobClient:     Local bytes written=642
08/09/08 18:22:22 INFO mapred.JobClient:   Job Counters 
08/09/08 18:22:22 INFO mapred.JobClient:     Launched map tasks=1
08/09/08 18:22:22 INFO mapred.JobClient:     Launched reduce tasks=1
08/09/08 18:22:22 INFO mapred.JobClient:   Map-Reduce Framework
08/09/08 18:22:22 INFO mapred.JobClient:     Map input records=2
08/09/08 18:22:22 INFO mapred.JobClient:     Map output records=2
08/09/08 18:22:22 INFO mapred.JobClient:     Map input bytes=0
08/09/08 18:22:22 INFO mapred.JobClient:     Map output bytes=182
08/09/08 18:22:22 INFO mapred.JobClient:     Combine input records=0
08/09/08 18:22:22 INFO mapred.JobClient:     Combine output records=0
08/09/08 18:22:22 INFO mapred.JobClient:     Reduce input groups=2
08/09/08 18:22:22 INFO mapred.JobClient:     Reduce input records=2
08/09/08 18:22:22 INFO mapred.JobClient:     Reduce output records=2

C = A + B
----------------------
0.628106421133923
0.7749100319686122
1.0816571488077509
1.040001966487785

----
Local test passed. Submit to hudson.

> NullPointerException on mapreduce
> ---------------------------------
>
>                 Key: HAMA-53
>                 URL: https://issues.apache.org/jira/browse/HAMA-53
>             Project: Hama
>          Issue Type: Bug
>          Components: mapred 
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.1.0
>
>         Attachments: HAMA-53.patch
>
>
> When I run a addition example on the Hadoop cluster, I recieved an NullPointerException
as below : 
> 08/09/08 16:35:34 INFO mapred.JobClient: Running job: job_200809081623_0004
> 08/09/08 16:35:35 INFO mapred.JobClient:  map 0% reduce 0%
> 08/09/08 16:35:39 INFO mapred.JobClient: Task Id : task_200809081623_0004_m_000000_0,
Status : FAILED
> java.lang.NullPointerException
>         at org.apache.hama.algebra.AdditionMap.map(AdditionMap.java:38)
>         at org.apache.hama.algebra.AdditionMap.map(AdditionMap.java:31)
>         at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
>         at org.apache.hadoop.mapred.MapTask.run(MapTask.java:219)
>         at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2124)
> 08/09/08 16:35:44 INFO mapred.JobClient: Task Id : task_200809081623_0004_m_000000_1,
Status : FAILED
> java.lang.NullPointerException
>         at org.apache.hama.algebra.AdditionMap.map(AdditionMap.java:38)
>         at org.apache.hama.algebra.AdditionMap.map(AdditionMap.java:31)
>         at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
>         at org.apache.hadoop.mapred.MapTask.run(MapTask.java:219)
>         at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2124)
> 08/09/08 16:35:49 INFO mapred.JobClient: Task Id : task_200809081623_0004_m_000000_2,
Status : FAILED
> java.lang.NullPointerException
>         at org.apache.hama.algebra.AdditionMap.map(AdditionMap.java:38)
>         at org.apache.hama.algebra.AdditionMap.map(AdditionMap.java:31)
>         at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47)
>         at org.apache.hadoop.mapred.MapTask.run(MapTask.java:219)
>         at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2124)
> 08/09/08 16:35:53 INFO mapred.JobClient:  map 100% reduce 100%
> java.io.IOException: Job failed!
>         at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1062)
>         at org.apache.hama.DenseMatrix.add(DenseMatrix.java:146)
>         at org.apache.hama.examples.MatrixAddition.main(MatrixAddition.java:63)
>         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:597)
>         at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
>         at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
>         at org.apache.hama.examples.ExampleDriver.main(ExampleDriver.java:29)
>         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:597)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:155)
>         at org.apache.hadoop.mapred.JobShell.run(JobShell.java:194)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
>         at org.apache.hadoop.mapred.JobShell.main(JobShell.java:220)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message