Skip to content

Chapter 2: MapReduce: hadoop command doesn't work without class package #35

@Tradunsky

Description

@Tradunsky

On the 25th page of the book there is a command to execute MaxTemperature map reduce job:

hadoop MaxTemperature input/ncdc/sample.txt output

with the execution logs output. However, as for my environment the execution result is different:

ERROR: MaxTemperature is not COMMAND nor fully qualified CLASSNAME.

After a quick look it turns out that it works only with class specified including package:

hadoop oldapi.MaxTemperature input/ncdc/sample.txt output

Not sure if it is something important, but want to highlight in the case somebody stumble as I did.

uname -a
Darwin viacheslavt-mac.local 17.6.0 Darwin Kernel Version 17.6.0: Tue May 8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
hadoop version
Hadoop 3.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions