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

Dionysios Logothetis resolved GIRAPH-138.
-----------------------------------------
    Resolution: Abandoned

> Don't throw stack trace for classes that aren't vertices
> --------------------------------------------------------
>
>                 Key: GIRAPH-138
>                 URL: https://issues.apache.org/jira/browse/GIRAPH-138
>             Project: Giraph
>          Issue Type: Improvement
>            Reporter: Jakob Homan
>            Priority: Major
>
> Currently if one passes in a class that isn't a vertex, we throw up a 
> complete stack trace:
> {noformat}[tardis giraph-0.1]$ bin/giraph lib/giraph-0.1.jar 
> org.apache.giraph.benchmark.PageRankBenchmark -w 10 -if 
> org.apache.giraph.benchmark.PseudoRandomVertexInputFormat
> Exception in thread "main" java.lang.RuntimeException: class 
> org.apache.giraph.benchmark.PageRankBenchmark not 
> org.apache.giraph.graph.BasicVertex
>       at org.apache.hadoop.conf.Configuration.setClass(Configuration.java:858)
>       at org.apache.giraph.graph.GiraphJob.setVertexClass(GiraphJob.java:395)
>       at org.apache.giraph.GiraphRunner.run(GiraphRunner.java:94)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
>       at org.apache.giraph.GiraphRunner.main(GiraphRunner.java:132)
>       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:156){noformat}
> This type of user error is routine and should be caught and result in a more 
> descriptive error message.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to