分散式-ubuntu12.04安装hadoop1.2.1

分散式-ubuntu12.04安装hadoop1.2.1

大家好,又见面了,我是全栈君,今天给大家准备了Idea注册码。

在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/

版权声明:本文博客原创文章,博客,未经同意,不得转载。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/117454.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • JavaWeb之Request对象和Response对象详解

    JavaWeb之Request对象和Response对象详解一:概述Web服务器收到客户端的http请求,会针对每一次请求,分别创建一个用于代表请求的request对象、和代表响应的response对象一、Response对象   1.Resonse的继承结构:         ServletResponse–HttpServletResponse   2.Response代表响应,于是响应消息中的状态码、响应头、实体

    2022年6月4日
    49
  • Android toArray

    Android toArrayArrayList提供了一个将List转为数组的一个非常方便的方法toArray。toArray有两个重载的方法:1.list.toArray();2.list.toArray(T[]a);对于第一个重载方法,是将list直接转为Object[]数组;第二种方法是将list转化为你所需要类型的数组,当然我们用的时候会转化为与list内容相同的类型。不明真像的同学喜欢用第

    2022年5月15日
    31
  • 树莓派新手教程_新手入门树莓派必做的四件事

    树莓派新手教程_新手入门树莓派必做的四件事此篇文章獻給所有第一次把玩樹莓派的新手、以及樹莓派的愛好者。 ByHerbfargus-Ownwork,CCBY-SA4.0,https://commons.wikimedia.org/w/index.php?curid=47497384 目標建立一個省電的家用伺服器 小弟選用樹莓派作為家用伺服器,…

    2022年10月14日
    3
  • -bash: ifconfig: command not found[通俗易懂]

    -bash: ifconfig: command not found[通俗易懂]执行命令:ifconfig错误截图:解决方案:1.运行命令:sudoyuminstallnet-tools2.根据提示输入y3.根据提示再次输入y看到Complete!就OK了测试:再次执行命令:ifconfig好了问题成功解决!…

    2025年5月30日
    3
  • CEGUI0.8.4例子

    CEGUI0.8.4例子#defineGLUT_DISABLE_ATEXIT_HACK#pragmacomment(lib,”glew32.lib”)#include<stdlib.h>#include<gl/glew.h>#include<gl/glut.h>#include<CEGUI/CEGUI.h>#include<CEGUI/RendererM…

    2022年7月23日
    10
  • vue 生成二维码 插件

    vue 生成二维码 插件1.下载qr插件npmivue-qr–save2.引入//引入插件importVueQrfrom’vue-qr’//放入componentscomponents:{VueQr}3.使用//页面使用<vue-qrtext=”这是你的二维码内容”size=”200″:margin=”0″/>4.效果

    2022年10月3日
    1

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号