分享

When using LocalJobRunner, you cannot run in split master / worker mode since...

往事也加 发表于 2015-11-24 10:44:39 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 10780
whx@whx-desktop:/usr/local/new_hadoop/hadoop/giraph-1.0.0-src/giraph-examples/target$ ../../../bin/hadoop jar giraph-examples-1.0.0-for-hadoop-0.20.203.0-jar-with-dependencies.jar org.apache.giraph.GiraphRunner org.apache.giraph.examples.SimpleShortestPathsVertex -vif org.apache.giraph.io.formats.JsonLongDoubleFloatDoubleVertexInputFormat -vip /user/root/SSSP/tiny_graph.txt -of org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op /user/root/output-sssp-debug-6 -w 1

15/11/24 10:35:06 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
15/11/24 10:35:07 INFO utils.ConfigurationUtils: No edge input format specified. Ensure your InputFormat does not require one.
15/11/24 10:35:07 WARN job.GiraphConfigurationValidator: Output format vertex index type is not known
15/11/24 10:35:07 WARN job.GiraphConfigurationValidator: Output format vertex value type is not known
15/11/24 10:35:07 WARN job.GiraphConfigurationValidator: Output format edge value type is not known
15/11/24 10:35:07 INFO Configuration.deprecation: mapreduce.job.counters.limit is deprecated. Instead, use mapreduce.job.counters.max
15/11/24 10:35:07 INFO Configuration.deprecation: mapred.job.map.memory.mb is deprecated. Instead, use mapreduce.map.memory.mb
15/11/24 10:35:07 INFO Configuration.deprecation: mapred.job.reduce.memory.mb is deprecated. Instead, use mapreduce.reduce.memory.mb
15/11/24 10:35:07 INFO Configuration.deprecation: mapred.map.tasks.speculative.execution is deprecated. Instead, use mapreduce.map.speculative
15/11/24 10:35:07 INFO Configuration.deprecation: mapreduce.user.classpath.first is deprecated. Instead, use mapreduce.job.user.classpath.first
15/11/24 10:35:07 INFO Configuration.deprecation: mapred.map.max.attempts is deprecated. Instead, use mapreduce.map.maxattempts
15/11/24 10:35:07 INFO job.GiraphJob: run: Since checkpointing is disabled (default), do not allow any task retries (setting mapred.map.max.attempts = 0, old value = 4)
15/11/24 10:35:07 INFO Configuration.deprecation: mapred.job.tracker is deprecated. Instead, use mapreduce.jobtracker.address
Exception in thread "main" java.lang.IllegalArgumentException: checkLocalJobRunnerConfiguration: When using LocalJobRunner, you cannot run in split master / worker mode since there is only 1 task at a time!
    at org.apache.giraph.job.GiraphJob.checkLocalJobRunnerConfiguration(GiraphJob.java:157)
    at org.apache.giraph.job.GiraphJob.run(GiraphJob.java:225)
    at org.apache.giraph.GiraphRunner.run(GiraphRunner.java:94)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
    at org.apache.giraph.GiraphRunner.main(GiraphRunner.java:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
whx@whx-desktop:/usr/local/new_hadoop/hadoop/giraph-1.0.0-src/giraph-examples/target$
whx@whx-desktop:/usr/local/new_hadoop/hadoop/giraph-1.0.0-src/giraph-examples/target$
求大神指点一二,十分感谢

已有(1)人评论

跳转到指定楼层
jixianqiuxue 发表于 2015-11-24 11:17:15
这是本地运行job,没有在集群上运行
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条