AnsweredAssumed Answered

Dev 301 Ex3.3 compilation error

Question asked by kumarrm86 on Mar 12, 2016
Latest reply on Mar 12, 2016 by mufeed

As per exercise i have unzipped and editted the driver file alone as below. When i run sudo ./rebuild.sh , it shows the compilation error as follow.

hduser@kumar:/user/ex3/RECEIPTS_LAB$ sudo ./rebuild.sh

[sudo] password for hduser:

ReceiptsMapper.java:3: error: package org.apache.hadoop.mapreduce does not exist

import org.apache.hadoop.mapreduce.Mapper;

                                  ^

ReceiptsMapper.java:4: error: package org.apache.hadoop.io does not exist

import org.apache.hadoop.io.Text;

                           ^

ReceiptsMapper.java:5: error: package org.apache.hadoop.io does not exist

import org.apache.hadoop.io.LongWritable;

                           ^

ReceiptsMapper.java:10: error: cannot find symbol

public class ReceiptsMapper  extends Mapper <LongWritable,Text,Text,Text> {

                                     ^

  symbol: class Mapper

ReceiptsMapper.java:10: error: cannot find symbol

public class ReceiptsMapper  extends Mapper <LongWritable,Text,Text,Text> {

                                             ^

  symbol: class LongWritable

ReceiptsMapper.java:10: error: cannot find symbol

public class ReceiptsMapper  extends Mapper <LongWritable,Text,Text,Text> {                                                          ^

Like the above am geting 26 errors while rebuild.

 

Please help me to reslove this,

 

FYI:

My path values:

hduser@kumar:/user/ex3/RECEIPTS_LAB$ echo $HADOOP_CLASSPATH

/usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar

 

hduser@kumar:/user/ex3/RECEIPTS_LAB$ echo $PATH

/usr/lib/jvm/java-7-openjdk-amd64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/hadoop-2.7.1/bin:/usr/local/hadoop-2.7.1/sbin

Outcomes