Hi.Simon:
       I modified some coed related to scheduler and designed a  customized 
scheduler .when I built the modified code, then the problems described above 
came up with it. I doubt whether there was something with my code, but after  I 
built the out-of-box code, the same problems still existed. Can you tell me how 
to build and deploy  a  customized hadoop?
         Thank you!
                                                                                
   zhutao
                             




At 2011-02-28 11:21:16,Simon <gsmst...@gmail.com> wrote:

>Hey,
>
>Can you let us know why you want to replace all the jar files? That usually
>does not work, especially for development code in the code base.
>So, just use the one you have successfully compiled, don't replace jar
>files.
>
>Hope it can work.
>
>Simon
>
>2011/2/27 朱韬 <ryanzhu...@163.com>
>
>> Hi,guys:
>>      I checked out the source code fromhttp://
>> svn.apache.org/repos/asf/hadoop/mapreduce/trunk/. Then I compiled using
>> this script:
>>      #!/bin/bash
>>     export JAVA_HOME=/usr/share/jdk1.6.0_14
>>     export CFLAGS=-m64
>>     export CXXFLAGS=-m64
>>     export ANT_HOME=/opt/apache-ant-1.8.2
>>     export PATH=$PATH:$ANT_HOME/bin
>>     ant -Dversion=0.21.0 -Dcompile.native=true
>> -Dforrest.home=/home/hadoop/apache-forrest-0.9 clean tar
>>     It was Ok before these steps. Then I replaced
>> "hadoop-mapred-0.21.0.jar", hadoop-mapred-0.21.0-sources.jar,
>>  hadoop-mapred-examples-0.21.0.jar,hadoop-mapred-test-0.21.0.jar,and
>> hadoop-mapred-tools-0.21.0.jar inRelease 0.21.0 with the compiled jar files
>> from the above step. Also I added my scheduler to lib. When starting the
>> customed hadoop, I encountered the problems as blow:
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/hadoop/security/RefreshUserMappingsProtocol
>>        at java.lang.ClassLoader.defineClass1(Native Method)
>>        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
>>        at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>>        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> 10.61.0.6: starting tasktracker, logging to
>> /home/hadoop/hadoop-green-0.1.0/logs/hadoop-hadoop-tasktracker-hdt0.hypercloud.ict.out
>> 10.61.0.143: starting tasktracker, logging to
>> /home/hadoop/hadoop-green-0.1.0/logs/hadoop-hadoop-tasktracker-hdt1.hypercloud.ict.out
>> 10.61.0.7: starting tasktracker, logging to
>> /home/hadoop/hadoop-green-0.1.0/logs/hadoop-hadoop-tasktracker-hdt2.hypercloud.ict.out
>> 10.61.0.6: Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/hadoop/io/SecureIOUtils$AlreadyExistsException
>> 10.61.0.6: Caused by: java.lang.ClassNotFoundException:
>> org.apache.hadoop.io.SecureIOUtils$AlreadyExistsException
>> 10.61.0.6:      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> 10.61.0.6:      at java.security.AccessController.doPrivileged(Native
>> Method)
>> 10.61.0.6:      at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> 10.61.0.6:      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> 10.61.0.6:      at
>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> 10.61.0.6:      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> 10.61.0.6:      at
>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> 10.61.0.6: Could not find the main class:
>> org.apache.hadoop.mapred.TaskTracker.  Program will exit.
>> 10.61.0.143: Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/hadoop/io/SecureIOUtils$AlreadyExistsException
>> 10.61.0.143: Caused by: java.lang.ClassNotFoundException:
>> org.apache.hadoop.io.SecureIOUtils$AlreadyExistsException
>> 10.61.0.143:    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> 10.61.0.143:    at java.security.AccessController.doPrivileged(Native
>> Method)
>> 10.61.0.143:    at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> 10.61.0.143:    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> 10.61.0.143:    at
>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> 10.61.0.143:    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> 10.61.0.143:    at
>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> 10.61.0.143: Could not find the main class:
>> org.apache.hadoop.mapred.TaskTracker.  Program will exit.
>> 10.61.0.7: Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/hadoop/io/SecureIOUtils$AlreadyExistsException
>> 10.61.0.7: Caused by: java.lang.ClassNotFoundException:
>> org.apache.hadoop.io.SecureIOUtils$AlreadyExistsException
>> 10.61.0.7:      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> 10.61.0.7:      at java.security.AccessController.doPrivileged(Native
>> Method)
>> 10.61.0.7:      at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> 10.61.0.7:      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>> 10.61.0.7:      at
>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> 10.61.0.7:      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>> 10.61.0.7:      at
>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> 10.61.0.7: Could not find the main class:
>> org.apache.hadoop.mapred.TaskTracker.  Program will exit.
>>
>>                                                                zhutao
>>
>>
>
>
>-- 
>Regards,
>Simon

Reply via email to