基准加入和数独

时间:2015-04-12 20:30:18

标签: hadoop join mapreduce sudoku

我是Hadoop的新手。我想运行加入基准。如何获取输入数据集?你能举一个例子来运行它吗?

还有一件事,我想解决链接上给出的数独问题 http://magictour.free.fr/top95。我已经取代'。'由'? '在Hadoop上运行之前的数据集中。但我得到以下错误==>

Solving /root/exp_testing/mysrc/spsa_wordoccurrence/dataset/pjava.lang.ArrayIndexOutOfBoundsException: 159568
at org.apache.hadoop.examples.dancing.Sudoku.generateRow(Sudoku.java:245)
at org.apache.hadoop.examples.dancing.Sudoku.makeModel(Sudoku.java:293)
at org.apache.hadoop.examples.dancing.Sudoku.solve(Sudoku.java:301)
at org.apache.hadoop.examples.dancing.Sudoku.main(Sudoku.java:317)
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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71)
at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144)
at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74)
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)

我该如何解决?

1 个答案:

答案 0 :(得分:0)

我看到最后一行有垃圾字符。我认为这是问题所在。检查是否仍有问题,请更新输入文件。