当前位置:网站首页>头歌 平台作业
头歌 平台作业
2022-07-24 05:21:00 【大概是犬青】
HBase的安装与简单操作
第1关:Hbase数据库的安装
mkdir /appcd /opttar -zxvf hbase-2.1.1-bin.tar.gz -C /appvim /app/hbase-2.1.1/conf/hbase-env.shexport JAVA_HOME=/usr/lib/jvm/jdk1.8.0_111
vim /app/hbase-2.1.1/conf/hbase-site.xml
末尾插入如下内容:<configuration> <property> <name>hbase.rootdir</name> <value>file:///root/data/hbase/data</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>/root/data/hbase/zookeeper</value> </property> <property> <name>hbase.unsafe.stream.capability.enforce</name> <value>false</value> </property> </configuration>vim /etc/profile
末尾插入如下内容:# SET HBASE_enviroment HBASE_HOME=/app/hbase-2.1.1 export PATH=$PATH:$HBASE_HOME/binsource /etc/profilestart-hbase.sh
第2关:创建表
基于第一关实验环境,如果下面遇到问题重做第一关
hbase shellcreate 'test','data'create 'dept','data'create 'emp','data'
第3关:添加数据、删除数据、删除表
基于第一关实验环境,如果下面遇到问题重做第一关
hbase shellcreate 'mytable','data'put 'mytable','row1','data:1','zhangsan'put 'mytable','row2','data:2','zhangsanfeng'put 'mytable','row3','data:3','zhangwuji'
单节点 Kafka 安装
第1关:单节点 Kafka 的安装
cd /data/workspace/myshixun/tar -zxvf kafka_2.11-1.1.0.tgz -C /opt/cd /opt/kafka_2.11-1.1.0/config/vi server.properties然后修改log.dirs=/opt/kafka-logs(在下图位置)
然后设置Zookeeper 的连接默认就行,不用改vi /etc/profile
在末尾添加如下:export KAFKA_HOME=/opt/kafka_2.11-1.1.0export PATH=$PATH:$KAFKA_HOME/bin
保存退出后source /etc/profile启动zookeeper:
/opt/zookeeper-3.4.12/bin/zkServer.sh start
启动kafka:kafka-server-start.sh /opt/kafka_2.11-1.1.0/config/server.properties
边栏推荐
- Xshell远程访问工具
- 测试数据增强后标签和数据集是否对应
- Thymeleaf快速入门学习
- Pytorch single machine multi card distributed training
- 【USB Host】STM32H7 CubeMX移植带FreeRTOS的USB Host读取U盘,USBH_Process_OS卡死问题,有个值为0xA5A5A5A5
- day1-jvm+leetcode
- "Statistical learning methods (2nd Edition)" Li Hang Chapter 16 principal component analysis PCA mind map notes and after-school exercise answers (detailed steps) PCA matrix singular value Chapter 16
- Raspberry pie is of great use. Use the campus network to build a campus local website
- JUC并发编程基础(6)--Lock锁
- [activiti] activiti process engine configuration class
猜你喜欢

世界坐标系、相机坐标系和图像坐标系的转换

【树莓派4B】七、远程登录树莓派的方法总结XShell,PuTTY,vncServer,Xrdp

【数据库系统原理】第五章 代数和逻辑查询语言:包、扩展操作符、关系逻辑、关系代数与Datalog

字符串方法以及实例

Chapter III summary of linear model

在网络中添加SE通道注意力模块

"Statistical learning methods (2nd Edition)" Li Hang Chapter 14 clustering method mind map notes and after-school exercise answers (detailed steps) K-means hierarchical clustering Chapter 14
![[MYCAT] related concepts of MYCAT](/img/44/99d413d47828252267b5242c64960b.png)
[MYCAT] related concepts of MYCAT

Common features of ES6

PDF文本合并
随机推荐
Demo of UDP communication applied to various environments
‘Results do not correspond to current coco set‘
目标检测带标签数据增强代码
读取csv文件的满足条件的行并写入另一个csv中
CRC-16 Modbus代码
STM32标准外设库(标准库)官网下载方法,附带2021最新标准固件库下载链接
Machine learning (zhouzhihua) Chapter 5 notes on neural network learning
Raspberry pie is of great use. Use the campus network to build a campus local website
day6-jvm
通道注意力与空间注意力模块
PDF文本合并
【数据库系统原理】第五章 代数和逻辑查询语言:包、扩展操作符、关系逻辑、关系代数与Datalog
In GCC__ attribute__ ((constructor) and__ attribute__ ((destructor)).
【深度学习】手写神经网络模型保存
[USB host] stm32h7 cubemx porting USB host with FreeRTOS to read USB disk, usbh_ Process_ The OS is stuck. There is a value of 0xa5a5a5
【数据库系统原理】第四章 高级数据库模型:统一建模语言UML、对象定义语言ODL
day4-jvm
Answers and analysis of some after-school exercises in signals and systems (Wujing)
JUC并发编程基础(9)--线程池
《剑指Offer》 二维数组的查找 C语言版本