0

I am following this procedure (YouTube link).

While executing the command c:/hadoop-2.3.0/bin/hadoop namenode -format, I got the error message given below

**DEPRECATED:Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
Exception in thread "main" java.lang.NoClassDefFountError**

I am using jdk-6-windows-amd64.exe.

How to solve this issue?

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
svwsvw svwsvw
  • 29
  • 2
  • 8

1 Answers1

1

use the cmd c:/hadoop-2.3.0/bin/hdfs to replace c:/hadoop-2.3.0/bin/hadoop

A lot of hdfs cmds are recommended to run with bin/hdfs not bin/hadoop

amow
  • 2,203
  • 11
  • 19
  • c:/hadoop-2.3.0/bin/hadoop command is working but c:\hadoop-2.3.0\bin>hadoop namenode -format command is not working . Exception in thread "main" java.lang.NoClassDefFountError – svwsvw svwsvw Mar 17 '15 at 08:29
  • As I am fresher for this hadoop. I am trying to install it . I am getting error Exception in thread "main" java.lang.NoClassDefFountError while executing this command c:\hadoop-2.3.0\bin>hadoop namenode -format . – svwsvw svwsvw Mar 17 '15 at 08:33
  • use **c:/hadoop-2.3.0/bin/hdfs** there is a '\' not '>' – amow Mar 17 '15 at 08:34
  • I ma getting same error during execution of this c:\hadoop-2.3.0\sbin>hadoop fs -mkdir /in – svwsvw svwsvw Mar 17 '15 at 08:39
  • Anytime it told you the hadoop cmd is DEPRECATED, you replace the cmd with the recommended one. – amow Mar 17 '15 at 09:05