I have installed Hadoop on my laptop and have successfully run the example program in the installation guide. But, I am not able to run a program.
Rohit @ Renaissance 1: ~ / Thaup / C2 $ thup Maximatour input / NCDC / Sample. Exception in TP Output Thread "Main" Java Java. Lung Class Defound Error: Interrupted by Maxstamfer: java.lang ClassNotFoundException: Maximum temperature at java.net. URL Classloader $ 1.run (URLClassLoader.java202) at java.security.AccessController Privileged (original method) at URL.net.URLClassLoader.findClass (URLClassLoader.java:190) on Java.net .classLoader.loadClass (ClassLoader.java:307) at sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.java: 301) The java.lang.ClassLoader.loadClass (ClassLoader.java was 48) could not find the main category: MaxTemperature. The program will exit
The book has said that we should set a handpill space by typing
Rohit @ Renaissance 1: ~ / Thaup / C2 $ Export HADOOP_CLASSPATH = Build / Class
The main class is defined in Maximatari.java file which I am performing. How do we set up Hadoop class texts? Do we have to do it for all program execution or only once? Where should I place the input folder? My code is / home / Rohit / Thaup / C2 and my HADOP installation is on / home / hasoop
You should package your application in Jar file, it's very easy and low error prone classpath folders.
In your case, you also need to compile the .java file. You have said that this is MaxTemparature.java, but before you can run it a maximum temperature. Must be square.
Comments
Post a Comment