windows上安装Hadoop教程中趟过的bug

Windows环境下安装hadoop (1) hadoop安装包清华园镜像:下载 tar.gz(2) 第三方包 winutils如果报nativeio异常,可以将此包解压至hadoop的bin目录下。 阅读详情

教程:https://blog.youkuaiyun.com/china1987427/article/details/82057250

此教程中趟过的问题:

1 版本:hadoop用的是3.0.3版本,winutils用的是3.0.0版本,截止目前hadoop虽然有更高版本,但winutils只有3.0.0版本,所以放弃高版本吧。winutils干吗用?hadoop是linux环境上运行的,要在winutils上运行,这不就要辅助工具了么!

2 set JAVA_HOME=%JAVA_HOME% 替换成  set JAVA_HOME="D:\Program Files"\Java\jdk1.8.0_25,中间是有冒号的!

3 你以为这样按照教程就好了么?然而!启用报错啦!

        第一个错:异常java.io.IOException: Incompatible clusterIDs in...

                  这个问题在于第一次部署操作不熟练,清空新建的datanode和namenode下的东西,保证data下面只有新建的两个文件夹,然后再执行: hdfs namenode -format

       第二个错:java.lang.NoClassDefFoundError:/org/apache/hadoop/yarn/server/timelineCollectorManager

                原因是缺少jar包:下载hadoop-yarn-server-timelineservice-3.0.3.jar包,放到D:\download\softwire\hadoop\hadoop-3.0.3\share\hadoop\yarn\lib安装包的share/hadoop/yarn/lib下面

               pom.xml配置:

                     

<dependency>
  <groupId>org.apache.hadoop</groupId>
  <artifactId>hadoop-yarn-server-timelineservice</artifactId>
  <version>3.0.3</version>
</dependency>

找到仓库把包拿出来放过去就好了~

4 昨天安装成功,心情倍儿棒,今儿一早起来,嘿,又起不来啦!是的,它又给我报错了!报错信息是: Windows 找不到文件 'Hadoop'。请确定文件名是否正确后,再试一次。

参考文档:https://www.cnblogs.com/zlslch/p/8580446.html

原因是jdk的安装目录,原本是安装在D:\Program Files\Java..下面,所以写着 "D:\Program Files"\Java,这样是不行滴。重新安装jdk,放在C盘下面C:\Program Files\Java..,然后改下hadoop-env.cmd这个就可以了。

5 很好,hadoop完美启动,程序可以跑了吧?网上找的WordCount能执行了吧?

然鹅!现实很骨干,错误无处不在,又报错:

Exception in thread "main" java.io.IOException: Failed to set permissions of path: \tmp\hadoop-Administrator\mapred\staging\Administrator-519341271\.staging to 0700

惊不惊喜?意不意外?好嘛,你就可劲儿折腾吧你,我,我……我都原谅你。

解决的参考文档:https://blog.youkuaiyun.com/yaoxiaochuang/article/details/49519841

这个问题,需要把hadoop-core-1.2.1.jar这个包里的FileUtil.java文件的一个方法注释掉,悲剧的是小姐姐稍微有点手残,各种打包不好,按照教程下来还是报错。

IOUtils.closeStream(contents);

这句话报错兼容,折腾死我了,最后找了个人家修改好的包,然后把里面的文件拿出来替换!是不是很机智!鼓掌!

 

 

最后贴几个安装链接:

hadoop版本下载:http://mirrors.hust.edu.cn/apache/hadoop/common/

winutils3.0.0版本下载:http://7dx.pc6.com/wwb5/winutilsmaster.zip

hadoop-core-1.1.2.jar,这个里面的FileUtil已经修改好了的:https://download.youkuaiyun.com/download/mr_wangcx/10693627

 

 

 

 

Windows平台Hadoop安装与配置教程 本文还有配套的精品资源,点击获取 简介:本教程旨在指导用户如何在Windows系统上安装Hadoop,并针对安装过程中常见的"sshd服务启动失败"问题提供解决方案。Hadoop是一个用于处理和存储大数据的开源框架,采用分布式计算模型提升数据处理效率。教程内容涵盖从环境配置、依赖工具安装到服务启动和管理的完整流程,包括设置SSH服务、安装Java开发工具包(JDK)、配置H... 阅读详情

相关推荐

解决hadoop在windows运行出现的bug

如果出现如下bug:“Could not locate executable null\bin\winutils.exe in the Hadoop binaries”,则下载该文件,放入hadoop的bin文件夹下,并设置环境变量HADOOP_HOME:E:\hadoop2.2.0\bin即可。

Windows11安装Hadoop出现问题:此时不应有...

Windows安装Hadoop出现问题:此时不应有...已解决

kuyuguoheqi的博客 1114

WebCollector2.24所需所有jar包

java类爬虫WebCollector开发所需要的全部jar包,是目前为止最新版本的。WebCollector2.20以上版本有较大改动,新增MetaData,有很多新特性

双击.bat文件,弹出提示:Windows找不到文件,请确定文件名是否正确后,再试一次

ComSpec 环境变量出现异常

夏末蝉未鸣的博客 1万+

apache-hadoop-3.1.3-winutils-master.zip

hadoop-winutils hadoop.dll 3.1.3 版本 用于配置hdfs 客户端,放在Hadoop3.1.3的bin 目录下面。

从零到一:手把手教你用Python+LangChain搭建企业级RAG知识库(附避坑指南)

本文为开发者提供了一份详尽的实战指南,手把手教你使用Python和LangChain框架从零构建企业级RAG知识库。内容涵盖环境搭建、文档处理、向量化检索、提示工程及生产部署等核心环节,并重点分享了文档分割、检索优化等关键避坑经验,旨在帮助读者打造稳定、高效且易于维护的智能知识中枢。

weixin_29058331的博客 398

hadoop启动报错: java.lang.NoClassDefFoundError:/org/apache/hadoop/yarn/server/timelineCollectorManager

hadoop启动报错“ org/apache/hadoop/yarn/server/timelineservice/collector/TimelineCollectorManager”,主要是缺少timelineCollectorManager的jar包,解决方案: 将hadoop3.1.2 版本将share\hadoop\yarn\timelineservice\hadoop-yarn-se...

哈 1517

全自动数据分析 - Claude Code Sub-Agents:自动化数据分析工厂

别忘了!claude code也是agent框架,类似langgraph,crewAI,autogen等等agent框架。我改造claude code搞一个数据分析智能体AI。试试看行不行!:让数据分析变得像聊天一样简单!

liangdabiao的博客 1072

Azkaban 安装部署&常见错误

Solo Server 源码下载/解压 3.81.0地址 [wzj@hadoop001 software]$ tar -xzvf 3.81.0.tar.gz -C ~/app/ [wzj@hadoop001 azkaban]$ ls az-core az-flow-trigger-dependency-plugin az-intellij-style.xml azkaban-exe...

wzj_wp的博客 1308

深入解析Lora模块的工作原理与应用场景

本文深入解析了Lora模块的工作原理与应用场景。Lora模块作为物联网领域的核心无线通信组件,凭借其独特的扩频调制与半双工通信技术,实现了远距离、低功耗的数据传输。文章详细拆解了其技术内核,包括空中唤醒等低功耗奥秘,并提供了地址、信道、空中速率等关键参数的实战配置指南。最后,探讨了Lora模块在智能家居、智慧农业、城市监测等广域物联网场景中的具体应用,为开发者提供了从理论到实践的完整参考。

weixin_29174385的博客 333

深入浅出DDR系列(二)--DDR工作原理

学习完了DDR的基本组成和硬件结构原理之后,从整体上了解了DDR的特性和静态图,包括原理、管脚图等。那么本章就要从动态的角度来分析时序结构,包括read/write的整个过程到数据返回发生了什么,其中包括以下内容 DDR是如何完成Read、Write 等的操作 DDR的基本命令 DDR的时序参数 DDR的性能分析 1. DRAM基本组成 对于DRAM,其主要由行和列组成,每一个bit中都是由类似右下图的类晶体管的结构组成,对于sdram的数据,可以通过控制column和row就可以访问sd

奇小葩 3万+

java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/server/timelineservice/collector/TimelineColl

win10,启动hadoop报错: java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/server/timelineservice/collector/TimelineCollectorManager 解决办法: 将D:\work\hadoop\hadoop-3.1.4\share\hadoop\yarn\timelineservice\hadoop-yarn-server-timelineservice-3.1.4.jar复制到D:\wor

chuixue24的博客 1906

UFS电源管理深度解析:从电气特性到功耗模式优化

本文深度解析UFS电源管理,从VCC、VCCQ、VCCQ2三路供电体系切入,详细阐述了UIC链路休眠(HIBERN8)机制与设备七种功耗模式(Active、Idle、Sleep、Power Down)的切换逻辑。文章重点探讨了如何通过主动功耗管理策略与动态调整激活模式电流等级(bActiveICCLevel),在嵌入式与移动设备中实现性能与功耗的精细平衡与优化。

weixin_29243279的博客 489

hadoop安装与配置详细教程【Windows下】(亲测有效)

,点击下一步。3.弹出状态进度界面如下,稍等片刻,等待跳出Java安装界面如下(注意与前面的jdk不同这里是安装Java),点击更改安装目录选择安装到D:\LeStoreDownload\

此人很懒 1万+

GOM Correlate拉伸试验后处理操作

本文描述了使用GOM Software 2022对拉伸试样进行后处理的操作,包括设置检测点、引伸计、输出应变数据到表格、输出报告为视频等

qq_45008924的博客 4662

Mathematica 训练课(12)常用注释方法

Mathematica从入门到进阶

qq_25018077的博客 9075

【Hadoop】Windows下安装Hadoop(手把手包成功安装)

【实操】Windows下安装Hadoop(手把手包成功安装)

tttzzzqqq2018的博客 5万+

【YOLO11改进 - C3k2融合】C3k2融合DWRSeg二次创新C3k2_DWR:扩张式残差分割网络,提高特征提取效率和多尺度信息获取能力,助力小目标检测

【YOLO11改进 - C3k2融合】C3k2DWRSeg二次创新C3k2_DWR:扩张式残差分割网络,提高特征提取效率和多尺度信息获取能力,助力小目标检测

专注于图像领域,主要研究内容包括计算机视觉和深度学习,特别是在图像分类、目标检测和图像生成等方面有深入的研究和实践经验。 1054

Windows 系统安装 Hadoop 详细教程

在 Windows 系统下的 Hadoop 安装。可以通过在命令提示符中输入一些 Hadoop 相关的命令来验证安装是否成功,比如等。希望这篇教程对大家在 Windows 系统上安装 Hadoop 有所帮助。如果在安装过程中遇到其他问题,可以在评论区留言讨论。

天冬忘忧的博客 1540

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

Hadoop的安装教程,很详细

jdk的安装和Hadoop的分布式安装,安装步骤简单,还有一些常见错误的讲解,安装过程有什么问题随时联系小编

Kayleigh520的博客 1万+

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

【傻瓜式教程】Windows下安装Hive MySQL版【附安装Hadoop教程】全网最详细的图文教程

目录一定要先看的前言1 安装Hadoop1.1 下载并解压资源1.2 配置系统变量和环境变量1.2.1 系统变量1.2.2 环境变量1.2.3测试1.3 复制文件1.4 修改配置文件1.4.1 创建目录1.4.2 修改5个文件1.5 格式化HDFS1.6 开启四个进程1.7 测试Hadoop DFS2 安装Hive MySQL版本2.1 下载并解压资源2.2 配置系统变量和环境变量2.2.1 系统变量2.2.2 环境变量2.3 Hive config配置2.4 创建目录2.5 修改 hive-env.sh2

w0714的博客 2万+

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Windows系统下安装Hadoop

前面我们已经讲过了在,还没看过的可以先去了解一下安装流程。今天我们来看一下如何在Window下安装Hadoop,这其实和在Linux下的安装都是大同小异的。下面我们具体来看一下安装步骤。

从事移动开发八年,csdn博客专家,阿里云特邀专家,华为云云享专家,高级网络信息安全工程师,大数据工程师(高级),python技术开发(高级),HarmonyOS 应用开发者高级认证,现在某学校任教。 4万+

在windows环境下安装hadoop

Hadoop是一个分布式系统基础架构。用户可以在不了解分布式底层细节的情况下,开发分布式程序。但这个架构是基于java语言开发的,所以要先进行jdk的安装,如果电脑已经配置过jdk或者是曾经运行成功过java文件,那就可以跳过第一步。

m0_51547272的博客 2404

windows安装hadoop教程,带截图

windows安装hadoop

qq_40919128的博客 1万+

Windows 环境下 Hadoop 的安装和配置

Windows环境下Hadoop的安装和配置

ProgramNovice的博客 5624

windows安装hadoop3.1.3教程

windows安装hadoop3.1.3教程

qq_35160479的博客 9277
上一篇: mysql,pg库update时的注意点
下一篇: linux下搭建redis5.0.0版本
OutRoading
博客等级 码龄11年 175粉丝 103原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值