zoukankan      html  css  js  c++  java
  • 启动原生Hadoop集群或伪分布环境

    一:启动Hadoop

    • 集群或伪分布安装成功之后,通过执行./sbin/start-all.sh启动Hadoop环境
    • 通过jps命令查看当前启动进程是否正确~

    [root@neusoft-master hadoop-2.6.0-cdh5.6.0]# pwd
    /opt/hadoop-2.6.0-cdh5.6.0
    [root@neusoft-master hadoop-2.6.0-cdh5.6.0]# ./sbin/start-all.sh

    This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
    17/01/28 06:41:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
    Starting namenodes on [neusoft-master]
    neusoft-master: starting namenode, logging to /opt/hadoop-2.6.0-cdh5.6.0/logs/hadoop-root-namenode-neusoft-master.out
    neusoft-master: starting datanode, logging to /opt/hadoop-2.6.0-cdh5.6.0/logs/hadoop-root-datanode-neusoft-master.out
    Starting secondary namenodes [0.0.0.0]
    0.0.0.0: starting secondarynamenode, logging to /opt/hadoop-2.6.0-cdh5.6.0/logs/hadoop-root-secondarynamenode-neusoft-master.out
    17/01/28 06:41:46 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
    starting yarn daemons
    starting resourcemanager, logging to /opt/hadoop-2.6.0-cdh5.6.0/logs/yarn-root-resourcemanager-neusoft-master.out
    neusoft-master: starting nodemanager, logging to /opt/hadoop-2.6.0-cdh5.6.0/logs/yarn-root-nodemanager-neusoft-master.out
    [root@neusoft-master hadoop-2.6.0-cdh5.6.0]# jps
    3220 SecondaryNameNode
    3374 ResourceManager
    2935 NameNode
    3801 Jps
    3471 NodeManager
    3030 DataNode

    二:启动Hive

    •      检查Mysql数据是否启动

    [root@neusoft-master hadoop-2.6.0-cdh5.6.0]# service mysqld status
    mysqld is stopped
    [root@neusoft-master hadoop-2.6.0-cdh5.6.0]# service mysqld start
    Starting mysqld: [ OK ]
    [root@neusoft-master hadoop-2.6.0-cdh5.6.0]# mysql -uroot -proot

         

    •     启动Hadoop集群环境:因为Hive底层使用的是Mapreduce执行sql语句
    •     [root@neusoft-master ~]# hive
    •  在hive中测试环境:
    •        create table test(id int);
    •        select count(*) from test;

        

        

    三:启动Hbase

        [root@neusoft-master opt]# cd hbase-1.0.0-cdh5.6.0/bin/
        [root@neusoft-master bin]# ./start-hbase.sh

         [root@neusoft-master bin]# hbase shell

        

       

  • 相关阅读:
    manacher算法笔记
    2019qbxtCSP-S2 模拟题1
    三元环计数
    踩坑日记
    我的Ubuntu16.04 安装配置
    SLAM14讲项目在 mac 上无法正常运行
    平面最近点对的算法实现
    hiho 1996
    【游记】NOIP2018 退役滚粗记
    铁板铮铮♂+习题集
  • 原文地址:https://www.cnblogs.com/jackchen-Net/p/6354114.html
Copyright © 2011-2022 走看看