Azure DevOps 管道 VS 测试失败所有这些单元测试都在本地通过

如何解决Azure DevOps 管道 VS 测试失败所有这些单元测试都在本地通过

我有一个包含两个项目的 .Net 框架 4.7.1 解决方案。其中一个用于单元测试。这些单元测试在本地成功运行,但未在 Azure Pipelines 中运行。

管道:

Pipeline

YAML 下面,

#您的构建管道引用了一个名为“BuildPlatform”的未定义变量。创建或编辑此 YAML 文件的构建管道,在变量选项卡上定义变量。见https://go.microsoft.com/fwlink/?linkid=865972 #您的构建管道引用了一个名为“BuildConfiguration”的未定义变量。创建或编辑此 YAML 文件的构建管道,在变量选项卡上定义变量。见https://go.microsoft.com/fwlink/?linkid=865972

步骤:

  • 任务:VSTest@2 displayName:“测试程序集”输入: testAssemblyVer2: | \bin\debug\VentureAccess5NunitTest.dll !*TestAdapter.dll !**\obj** vsTestVersion:工具安装程序 平台:'$(构建平台)' 配置:'$(BuildConfiguration)'

以下是错误日志:

Job Result

Error Log

    2021-04-21T22:17:33.7444190Z **************** Starting test execution *********************
2021-04-21T22:17:33.7577516Z [command]C:\hostedtoolcache\windows\VsTest\16.9.4\x64\tools\net451\Common7\IDE\Extensions\TestPlatform\vstest.console.exe

"@D:\a_temp\vgsj2dnktuj.tmp" 2021-04-21T22:17:33.9074880Z Microsoft (R) 测试执行命令行工具版本 16.9.4 2021-04-21T22:17:33.9075586Z 版权所有 (c) Microsoft Corporation。版权所有。 2021-04-21T22:17:33.9229321Z vstest.console.exe "D:\a\8\s\VentureAccess5NunitTest\bin\Debug\VentureAccess5NunitTest.dll" 2021-04-21T22:17:33.9230164Z /Settings:"D:\a_temp\j4c4nybwlvx.tmp.runsettings" 2021-04-21T22:17:33.9230650Z /记录器:“trx” 2021-04-21T22:17:33.9231040Z /TestAdapterPath:"D:\a\8\s" 2021-04-21T22:17:35.1891001Z 开始测试执行,请稍候... 2021-04-21T22:17:35.8177732Z 共有 1 个测试文件与指定模式匹配。 2021-04-21T22:17:54.0142297Z DocDelvAuditTest 失败 [15 秒] 2021-04-21T22:17:54.0269893Z 错误消息: 2021-04-21T22:17:54.0271211Z 无法创建 VentureAccess5NunitTest.Model.DocDelvEmailModelTest 类的实例。错误: System.Exception:应用程序密钥:未找到 SQLCommandTimeOut。在 System.Collections.Generic.Dictionary2.get_Item(TKey key) 2021-04-21T22:17:54.0272513Z at VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String Key). 2021-04-21T22:17:54.0273141Z Stack Trace: 2021-04-21T22:17:54.0273699Z at VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String Key) 2021-04-21T22:17:54.0274405Z at VentureAccess5.DAL.Database..ctor() 2021-04-21T22:17:54.0274954Z at VentureAccess5.Models.DocDelvEmail..ctor() 2021-04-21T22:17:54.0277235Z at VentureAccess5NunitTest.Model.DocDelvEmailModelTest..ctor() in D:\a\8\s\VentureAccess5NunitTest\Model\DocDelvEmailModelTest.cs:line 29 2021-04-21T22:17:54.0278511Z Standard Output Messages: 2021-04-21T22:17:54.0279077Z log4net: Configuration update mode [Merge]. 2021-04-21T22:17:54.0279660Z log4net: Logger [root] Level string is [ALL]. 2021-04-21T22:17:54.0280320Z log4net: Logger [root] level set to [name="ALL",value=-2147483648]. 2021-04-21T22:17:54.0281128Z log4net: Loading Appender [RollingLogFileAppender] type: [log4net.Appender.RollingFileAppender] 2021-04-21T22:17:54.0282039Z log4net: Setting Property [File] to String value [D:\\DebugLogs\\VentureAccess50Dev.log] 2021-04-21T22:17:54.0282811Z log4net: Setting Property [AppendToFile] to Boolean value [True] 2021-04-21T22:17:54.0283501Z log4net: Setting Property [RollingStyle] to RollingMode value [Size] 2021-04-21T22:17:54.0284203Z log4net: Setting Property [MaxSizeRollBackups] to Int32 value [10] 2021-04-21T22:17:54.0284846Z log4net: Setting Property [MaximumFileSize] to String value [1MB] 2021-04-21T22:17:54.0286546Z log4net: Setting Property [StaticLogFileName] to Boolean value [True] 2021-04-21T22:17:54.0287306Z log4net: Converter [message] Option [] Format [min=-1,max=2147483647,leftAlign=False] 2021-04-21T22:17:54.0288078Z log4net: Converter [newline] Option [] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0288908Z log4net: Setting Property [ConversionPattern] to String value [%-5p %d %5rms %-22.22c{1} %-18.18M - %m%n] 2021-04-21T22:17:54.0289714Z log4net: Converter [p] Option [] Format [min=5,leftAlign=True] 2021-04-21T22:17:54.0291911Z log4net: Converter [literal] Option [ ] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0297285Z log4net: Converter [d] Option [] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0298738Z log4net: Converter [literal] Option [ ] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0300034Z log4net: Converter [r] Option [] Format [min=5,leftAlign=False] 2021-04-21T22:17:54.0300823Z log4net: Converter [literal] Option [ms ] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0301568Z log4net: Converter [c] Option [1] Format [min=22,max=22,leftAlign=True] 2021-04-21T22:17:54.0302349Z log4net: Converter [literal] Option [ ] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0303092Z log4net: Converter [M] Option [] Format [min=18,max=18,leftAlign=True] 2021-04-21T22:17:54.0303851Z log4net: Converter [literal] Option [ - ] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0310200Z log4net: Converter [m] Option [] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0312287Z log4net: Converter [n] Option [] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0313144Z log4net: Setting Property [Layout] to object [log4net.Layout.PatternLayout] 2021-04-21T22:17:54.0313920Z log4net: Searched for existing files in [D:\DebugLogs] 2021-04-21T22:17:54.0314646Z log4net: curSizeRollBackups starts at [0] 2021-04-21T22:17:54.0315899Z log4net: Opening file for writing [D:\DebugLogs\VentureAccess50Dev.log] append [True] 2021-04-21T22:17:54.0316649Z log4net: Created Appender [RollingLogFileAppender] 2021-04-21T22:17:54.0317349Z log4net: Adding appender named [RollingLogFileAppender] to logger [root]. 2021-04-21T22:17:54.0317966Z log4net: Hierarchy Threshold [] 2021-04-21T22:17:54.0318406Z 2021-04-21T22:17:54.0318814Z Debug Trace: 2021-04-21T22:17:54.0319315Z log4net: Configuration update mode [Merge]. 2021-04-21T22:17:54.0319893Z log4net: Logger [root] Level string is [ALL]. 2021-04-21T22:17:54.0320554Z log4net: Logger [root] level set to [name="ALL",value=-2147483648]. 2021-04-21T22:17:54.0321380Z log4net: Loading Appender [RollingLogFileAppender] type: [log4net.Appender.RollingFileAppender] 2021-04-21T22:17:54.0322290Z log4net: Setting Property [File] to String value [D:\\DebugLogs\\VentureAccess50Dev.log] 2021-04-21T22:17:54.0323066Z log4net: Setting Property [AppendToFile] to Boolean value [True] 2021-04-21T22:17:54.0323956Z log4net: Setting Property [RollingStyle] to RollingMode value [Size] 2021-04-21T22:17:54.0324668Z log4net: Setting Property [MaxSizeRollBackups] to Int32 value [10] 2021-04-21T22:17:54.0325784Z log4net: Setting Property [MaximumFileSize] to String value [1MB] 2021-04-21T22:17:54.0326487Z log4net: Setting Property [StaticLogFileName] to Boolean value [True] 2021-04-21T22:17:54.0327224Z log4net: Converter [message] Option [] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0327944Z log4net: Converter [newline] Option [] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0328761Z log4net: Setting Property [ConversionPattern] to String value [%-5p %d %5rms %-22.22c{1} %-18.18M - %m%n] 2021-04-21T22:17:54.0329556Z log4net: Converter [p] Option [] Format [min=5,leftAlign=True] 2021-04-21T22:17:54.0330315Z log4net: Converter [literal] Option [ ] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0331097Z log4net: Converter [d] Option [] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0331871Z log4net: Converter [literal] Option [ ] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0332656Z log4net: Converter [r] Option [] Format [min=5,leftAlign=False] 2021-04-21T22:17:54.0333361Z log4net: Converter [literal] Option [ms ] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0333990Z log4net: Converter [c] Option [1] Format [min=22,leftAlign=True] 2021-04-21T22:17:54.0334724Z log4net: Converter [literal] Option [ ] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0336066Z log4net: Converter [M] Option [] Format [min=18,leftAlign=True] 2021-04-21T22:17:54.0336746Z log4net: Converter [literal] Option [ - ] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0337497Z log4net: Converter [m] Option [] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0338245Z log4net: Converter [n] Option [] Format [min=-1,leftAlign=False] 2021-04-21T22:17:54.0339015Z log4net: Setting Property [Layout] to object [log4net.Layout.PatternLayout] 2021-04-21T22:17:54.0339633Z log4net: Searched for existing files in [D:\DebugLogs] 2021-04-21T22:17:54.0340225Z log4net: curSizeRollBackups starts at [0] 2021-04-21T22:17:54.0340980Z log4net: Opening file for writing [D:\DebugLogs\VentureAccess50Dev.log] append [True] 2021-04-21T22:17:54.0341662Z log4net: Created Appender [RollingLogFileAppender] 2021-04-21T22:17:54.0342326Z log4net: Adding appender named [RollingLogFileAppender] to logger [root]. 2021-04-21T22:17:54.0343202Z log4net: Hierarchy Threshold [] 2021-04-21T22:17:54.0492287Z log4net: Shutdown called on Hierarchy [log4net-default-repository] 2021-04-21T22:17:54.1082194Z NUnit Adapter 3.17.0.0: Test execution started 2021-04-21T22:17:54.3154715Z Running all tests in D:\a\8\s\VentureAccess5NunitTest\bin\Debug\VentureAccess5NunitTest.dll 2021-04-21T22:17:54.9317980Z NUnit3TestExecutor discovered 239 of 239 NUnit test cases 2021-04-21T22:17:55.4623137Z Failed DocDelvAuditTest_Negative [3 ms] 2021-04-21T22:17:55.4624317Z Error Message: 2021-04-21T22:17:55.4625714Z Unable to create instance of class VentureAccess5NunitTest.Model.DocDelvEmailModelTest. Error: System.Exception: Application Key: SQLCommandTimeOut not found. at System.Collections.Generic.Dictionary2.get_Item(TKey key) 2021-04-21T22:17:55.4627189Z 在 VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String 钥匙)。 2021-04-21T22:17:55.4628800Z 堆栈跟踪: 2021-04-21T22:17:55.4639153Z 在 VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String 钥匙) 2021-04-21T22:17:55.4640388Z 在 VentureAccess5.DAL.Database..ctor() 2021-04-21T22:17:55.4641271Z 在 VentureAccess5.Models.DocDelvEmail..ctor() 2021-04-21T22:17:55.4644686Z 在 VentureAccess5NunitTest.Model.DocDelvEmailModelTest..ctor() 中 D:\a\8\s\VentureAccess5NunitTest\Model\DocDelvEmailModelTest.cs:line 29 2021-04-21T22:17:55.4653553Z GetEmailImageUrlTest 失败 [1 毫秒] 2021-04-21T22:17:55.4654749Z 错误消息: 2021-04-21T22:17:55.4657218Z 无法创建 VentureAccess5NunitTest.Model.DocDelvEmailModelTest 类的实例。错误: System.Exception:应用程序密钥:未找到 SQLCommandTimeOut。在 System.Collections.Generic.Dictionary2.get_Item(TKey key) 2021-04-21T22:17:55.4658473Z at VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String Key). 2021-04-21T22:17:55.4665795Z Stack Trace: 2021-04-21T22:17:55.4666361Z at VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String Key) 2021-04-21T22:17:55.4666992Z at VentureAccess5.DAL.Database..ctor() 2021-04-21T22:17:55.4667461Z at VentureAccess5.Models.DocDelvEmail..ctor() 2021-04-21T22:17:55.4668265Z at VentureAccess5NunitTest.Model.DocDelvEmailModelTest..ctor() in D:\a\8\s\VentureAccess5NunitTest\Model\DocDelvEmailModelTest.cs:line 29 2021-04-21T22:17:55.4669143Z Failed GetNextUniqueIdTest [1 ms] 2021-04-21T22:17:55.4669563Z Error Message: 2021-04-21T22:17:55.4674006Z Unable to create instance of class VentureAccess5NunitTest.Model.DocDelvEmailModelTest. Error: System.Exception: Application Key: SQLCommandTimeOut not found. at System.Collections.Generic.Dictionary2.get_Item(TKey key) 2021-04-21T22:17:55.4683289Z 在 VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String 钥匙)。 2021-04-21T22:17:55.4684012Z 堆栈跟踪: 2021-04-21T22:17:55.4684678Z 在 VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String 钥匙) 2021-04-21T22:17:55.4685367Z 在 VentureAccess5.DAL.Database..ctor() 2021-04-21T22:17:55.4685943Z 在 VentureAccess5.Models.DocDelvEmail..ctor() 2021-04-21T22:17:55.4686869Z 在 VentureAccess5NunitTest.Model.DocDelvEmailModelTest..ctor() 中 D:\a\8\s\VentureAccess5NunitTest\Model\DocDelvEmailModelTest.cs:line 29 2021-04-21T22:17:55.4687746Z GetRetEmail 失败 [1 毫秒] 2021-04-21T22:17:55.4688235Z 错误消息: 2021-04-21T22:17:55.4689308Z 无法创建 VentureAccess5NunitTest.Model.DocDelvEmailModelTest 类的实例。错误: System.Exception:应用程序密钥:未找到 SQLCommandTimeOut。在 System.Collections.Generic.Dictionary2.get_Item(TKey key) 2021-04-21T22:17:55.4690713Z at VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String Key). 2021-04-21T22:17:55.4691348Z Stack Trace: 2021-04-21T22:17:55.4691976Z at VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String Key) 2021-04-21T22:17:55.4692959Z at VentureAccess5.DAL.Database..ctor() 2021-04-21T22:17:55.4693514Z at VentureAccess5.Models.DocDelvEmail..ctor() 2021-04-21T22:17:55.4694411Z at VentureAccess5NunitTest.Model.DocDelvEmailModelTest..ctor() in D:\a\8\s\VentureAccess5NunitTest\Model\DocDelvEmailModelTest.cs:line 29 2021-04-21T22:17:55.4695281Z Failed GetRetEmail2 [1 ms] 2021-04-21T22:17:55.4695762Z Error Message: 2021-04-21T22:17:55.4696850Z Unable to create instance of class VentureAccess5NunitTest.Model.DocDelvEmailModelTest. Error: System.Exception: Application Key: SQLCommandTimeOut not found. at System.Collections.Generic.Dictionary2.get_Item(TKey key) 2021-04-21T22:17:55.4698326Z 在 VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String 钥匙)。 2021-04-21T22:17:55.4698938Z 堆栈跟踪: 2021-04-21T22:17:55.4699578Z 在 VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String 钥匙) 2021-04-21T22:17:55.4700226Z 在 VentureAccess5.DAL.Database..ctor() 2021-04-21T22:17:55.4700806Z 在 VentureAccess5.Models.DocDelvEmail..ctor() 2021-04-21T22:17:55.4701713Z 在 VentureAccess5NunitTest.Model.DocDelvEmailModelTest..ctor() 中 D:\a\8\s\VentureAccess5NunitTest\Model\DocDelvEmailModelTest.cs:line 29 2021-04-21T22:17:55.4702577Z GetSkipEmailData 失败 [1 毫秒] 2021-04-21T22:17:55.4703074Z 错误消息: 2021-04-21T22:17:55.4704340Z 无法创建 VentureAccess5NunitTest.Model.DocDelvEmailModelTest 类的实例。错误: System.Exception:应用程序密钥:未找到 SQLCommandTimeOut。在 System.Collections.Generic.Dictionary2.get_Item(TKey key) 2021-04-21T22:17:55.4705809Z at VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String Key). 2021-04-21T22:17:55.4706424Z Stack Trace: 2021-04-21T22:17:55.4707047Z at VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String Key) 2021-04-21T22:17:55.4707729Z at VentureAccess5.DAL.Database..ctor() 2021-04-21T22:17:55.4708295Z at VentureAccess5.Models.DocDelvEmail..ctor() 2021-04-21T22:17:55.4709203Z at VentureAccess5NunitTest.Model.DocDelvEmailModelTest..ctor() in D:\a\8\s\VentureAccess5NunitTest\Model\DocDelvEmailModelTest.cs:line 29 2021-04-21T22:17:55.4710089Z Failed DocDelvAuditTest [3 ms] 2021-04-21T22:17:55.4710716Z Error Message: 2021-04-21T22:17:55.4711786Z Unable to create instance of class VentureAccess5NunitTest.Model.DocDelvFaxTest. Error: System.Exception: Application Key: SQLCommandTimeOut not found. at System.Collections.Generic.Dictionary2.get_Item(TKey key) 2021-04-21T22:17:55.4712961Z 在 VentureAccess5.ApplicationSettingConfig.GetApplicationConfigurationValueByKey(String 键)。

解决方法

首先,如果您不介意,可以使用自托管代理,那么您的应用就相当于在本地运行,不会受到 Azure DevOps 计费限制。

单击 this document 可了解有关自托管代理和 Microsoft 托管代理的详细信息。

点击 Self-hosted Windows agents 获取有关创建自托管代理的教程:

如果您想使用 Microsoft 托管的代理,这里有一些故障排除建议:

  1. 经典 UI 管道默认使用 vs2017-win2016 代理,它不支持许多新功能。我建议您使用 windows-2019 代理。

    enter image description here

  2. 确保应用中的所有路径都是相对路径。 Microsoft 托管的代理不会读取您的本地内容,因此如果您需要本地引用,您应该将它们上传到存储库,或者通过 NuGet 还原、cmd 等将它们下载到代理。

  3. 与 2 类似,here 是 Microsoft 托管代理的下载软件列表。请检查是否有任何您需要的软件,但尚未下载 Microsoft 代理。您需要在运行测试任务之前下载它们。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-
参考1 参考2 解决方案 # 点击安装源 协议选择 http:// 路径填写 mirrors.aliyun.com/centos/8.3.2011/BaseOS/x86_64/os URL类型 软件库URL 其他路径 # 版本 7 mirrors.aliyun.com/centos/7/os/x86
报错1 [root@slave1 data_mocker]# kafka-console-consumer.sh --bootstrap-server slave1:9092 --topic topic_db [2023-12-19 18:31:12,770] WARN [Consumer clie
错误1 # 重写数据 hive (edu)> insert overwrite table dwd_trade_cart_add_inc > select data.id, > data.user_id, > data.course_id, > date_format(
错误1 hive (edu)> insert into huanhuan values(1,'haoge'); Query ID = root_20240110071417_fe1517ad-3607-41f4-bdcf-d00b98ac443e Total jobs = 1
报错1:执行到如下就不执行了,没有显示Successfully registered new MBean. [root@slave1 bin]# /usr/local/software/flume-1.9.0/bin/flume-ng agent -n a1 -c /usr/local/softwa
虚拟及没有启动任何服务器查看jps会显示jps,如果没有显示任何东西 [root@slave2 ~]# jps 9647 Jps 解决方案 # 进入/tmp查看 [root@slave1 dfs]# cd /tmp [root@slave1 tmp]# ll 总用量 48 drwxr-xr-x. 2
报错1 hive> show databases; OK Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object Time taken: 0.474 se
报错1 [root@localhost ~]# vim -bash: vim: 未找到命令 安装vim yum -y install vim* # 查看是否安装成功 [root@hadoop01 hadoop]# rpm -qa |grep vim vim-X11-7.4.629-8.el7_9.x
修改hadoop配置 vi /usr/local/software/hadoop-2.9.2/etc/hadoop/yarn-site.xml # 添加如下 <configuration> <property> <name>yarn.nodemanager.res