Home > Back-end >  winutils error:Error while running spark on windows
winutils error:Error while running spark on windows

Time:01-17

please see below screenshots , i am getting same issue while running spark prog,can you please helpjava.io.IOException: Could not locate executable C:\hadoop\bin\bin\winutils.exe in the Hadoop binaries.i have added necessary paths.

enter image description here enter image description here enter image description here

CodePudding user response:

Add this comments in your program

downloaded the winutils.exe and placed it in C:/Bin/Winutils.exe

then added the following line to my project at the start of the function

 System.setProperty("hadoop.home.dir", "C:\\winutil\\")
  •  Tags:  
  • Related