-1

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

arya
  • 436
  • 1
  • 5
  • 18
  • 2
    Does this answer your question? [java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries. spark Eclipse on windows 7](https://stackoverflow.com/questions/35652665/java-io-ioexception-could-not-locate-executable-null-bin-winutils-exe-in-the-ha) – Vincent Doba Jan 16 '22 at 11:00
  • You have `bin` twice in your output. Your HADOOP_HOME variable should not have bin in it – OneCricketeer Jan 17 '22 at 14:11
  • i already made the change but thankyou – arya Jan 17 '22 at 18:05
  • If you've made the changes to remove the second `bin`, then [edit] the post with the new error, as text, not an image – OneCricketeer Jan 18 '22 at 18:24

1 Answers1

1

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\\")
Indrajit Swain
  • 1,505
  • 1
  • 15
  • 22