Platforms: Unix and on Windows. Linux: the only supported production platform. Other variants of Unix, like Mac OS X: run Hadoop for development. Windows.

Similar presentations

Presentation on theme: "Platforms: Unix and on Windows. Linux: the only supported production platform. Other variants of Unix, like Mac OS X: run Hadoop for development. Windows."— Presentation transcript:

4
Or you can do gedit ~/.bashrc.bashrc is the file that is executed when you open a terminal window And paste the stuff below # JAVA HOME directory setup export JAVA_HOME="/usr/local/java/jdk1.7.0_45" PATH="$PATH:$JAVA_HOME/bin" export HADOOP_HOME="/hadoop-1.2.1" PATH=$PATH:$HADOOP_HOME/bin export PATH Then restart the terminal

5
Standalone (or local) mode – There are no daemons running and everything runs in a single JVM. Standalone mode is suitable for running MapReduce programs during development, since it is easy to test and debug them. Pseudo-distributed mode – The Hadoop daemons run on the local machine, thus simulating a cluster on a small scale. Fully distributed mode – The Hadoop daemons run on a cluster of machines.

11
1.You can download the Hadoop plugin for Eclipse from http://www.cs.kent.edu/~xchang/files/hadoop-eclipse- plugin-0.20.203.0.jar http://www.cs.kent.edu/~xchang/files/hadoop-eclipse- plugin-0.20.203.0.jar 2.And then drag and drop it into plugins folder of your eclipse 3. Then Start your eclipse you should be able to see the elephant icon on the right upper corner which is Map/Reduce Perspective, activate it.

13
And configure your DFS in the tab lies in lower section Click the New Hadoop Location button on the right

14
Name your location and fill out the rest of text boxes like below in the case of local single node After successes connection you should be able to see the figure on the right

15
After you have done project Right Click -> Export -> Jar And then configure the JAR Export panel like below

16
But the path format will be different from the parameter you use on command line. So you need put the URL like this Path input=new Path("hdfs://localhost:9000/user/xchang/input"); Path output=new Path("hdfs://localhost:9000/user/xchang/output"); But a WRONG FS error will happen when you try to operate on the DFS in this way. FileSystem fs = FileSystem.get(conf); fs.delete(new Path("hdfs://localhost:9000/user/xchang/output"), true);

17
To set the path on DFS 1.Load your configure files to Configuration instance 2. Then you can specify the relative path on the DFS

29
Check status Jps on Masters and slave http://54.213.238.245:50070/dfshealth.jsp When things are correct you can see If not go and check logs under hadoop folder If no logs at all check Master and Slave connections