当前位置: 首页 > news >正文

hadoop使用简介

git clone

hadoop源码地址:https://gitee.com/CHNnoodle/hadoop.git
git clone错误:

Filename too long错误,使用git config --global core.longpaths true
git clone https://gitee.com/CHNnoodle/hadoop.git -b rel/release-3.2.2 拉取指定tag版本

hadoop安装包地址:https://mirrors.cloud.tencent.com/apache/hadoop/common/

windows平台下载,https://github.com/cdarlint/winutils替换hadoop对应版本的bin文件

hadoop

  • core-site.xml,hadoop中间文件的输出路径
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration><property><name>hadoop.tmp.dir</name><value>/D:/ruanjian/hadoop/hadoop-3.3.5/data</value>    </property><property><name>fs.defaultFS</name><value>hdfs://localhost:9000</value></property>
</configuration>
  • hdfs-site.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration><property><name>dfs.replication</name><value>1</value></property><property><name>dfs.namenode.name.dir</name><value>/D:/ruanjian/hadoop/hadoop-3.3.5/data/namenode</value></property><property><name>dfs.datanode.data.dir</name><value>/D:/ruanjian/hadoop/hadoop-3.3.5/data/datanode</value></property>
</configuration>
  • mapred-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration><property><name>mapreduce.framework.name</name><value>yarn</value></property>
</configuration>
  • yarn-site.xml
<?xml version="1.0"?>
<configuration><property><name>yarn.nodemanager.aux-services</name><value>mapreduce_shuffle</value></property><property><name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name><value>org.apache.hahoop.mapred.ShuffleHandler</value></property>
</configuration>

启动hadoop

hdfs namenode -format //格式化节点
sbin/start-all.cmd //启动hadoop

浏览器访问

  • 访问集群节点:http://localhost:8088/
    在这里插入图片描述

  • 访问HDFS:http://localhost:9870/
    在这里插入图片描述

http://www.lryc.cn/news/210234.html

相关文章:

  • WebSocketClient objects are not reuseable
  • 分享54个ASP.NET源码总有一个是你想要的
  • 闭包通俗解释,Demo(Go Java Python)
  • Linux部署Redis Cluster高可用集群(附带集群节点添加删除以及槽位分配操作详解)
  • 【PWN · heap | Off-By-One】Asis CTF 2016 b00ks
  • C++STL---Vector、List所要掌握的基本知识
  • 使用FastAPI部署Ultralytics YOLOv5模型
  • A. Doremy‘s Paint 3
  • 深度学习_1 介绍;安装环境
  • Python基础入门例程19-NP19 列表的长度(列表)
  • LeetCode 2558. 从数量最多的堆取走礼物
  • 【JVM】字节码文件的组成部分
  • STM32 TIM(四)编码器接口
  • 力扣第56题 合并区间 c++ 贪心
  • php 日期
  • 食物链解读
  • Day10配置文件日志多线程
  • leetcode:1154. 一年中的第几天(python3解法)
  • 竞赛 深度学习图像修复算法 - opencv python 机器视觉
  • flutter升级+生成drift文件
  • [AUTOSAR][诊断管理][ECU][$34] 下载请求
  • C 标准库 - <errno.h>和<float.h>详解
  • 对于如何学习的一点思考
  • Ensemble Methods集成学习大比拼:性能、应用场景和可视化对比总结
  • 【2024秋招】2023-9-16 贝壳后端开发二面
  • SpringCloud 微服务全栈体系(七)
  • SAP ABAP 报表输出成 excel 统计图形 (RFC : GFW_PRES_SHOW_MULT)
  • 微信小程序如何获取地理位置
  • 计算机网络相关硬件介绍
  • Megatron-LM GPT 源码分析(三) Pipeline Parallel分析