[
https://issues.apache.org/jira/browse/GIRAPH-822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Yost updated GIRAPH-822:
-----------------------------
Description:
Hi Everyone,
I've run into this really weird error with the following stacktrace:
Exception in thread "main" java.lang.ClassCastException:
org.apache.giraph.conf.GiraphConfiguration cannot be cast to
org.apache.hadoop.mapred.JobConf
at org.apache.hadoop.mapreduce.Job$1.run(Job.java:513)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1149)
at org.apache.hadoop.mapreduce.Job.connect(Job.java:511)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:499)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:530)
at
com.prototype.analytics.TwitterSpringRunner.run(TwitterSpringRunner.java:58)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at
com.prototype.analytics.TwitterSpringRunner.main(TwitterSpringRunner.java:78)
Everything was working fine with my locally-built giraph version, but when I
added the Giraph 1.0.0 maven dependency, this Exception was thrown. Any ideas?
UPDATE:
When I revert back to using GiraphRunner, the job completes successfully, so I
must have dorked up something along the way within my Tool class. Still would
like to know if anyone else has encountered this and how to fix it, thanks.
was:
Hi Everyone,
I've run into this really weird error with the following stacktrace:
Exception in thread "main" java.lang.ClassCastException:
org.apache.giraph.conf.GiraphConfiguration cannot be cast to
org.apache.hadoop.mapred.JobConf
at org.apache.hadoop.mapreduce.Job$1.run(Job.java:513)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1149)
at org.apache.hadoop.mapreduce.Job.connect(Job.java:511)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:499)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:530)
at
com.prototype.analytics.TwitterSpringRunner.run(TwitterSpringRunner.java:58)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at
com.prototype.analytics.TwitterSpringRunner.main(TwitterSpringRunner.java:78)
Everything was working fine with my locally-built giraph version, but when I
added the Giraph 1.0.0 maven dependency, this Exception was thrown. Any ideas?
> java.lang.ClassCastException: org.apache.giraph.conf.GiraphConfiguration
> cannot be cast to org.apache.hadoop.mapred.JobConf
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: GIRAPH-822
> URL: https://issues.apache.org/jira/browse/GIRAPH-822
> Project: Giraph
> Issue Type: Bug
> Components: mapreduce
> Affects Versions: 1.0.0
> Environment: CentOS 6.5
> Reporter: John Yost
>
> Hi Everyone,
> I've run into this really weird error with the following stacktrace:
> Exception in thread "main" java.lang.ClassCastException:
> org.apache.giraph.conf.GiraphConfiguration cannot be cast to
> org.apache.hadoop.mapred.JobConf
> at org.apache.hadoop.mapreduce.Job$1.run(Job.java:513)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:415)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1149)
> at org.apache.hadoop.mapreduce.Job.connect(Job.java:511)
> at org.apache.hadoop.mapreduce.Job.submit(Job.java:499)
> at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:530)
> at
> com.prototype.analytics.TwitterSpringRunner.run(TwitterSpringRunner.java:58)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at
> com.prototype.analytics.TwitterSpringRunner.main(TwitterSpringRunner.java:78)
> Everything was working fine with my locally-built giraph version, but when I
> added the Giraph 1.0.0 maven dependency, this Exception was thrown. Any
> ideas?
> UPDATE:
> When I revert back to using GiraphRunner, the job completes successfully, so
> I must have dorked up something along the way within my Tool class. Still
> would like to know if anyone else has encountered this and how to fix it,
> thanks.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)