分布式-ubuntu12.04上安装hadoop1.2.1,ubuntu12.04安装qq


在hadoop1.2.1的安装说明中有说明要预先安装java,我安装了好多版本的java以及好多版本的hadoop,然后发现oracle-java7与hadoop1.2.1是可以匹配的。


一,安装具体步骤如下:

1. 安装java: sudo apt-get install oracle-java7-installer

2. 安装hadoop1.2.1: http://hadoop.apache.org/docs/r1.2.1/single_node_setup.html#Download


二,测试是否安装成功(伪分布式模式):

Format a new distributed-filesystem:
$ bin/hadoop namenode -format

Start the hadoop daemons:
$ bin/start-all.sh

The hadoop daemon log output is written to the ${HADOOP_LOG_DIR} directory (defaults to ${HADOOP_HOME}/logs).
Browse the web interface for the NameNode and the JobTracker; by default they are available at:
NameNode - http://localhost:50070/
JobTracker - http://localhost:50030/
Copy the input files into the distributed filesystem:
$ bin/hadoop fs -put conf input

Run some of the examples provided:
$ bin/hadoop jar hadoop-examples-*.jar grep input output 'dfs[a-z.]+'

Examine the output files:
Copy the output files from the distributed filesystem to the local filesytem and examine them:
$ bin/hadoop fs -get output output 
$ cat output/*

When you're done, stop the daemons with:
$ bin/stop-all.sh


三,web UI

1. NameNode:http://localhost:50070/
2. JobTracker :http://localhost:50030/


Ubuntu下的eclipse安装hadoop插件安装不上

换个eclipse版本试试 加上插件包就可以了 没听说过要另外加包到插件包中
 

要在ubuntu下安装hadoop,首先要安装jdk怎装

解压之后设置一下环境变量就可以了。可以在在/etc/profile后面加入类似的内容:

#set java environment
JAVA_HOME=JDK路径
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH

或者下载一个.bin的JDK安装包
download.oracle.com/...86.bin

这个分布式文件系统不知道用OpenJDK可以不,如若嫌麻烦可以试试OpenJDK,ubuntu的软件源里一般都有,用命令“sudo apt-get install default-jdk”或“sudo apt-get install openjdk-6-jdk”就可以安装
 

相关内容