2、CDH组件安装

一、zookeeper

1、安装

继续—>完成;

二、HDFS

1、安装

继续—>完成;

三、yarn、hive

1、安装yarn

继续—>完成;

2、安装hive

继续—>完成;

3、测试hive

hive> show tables;
OK
Time taken: 0.41 seconds

hive> create table student(id int, name string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ‘\t‘;
OK
Time taken: 0.168 seconds

hive> show tables;
OK
student
Time taken: 0.019 seconds, Fetched: 1 row(s)

hive> load data local inpath ‘/home/stu.txt‘ into table student;
Loading data to table default.student
Table default.student stats: [numFiles=1, numRows=0, totalSize=36, rawDataSize=0]
OK
Time taken: 0.471 seconds

hive> select * from student;
OK
1001    zhangsan
1002    lisi
1003    wangwu

###hive on yarn
[[email protected] ~]# su - hdfs hive
19/06/05 13:33:23 WARN conf.HiveConf: DEPRECATED: Configuration property hive.metastore.local no longer has any effect. Make sure to provide a valid value for hive.metastore.uris if you are connecting to a remote metastore.

Logging initialized using configuration in jar:file:/opt/cloudera/parcels/CDH-5.3.6-1.cdh5.3.6.p0.11/jars/hive-common-0.13.1-cdh5.3.6.jar!/hive-log4j.properties
hive> select count(1) from student;
Total jobs = 1
Launching Job 1 out of 1
Number of reduce tasks determined at compile time: 1
In order to change the average load for a reducer (in bytes):
  set hive.exec.reducers.bytes.per.reducer=<number>
In order to limit the maximum number of reducers:
  set hive.exec.reducers.max=<number>
In order to set a constant number of reducers:
  set mapreduce.job.reduces=<number>
Starting Job = job_1559705875106_0001, Tracking URL = http://bigdata-cdh03.ibeifeng.com:8088/proxy/application_1559705875106_0001/
Kill Command = /opt/cloudera/parcels/CDH-5.3.6-1.cdh5.3.6.p0.11/lib/hadoop/bin/hadoop job  -kill job_1559705875106_0001
Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 1
2019-06-05 13:33:46,429 Stage-1 map = 0%,  reduce = 0%
2019-06-05 13:33:51,610 Stage-1 map = 100%,  reduce = 0%, Cumulative CPU 0.86 sec
2019-06-05 13:33:57,788 Stage-1 map = 100%,  reduce = 100%, Cumulative CPU 2.16 sec
MapReduce Total cumulative CPU time: 2 seconds 160 msec
Ended Job = job_1559705875106_0001
MapReduce Jobs Launched:
Stage-Stage-1: Map: 1  Reduce: 1   Cumulative CPU: 2.16 sec   HDFS Read: 264 HDFS Write: 2 SUCCESS
Total MapReduce CPU Time Spent: 2 seconds 160 msec
OK
3
Time taken: 20.502 seconds, Fetched: 1 row(s)

4、服务组件配置

如,配置HDFS

如,配置hive:

四、HBase

1、安装

继续—>完成;

原文地址:https://www.cnblogs.com/weiyiming007/p/10985045.html

时间: 2024-08-30 18:30:19

2、CDH组件安装的相关文章

cdh 上安装spark on yarn

在cdh 上安装spark on yarn 还是比较简单的,不需要独立安装什么模块或者组件. 安装服务 选择on yarn 模式:上面 Spark 在spark 服务中添加 在yarn 服务中添加 getWay 后重新 启动服务端 用hdfs 用户进入 spark bin 目录 cd /opt/cloudera/parcels/CDH/lib/spark/bin 执行 ./spark-submit --class org.apache.spark.examples.SparkPi --maste

Cloudera CDH 离线安装与使用

CDH 在线安装方法如下,方便,但是由于在国内,访问这个网站的速度很慢,并不快捷. 在线安装Cloudera Manager服务器 # 配置cloudera-cdh源和cloudera-manager源 # cloudera-manager wget http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/cloudera-manager.repo # cloudera-cdh wget https://archive.cloudera.com/cd

CDH 离线安装部署

CDH相关介绍:  参考链接: https://blog.csdn.net/u013061459/article/details/73368929 https://www.cnblogs.com/raphael5200/p/5293960.html 为了构建一个以数据为驱动的业务场景,我们需要一个强大的管理工具去统一并安全地管理我们的业务数据,Cloudera做为一个强大的数据中心管理工具为此孕育而生.Cloudera不光提供了自己衍化重新封装的市场领先并100%开源的商业化Apache Had

2.使用Package Control组件安装

安装Sublime Text 2插件的方法: 1.直接安装 安装Sublime text 2插件很方便,可以直接下载安装包解压缩到Packages目录(菜单->preferences->packages). 也可以安装package control组件,然后直接在线安装: 按Ctrl+`调出console 粘贴以下代码到底部命令行并回车:import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_pa

Microsoft Visual Studio Web 创作组件安装失败的解决方法

在网上查一下说是Office2007的问题.我把Office2007卸载了还是不行. 然后用Windows Install Clean Up工具清理,还是不行. 郁闷了.然后在安装包中的下面路径下找到\WCU\WebDesignerCore找到“Visual Studio Web 创作组件”的安装程序WebDesignerCore.EXE,双击出现提示“提取失败”,看来是安装包的这个组件在从别的地方copy的时候出现问题了.于是让同事给我重新发一个WebDesignerCore.EXE,再双击就

Exchange Server 2013部署(二)先决条件及必备组件安装

上文我们已经介绍了部署环境和AD架构的准备,本文进行安装邮箱服务器前的组件安装 一.安装远程工具管理包:打开Powershell输入 Install-WindowsFeature RSAT-ADDS 二.在Server 2012安装 Exchange 2013所需的必备项取决于您想要安装的 Exchange 角色: 安装邮箱或客户端访问服务器角色时需要安装相关组件打开PowerShell输入: Install-WindowsFeature AS-HTTP-Activation, Desktop-

SCCM 2012 R2 实战系列(四)—数据库及必要组件安装

下面来介绍其余的组件,SCCM是需要数据库支持的,因此必须在SCCM服务器上首先将数据库安装好,另外SCCM部署中需要用到ADK中的部署工具,我们还需要在SCCM中安装Windows ADK 8.1,在部署过程中通过SCCM部署客户端计算机需要用到WDS组件,另外我们还需要配置IIS,这些都是提前需要准备好的,下面来介绍安装配置方法,首先是数据库的安装 这里一定要注意: SCCM不支持Express版本的数据库,数据库必须要打SP补丁,否则SCCM将无法正常识别,另外数据库如果是SQL 2012

delphi 组件安装教程详解

学习安装组件的最好方法,就是自己编写一个组件并安装一遍,然后就真正明白其中的原理了. 本例,编写了两个BPL, dclSimpleEdit.bpl 与 SimpleLabel.bpl ,其中,dclSimpleEdit.bpl 依赖 SimpleLabel.bpl , 或者说 dclSimpleEdit.bpl 需要 SimpleLabel.bpl 才能运行.这也是多数组件安装问题之典型! 本例源码下载(delphi 7) 一.首先在delphi中打开 ComponentStudy 目录中的 C

VMWare horizon view组件安装之Composer服务器安装

在安装Composer服务器之前,建议将Composer服务器加入到域环境,同时为Composer服务器安装额外的数据库,并在Composer本地服务器安装数据ODBC数据源服务端工具,为Composer服务器与SQL之间配置好ODBC数据源,当一切工作准备就绪后,就开始安装Composer服务器 在Composer服务器下载对应版本的Composer服务器软件包,并双击安装包,打开安装运行向导 接受许可协议 设置安装目录 为Composer指定数据库,并输入相应的验证用户名密码 设置Compo