Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.00 KB | None | 0 0
  1. mark@*****:~/wordcount_classes$ javac WordCount.java
  2. WordCount.java:6: package org.apache.hadoop.fs does not exist
  3. import org.apache.hadoop.fs.Path;
  4. ^
  5. WordCount.java:7: package org.apache.hadoop.conf does not exist
  6. import org.apache.hadoop.conf.*;
  7. ^
  8. WordCount.java:8: package org.apache.hadoop.io does not exist
  9. import org.apache.hadoop.io.*;
  10. ^
  11. WordCount.java:9: package org.apache.hadoop.mapred does not exist
  12. import org.apache.hadoop.mapred.*;
  13. ^
  14. WordCount.java:10: package org.apache.hadoop.util does not exist
  15. import org.apache.hadoop.util.*;
  16. ^
  17. WordCount.java:14: cannot find symbol
  18. symbol : class MapReduceBase
  19. location: class org.myorg.WordCount
  20. public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
  21. ^
  22. WordCount.java:14: cannot find symbol
  23. symbol : class Mapper
  24. location: class org.myorg.WordCount
  25. public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
  26. ^
  27. WordCount.java:14: cannot find symbol
  28. symbol : class LongWritable
  29. location: class org.myorg.WordCount
  30. public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
  31. ^
  32. WordCount.java:14: cannot find symbol
  33. symbol : class Text
  34. location: class org.myorg.WordCount
  35. public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
  36. ^
  37. WordCount.java:14: cannot find symbol
  38. symbol : class Text
  39. location: class org.myorg.WordCount
  40. public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
  41. ^
  42. WordCount.java:14: cannot find symbol
  43. symbol : class IntWritable
  44. location: class org.myorg.WordCount
  45. public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
  46. ^
  47. WordCount.java:14: interface expected here
  48. public static class Map extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> {
  49. ^
  50. WordCount.java:15: cannot find symbol
  51. symbol : class IntWritable
  52. location: class org.myorg.WordCount.Map
  53. private final static IntWritable one = new IntWritable(1);
  54. ^
  55. WordCount.java:16: cannot find symbol
  56. symbol : class Text
  57. location: class org.myorg.WordCount.Map
  58. private Text word = new Text();
  59. ^
  60. WordCount.java:18: cannot find symbol
  61. symbol : class LongWritable
  62. location: class org.myorg.WordCount.Map
  63. public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  64. ^
  65. WordCount.java:18: cannot find symbol
  66. symbol : class Text
  67. location: class org.myorg.WordCount.Map
  68. public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  69. ^
  70. WordCount.java:18: cannot find symbol
  71. symbol : class OutputCollector
  72. location: class org.myorg.WordCount.Map
  73. public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  74. ^
  75. WordCount.java:18: cannot find symbol
  76. symbol : class Text
  77. location: class org.myorg.WordCount.Map
  78. public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  79. ^
  80. WordCount.java:18: cannot find symbol
  81. symbol : class IntWritable
  82. location: class org.myorg.WordCount.Map
  83. public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  84. ^
  85. WordCount.java:18: cannot find symbol
  86. symbol : class Reporter
  87. location: class org.myorg.WordCount.Map
  88. public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  89. ^
  90. WordCount.java:28: cannot find symbol
  91. symbol : class MapReduceBase
  92. location: class org.myorg.WordCount
  93. public static class Reduce extends MapReduceBase implements Reducer<Text, IntWritable, Text, IntWritable> {
  94. ^
  95. WordCount.java:28: cannot find symbol
  96. symbol : class Reducer
  97. location: class org.myorg.WordCount
  98. public static class Reduce extends MapReduceBase implements Reducer<Text, IntWritable, Text, IntWritable> {
  99. ^
  100. WordCount.java:28: cannot find symbol
  101. symbol : class Text
  102. location: class org.myorg.WordCount
  103. public static class Reduce extends MapReduceBase implements Reducer<Text, IntWritable, Text, IntWritable> {
  104. ^
  105. WordCount.java:28: cannot find symbol
  106. symbol : class IntWritable
  107. location: class org.myorg.WordCount
  108. public static class Reduce extends MapReduceBase implements Reducer<Text, IntWritable, Text, IntWritable> {
  109. ^
  110. WordCount.java:28: cannot find symbol
  111. symbol : class Text
  112. location: class org.myorg.WordCount
  113. public static class Reduce extends MapReduceBase implements Reducer<Text, IntWritable, Text, IntWritable> {
  114. ^
  115. WordCount.java:28: cannot find symbol
  116. symbol : class IntWritable
  117. location: class org.myorg.WordCount
  118. public static class Reduce extends MapReduceBase implements Reducer<Text, IntWritable, Text, IntWritable> {
  119. ^
  120. WordCount.java:28: interface expected here
  121. public static class Reduce extends MapReduceBase implements Reducer<Text, IntWritable, Text, IntWritable> {
  122. ^
  123. WordCount.java:29: cannot find symbol
  124. symbol : class Text
  125. location: class org.myorg.WordCount.Reduce
  126. public void reduce(Text key, Iterator<IntWritable> values, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  127. ^
  128. WordCount.java:29: cannot find symbol
  129. symbol : class IntWritable
  130. location: class org.myorg.WordCount.Reduce
  131. public void reduce(Text key, Iterator<IntWritable> values, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  132. ^
  133. WordCount.java:29: cannot find symbol
  134. symbol : class OutputCollector
  135. location: class org.myorg.WordCount.Reduce
  136. public void reduce(Text key, Iterator<IntWritable> values, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  137. ^
  138. WordCount.java:29: cannot find symbol
  139. symbol : class Text
  140. location: class org.myorg.WordCount.Reduce
  141. public void reduce(Text key, Iterator<IntWritable> values, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  142. ^
  143. WordCount.java:29: cannot find symbol
  144. symbol : class IntWritable
  145. location: class org.myorg.WordCount.Reduce
  146. public void reduce(Text key, Iterator<IntWritable> values, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  147. ^
  148. WordCount.java:29: cannot find symbol
  149. symbol : class Reporter
  150. location: class org.myorg.WordCount.Reduce
  151. public void reduce(Text key, Iterator<IntWritable> values, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
  152. ^
  153. WordCount.java:15: cannot find symbol
  154. symbol : class IntWritable
  155. location: class org.myorg.WordCount.Map
  156. private final static IntWritable one = new IntWritable(1);
  157. ^
  158. WordCount.java:16: cannot find symbol
  159. symbol : class Text
  160. location: class org.myorg.WordCount.Map
  161. private Text word = new Text();
  162. ^
  163. WordCount.java:32: operator + cannot be applied to int,IntWritable.get
  164. sum += values.next().get();
  165. ^
  166. WordCount.java:32: inconvertible types
  167. found : <nulltype>
  168. required: int
  169. sum += values.next().get();
  170. ^
  171. WordCount.java:34: cannot find symbol
  172. symbol : class IntWritable
  173. location: class org.myorg.WordCount.Reduce
  174. output.collect(key, new IntWritable(sum));
  175. ^
  176. WordCount.java:39: cannot find symbol
  177. symbol : class JobConf
  178. location: class org.myorg.WordCount
  179. JobConf conf = new JobConf(WordCount.class);
  180. ^
  181. WordCount.java:39: cannot find symbol
  182. symbol : class JobConf
  183. location: class org.myorg.WordCount
  184. JobConf conf = new JobConf(WordCount.class);
  185. ^
  186. WordCount.java:42: cannot find symbol
  187. symbol : class Text
  188. location: class org.myorg.WordCount
  189. conf.setOutputKeyClass(Text.class);
  190. ^
  191. WordCount.java:43: cannot find symbol
  192. symbol : class IntWritable
  193. location: class org.myorg.WordCount
  194. conf.setOutputValueClass(IntWritable.class);
  195. ^
  196. WordCount.java:49: cannot find symbol
  197. symbol : class TextInputFormat
  198. location: class org.myorg.WordCount
  199. conf.setInputFormat(TextInputFormat.class);
  200. ^
  201. WordCount.java:50: cannot find symbol
  202. symbol : class TextOutputFormat
  203. location: class org.myorg.WordCount
  204. conf.setOutputFormat(TextOutputFormat.class);
  205. ^
  206. WordCount.java:52: cannot find symbol
  207. symbol : class Path
  208. location: class org.myorg.WordCount
  209. FileInputFormat.setInputPaths(conf, new Path(args[0]));
  210. ^
  211. WordCount.java:52: cannot find symbol
  212. symbol : variable FileInputFormat
  213. location: class org.myorg.WordCount
  214. FileInputFormat.setInputPaths(conf, new Path(args[0]));
  215. ^
  216. WordCount.java:53: cannot find symbol
  217. symbol : class Path
  218. location: class org.myorg.WordCount
  219. FileOutputFormat.setOutputPath(conf, new Path(args[1]));
  220. ^
  221. WordCount.java:53: cannot find symbol
  222. symbol : variable FileOutputFormat
  223. location: class org.myorg.WordCount
  224. FileOutputFormat.setOutputPath(conf, new Path(args[1]));
  225. ^
  226. WordCount.java:55: cannot find symbol
  227. symbol : variable JobClient
  228. location: class org.myorg.WordCount
  229. JobClient.runJob(conf);
  230. ^
  231. 49 errors
  232.  
  233. $ javac -classpath `hadoop classpath`:. WordCount.java
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement