<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Unable to format NameNode - PseudoNode cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-format-NameNode-PseudoNode-cluster/m-p/35583#M11439</link>
    <description>&lt;P&gt;Thank you for the help, Harsh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have updated to version 1.8.0_65 which worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Snm1523&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2015 15:32:34 GMT</pubDate>
    <dc:creator>snm1523</dc:creator>
    <dc:date>2015-12-28T15:32:34Z</dc:date>
    <item>
      <title>Unable to format NameNode - PseudoNode cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-format-NameNode-PseudoNode-cluster/m-p/34801#M11437</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have just built a Pseudo Node cluster following below article:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_qs_yarn_pseudo.html" target="_self"&gt;http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_qs_yarn_pseudo.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initally I had missed to install Java however, after getting below error while formatting NameNode I installed Java 1.6:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;JAVA_HOME is not set and could not be found.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Even after installing it (jdk-6u31-linux-amd64.rpm), I am still getting below&amp;nbsp;error (a bit different but I guess related to Java). I feel&amp;nbsp;I need to explicitly set the paths in .bashrc, hadoo-env.sh and /etc/profile files (not sure though). I am unsure how do I do it for the same (as I am pretty new to Linux and Hadoop).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[node1@primary ~]$ sudo -u hdfs hdfs namenode -format
[sudo] password for node1: 
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/hadoop/hdfs/server/namenode/NameNode : Unsupported major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.apache.hadoop.hdfs.server.namenode.NameNode.  Program will exit.
[node1@primary ~]$ java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
[node1@primary ~]$ &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Would be great if someone could help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;snm1523&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:51:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-format-NameNode-PseudoNode-cluster/m-p/34801#M11437</guid>
      <dc:creator>snm1523</dc:creator>
      <dc:date>2022-09-16T09:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to format NameNode - PseudoNode cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-format-NameNode-PseudoNode-cluster/m-p/35293#M11438</link>
      <description>CDH5 is compiled with JDK7, and will not run with a lesser JDK version (such as 6, which is no longer supported). Please install JDK7 from &lt;A href="http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/RPMS/x86_64/oracle-j2sdk1.7-1.7.0+update67-1.x86_64.rpm" target="_blank"&gt;http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5/RPMS/x86_64/oracle-j2sdk1.7-1.7.0+update67-1.x86_64.rpm&lt;/A&gt; or use JDK8 from &lt;A href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" target="_blank"&gt;http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please also remove JDK6 to avoid confusion in selection of the right JVM to run with.</description>
      <pubDate>Wed, 16 Dec 2015 01:51:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-format-NameNode-PseudoNode-cluster/m-p/35293#M11438</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-12-16T01:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to format NameNode - PseudoNode cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-format-NameNode-PseudoNode-cluster/m-p/35583#M11439</link>
      <description>&lt;P&gt;Thank you for the help, Harsh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have updated to version 1.8.0_65 which worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Snm1523&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 15:32:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-format-NameNode-PseudoNode-cluster/m-p/35583#M11439</guid>
      <dc:creator>snm1523</dc:creator>
      <dc:date>2015-12-28T15:32:34Z</dc:date>
    </item>
  </channel>
</rss>

