Skip to content

Commit f088f91

Browse files
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.
1 parent 93b0453 commit f088f91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dev-support/docker/Dockerfile_windows_10

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ RUN powershell pkg-resolver\install-python.ps1
119119
RUN powershell pkg-resolver\install-pip.ps1
120120
RUN powershell pip install python-dateutil
121121

122+
## Install the Microsoft Visual C++ 2010 Redistributable to link leveldbjni native library
123+
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
124+
RUN powershell -Command Start-Process -FilePath .\vcredist_x64.exe -ArgumentList '/quiet', '/norestart' -Wait
125+
RUN powershell -Command Remove-Item vcredist_x64.exe
126+
122127
# Create a user HadoopBuilder with basic privileges and use it for building Hadoop on Windows.
123128
RUN powershell New-LocalUser -Name 'HadoopBuilder' -Description 'User account for building Apache Hadoop' -Password ([securestring]::new()) -AccountNeverExpires -PasswordNeverExpires
124129

0 commit comments

Comments
 (0)