Browse Source

YARN-11820. Fix UTs for TestCombinedSystemMetricsPublisher (#7691)

* This PR installs the required Visual Studio
  redistributable to fix the issue with loading
  leveldbjni library on Windows.
ASHISH-RANJAN59 4 weeks ago
parent
commit
f088f91edb
1 changed files with 5 additions and 0 deletions
  1. 5 0
      dev-support/docker/Dockerfile_windows_10

+ 5 - 0
dev-support/docker/Dockerfile_windows_10

@@ -119,6 +119,11 @@ RUN powershell pkg-resolver\install-python.ps1
 RUN powershell pkg-resolver\install-pip.ps1
 RUN powershell pip install python-dateutil
 
+## Install the Microsoft Visual C++ 2010 Redistributable to link leveldbjni native library
+RUN powershell -Command Invoke-WebRequest -Uri https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x64.exe -OutFile vcredist_x64.exe
+RUN powershell -Command Start-Process -FilePath .\vcredist_x64.exe -ArgumentList '/quiet', '/norestart' -Wait
+RUN powershell -Command Remove-Item vcredist_x64.exe
+
 # Create a user HadoopBuilder with basic privileges and use it for building Hadoop on Windows.
 RUN powershell New-LocalUser -Name 'HadoopBuilder' -Description 'User account for building Apache Hadoop' -Password ([securestring]::new()) -AccountNeverExpires -PasswordNeverExpires