2

i am trying to make directory in hadoop
hadoop fs -mkdir /input

showing me this error

Error: Could not find or load main class hadoop

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
  • 1
    try using 'hdfs dfs -mkdir /input' and see if it works. Make sure you run this command as a hdfs user. The error is because 'hadoop fs' is deprecated. – Abhinav Jun 27 '18 at 14:07
  • thanks for the answer abhinav but when i restart the hadoop this command work but giving warning util.nativecodeloader – palash choubey Jun 27 '18 at 16:32
  • Please paste the screenshot of your command ans output – Abhinav Jun 27 '18 at 18:25
  • 1
    Native libraries aren't required to use Hadoop commands. You can ignore that warning – OneCricketeer Jun 28 '18 at 03:12
  • Does this answer your question? [Error : Could not find or load main class fs](https://stackoverflow.com/questions/41982910/error-could-not-find-or-load-main-class-fs) – Ahmed Shahid Jul 07 '20 at 20:26

0 Answers0