zoukankan      html  css  js  c++  java
  • centos7配置Hadoop集群环境

    参考:

    https://blog.csdn.net/pucao_cug/article/details/71698903 

    设置免密登陆后,必须重启ssh服务

    systermctl restart sshd.service

    ssh服务介绍:

    两种登陆方式:

    1.密码登陆

    2.密钥登陆

    启动

    http://192.168.5.130:8088/cluster

    http://192.168.5.130:50070/dfshealth.html#tab-overview

    安装Hadoop家族工具

    hive   结合 mysql的jdbc插件    https://blog.csdn.net/pucao_cug/article/details/71773665

    impala

    sqoop   https://blog.csdn.net/pucao_cug/article/details/72083172

    hbase  https://blog.csdn.net/pucao_cug/article/details/72229223

    启动会报错

    https://blog.csdn.net/l1028386804/article/details/51538611

    安装zookeeper 

    参考:https://blog.csdn.net/pucao_cug/article/details/72228973

    zookeeper status 

    原因是:myid和 zoo.cfg里的配置不匹配

    hive 导入txt文件数据到表中:

    create  table  student(id int,name string)  row  format  delimited  fields   terminated  by  ' ';

    load   data  local   inpath   '/opt/hadoop/hive/student.txt'   into   table   db_hive_edu.student;

    -- hive导入csv文件
    create table table_name(
    id string,
    name string,
    age string
    )
    row format serde
    'org.apache.hadoop.hive.serde2.OpenCSVSerde'
    with
    SERDEPROPERTIES
    ("separatorChar"=",","quotechar"=""")
    STORED AS TEXTFILE;
    load data local inpath '/opt/hadoop/hive/table_name.csv' overwrite into table table_name;
    

      

    将表转换成ORC表:

    create table table_name_orc(
    id string,
    name string,
    age string
    )row format delimited fields terminated by "	" STORED AS ORC
    
    insert overwrite table table_name_orc select * from table_name
    

      

  • 相关阅读:
    .Net业务搭配实用技术栈(转)
    基于WebGL/Threejs技术的BIM模型轻量化之图元合并
    设计模式之六大原则
    osgearth介绍
    OSG中的示例程序简介
    共有49款Windows GUI开发框架开源软件 【转】
    地球坐标系与投影方式的理解(关于北京54,西安80,WGS84;高斯,兰勃特,墨卡托投影)(转)
    c#串口编程(转)
    c++消息队列的实现
    SQL总结 连表查询
  • 原文地址:https://www.cnblogs.com/iloverain/p/9458897.html
Copyright © 2011-2022 走看看