Compiling Hadoop Examples in Mac
NickName:Vinodh Ask DateTime:2013-09-15T23:17:03

Compiling Hadoop Examples in Mac

I am new to Unixlike operating systems. After installing Hadoop as per the instructions below, http://wiki.apache.org/hadoop/Running_Hadoop_On_OS_X_10.5_64-bit_(Single-Node_Cluster)

I am trying to build the examples as given in the same URL using ant examples

This gives me an exception as below

compile-mapred-classes: Trying to override old definition of task jsp-compile [javac] /Users/hadoop/hadoop-1.2.1/build.xml:549: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

create-native-configure:

BUILD FAILED /Users/hadoop/hadoop-1.2.1/build.xml:634: Execute failed: java.io.IOException: Cannot run program "autoreconf" (in directory "/Users/hadoop/hadoop-1.2.1/src/native"): error=2, No such file or directory

What exactly is needed for my Mac to get past this?

Copyright Notice:Content Author:「Vinodh」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/18813967/compiling-hadoop-examples-in-mac

Answers
fjarri 2013-09-15T15:22:00

As the error says, you need to install autoreconf. The easiest way to do it is through Homebrew (brew install autoconf, after you install the Homebrew itself).\n\nIncidentally, hadoop can be installed through Homebrew as well.",


XtraSimplicity 2016-11-01T23:44:40

I had the same issue, and was able to resolve it by installing automake, autoconf and libtool:\n\nbrew install automake autoconf libtool\n",


More about “Compiling Hadoop Examples in Mac” related questions

Compiling Hadoop Examples in Mac

I am new to Unixlike operating systems. After installing Hadoop as per the instructions below, http://wiki.apache.org/hadoop/Running_Hadoop_On_OS_X_10.5_64-bit_(Single-Node_Cluster) I am trying to...

Show Detail

Hadoop examples grep

I just started looking into hadoop and downloaded therefore the current version 4.3.1 of the cloudera virtual machine. I started looking into the hadoop example grep to get a first feeling for had...

Show Detail

Error while install hadoop on mac

I was trying to install hadoob on mac. I got the following error. What could be the issue? hadoop-0.20.203.0 administrator$ bin/hadoop jar hadoop-*-examples.jar grep input output 'dfs[a-z.]+'

Show Detail

How to compile OpenThread examples on Mac OS?

How can I compile the OpenThread examples on Mac OS? The scripts supplied in the repository do not work, because they use apt-get which is not available in Mac OS. Is there some kind of guide on ho...

Show Detail

re-compile hadoop failed on mac : An Ant BuildException has occured: exec returned: 2

prepare: macOS Sierra 10.12.5 hadoop-2.8.0-src and I've read BUILDING.txt Requirements as follow: * Unix System * JDK 1.7+ * Maven 3.0 or later * Findbugs 1.3.9 (if running findbugs)&#x

Show Detail

Unable to run hadoop 1.2.1 examples on Mac OS X

I have installed hadoop 1.2.1 on an iMAC running OS X 10.8.5 and after running jps I can see that all the expected processes have started up fine. The issue I am having is when I try to run a map-r...

Show Detail

How to copy hadoop examples jar from local to hadoop environment?

I'm still newbie with Hadoop. I've downloaded a cloudera VM image of hadoop and it did not contain hadoop-examples.jar. I want to manually copy the hadoop-examples.jar (I got it from somewhere) a...

Show Detail

In search of more Hadoop examples

I have setup hadoop on my pc and ran my first map-red program of wordcount. I am searching where and what kind of other case studies I can get into. where can I get some sample code? I have got so...

Show Detail

Compiling issue with hadoop pipes

I have come across two approaches for compiling c++ programs using Hadoop pipes for Hadoop 1.2.0 and have had no luck with either of them. Approach 1: I came across the following link: http://cs.

Show Detail

Error in hadoop examples.jar

I just installed Hadoop from the yahoo developers network running on a vm. I ran the following code after start-all.sh after cd-ing to the bin folder hadoop jar hadoop-0.19.0.-examples.jar pi 10 1...

Show Detail