zoukankan      html  css  js  c++  java
  • Tilera 服务器上hadoop单机版测试

    ---恢复内容开始---

    本篇博客用来记录在单个Tilera服务器上安装hadoop并且测试的经历,参阅了大多数博客。

    1、Tilera服务器介绍

      本Tilera服务器配备9核CPU,共挂在6块硬盘,每块1TB.

    2、服务器安装hadoop的步骤

    本环境的硬件环境是这样搭建的,Inter服务器通过USB以及串口和Tilera相连。Inter服务器上有MDE的安装包,Tilera服务器此时是裸机。

    所以本篇文章是一个从零开始的流程。

    2.1、制作bootrom从USB启动

      

    tile-mkboot -o gx9_undisk.bootrom -c 
            --hv-bin-dir hv 
            --hvc  nine_core.hvc 
            vmlinux=vmlinux 
            classifier=/TileraMDE402/tile/boot/classifier 
            initramfs.cpio.gz=/TileraMDE402/tile/boot/initramfs.cpio.gz

    注意hv和vmlinux原本在/TileraMDE402/tile/boot/下,我把它们拷贝到本文件夹下而已。

    nine_core.hvc的内容如下:

    otions stripe_memory=silent 
    device? comp/0 
    device? comp/1 
    device? crypto/0 
    device? crypto/1 
    device? gpio/0 
    device? i2cm/0 
    device? i2cm/1 
    device? i2cm/2 
    device? mpipe/0 
    device? mpipe/1 
    device? srom/0 
    device? trio/0 
    device? trio/1 
    device? usb_host/0 
    device? usb_host/1 
    client vmlinux 
      args TLR_NETWORK=none

    然后:

    cat gx9_undisk.bootrom > /dev/tileusb2/boot

    tileusb2应该替换成你的usb设备。

    2.2、安装MDE环境

      现在Tilera已经从usb启动。现在我们通过串口来控制tilera服务器。

    A)串口查看启动信息

      (PC端)

    tile-console --device /dev/ttyUSB2

      现在已经打开console端

    B)启动众核设备,配置ip,这一步并不总是必须的。配置网口主要是用来高速传输数据,因为usb比较慢,但是你也可以使用usb。

      (console端)

    ifconfig eth0 x.x.x.x

    C)挂载分区格式化命令

      (PC端)

    tile-monitor --net x.x.x.x --resume --root

    假如你没有配置网口,你可已使用

    tile-monitor --dev /dev/tileusb2 --resume --root

    代替。

    D)电子盘分区,创建文件系统,注意其余五个硬盘也是如此。

    (console端)

    fdisk /dev/sda
    mkfs –t ext3 /dev/sda1

    E)挂载硬盘

    (console端)

    mount /dev/sda1 /mnt

    注意其余五块硬盘现在不需要挂载。

    F)将 TileraMDE-4.0.2.145127_tilegx_tile_full.tar 解压到硬盘中:
    (PC 端)# xz -d TileraMDE-4.0.2.145127_tilegx_tile_full.tar.xz        //生成 tile.tar文件
    (console 端) # ifconfig eth0 x.x.x.x                                   //配置和 PC 端同网段 IP
    (PC 端)# tile-monitor --resume --net x.x.x.x --here           //将当前目录 mount 到tile 系统
    (console 端)# tar xvf TileraMDE-4.0.2.145127_tilegx_tile_full.tar -C /mnt
    (console 端)# vi /mnt/etc/fstab ; 去掉第一行的注释号,将 ext4 改成 ext3
    (console 端)# cd /
    (console 端)# umount /mnt

    2.3、制作从硬盘启动

    tile-mkboot -o gx9_disk.bootrom -c 
        --hv-bin-dir hv 
        --hvc  nine_core_disk.hvc 
        vmlinux=vmlinux 
        classifier=/TileraMDE402/tile/boot/classifier
    nine_core_disk.hvc内容如下
    otions stripe_memory=silent 
    device? comp/0 
    device? comp/1 
    device? crypto/0 
    device? crypto/1 
    device? gpio/0 
    device? i2cm/0 
    device? i2cm/1 
    device? i2cm/2 
    device? mpipe/0 
    device? mpipe/1 
    device? srom/0 
    device? trio/0 
    device? trio/1 
    device? usb_host/0 
    device? usb_host/1 
    client vmlinux 
      args TLR_NETWORK=none rootwait root=/dev/sda1

    烧写 bootrom 后重新启动即可。
    sbim -i gx9_disk.bootrom

    2.4、安装hadoop

    <!--请参照网上教程 -->

  • 相关阅读:
    Single Number II
    Pascal's Triangle
    Remove Duplicates from Sorted Array
    Populating Next Right Pointers in Each Node
    Minimum Depth of Binary Tree
    Unique Paths
    Sort Colors
    Swap Nodes in Pairs
    Merge Two Sorted Lists
    Climbing Stairs
  • 原文地址:https://www.cnblogs.com/likeyiyy/p/3208318.html
Copyright © 2011-2022 走看看