hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elise Gale <eg...@wisc.edu>
Subject Re: Trying to start DataNodeCluster in 0.23.0
Date Fri, 03 Jun 2011 19:20:47 GMT
Hello,

I figured it out! In case it is an issue for anyone in the future, I added this line to my
bin/hdfs script:

CLASSPATH=${CLASSPATH}:$HADOOP_HDFS_HOME/build/test/hdfs/classes

-Elise

On 06/01/11, Elise Gale  <egale@wisc.edu> wrote:
> Hello,
> 
> I am trying to start a DataNodeCluster using the following command:
> 
> 
> bin/hadoop-daemon.sh start org.apache.hadoop.hdfs.DataNodeCluster  -simulated -n $DATANODE_PER_HOST
-inject $STARTING_BLOCK_ID $BLOCKS_PER_DN
> 
> As described in HADOOP-6383 [https://issues.apache.org/jira/browse/HADOOP-6383].
> 
> And I get this error:
> 
> 
> starting org.apache.hadoop.hdfs.DataNodeCluster, logging to /u/g/a/gale/private/dev-hadoop/hadoop-common-trunk/logs/gale/gale/hadoop-gale-org.apache.hadoop.hdfs.DataNodeCluster-.out
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hdfs/DataNodeCluster
> Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hdfs.DataNodeCluster
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
> Could not find the main class: org.apache.hadoop.hdfs.DataNodeCluster. Program will exit.
> 
> I had previously gotten it to work in version 0.21.0 but now I am in version 0.23.0. 
Is there something I should be compiling or am otherwise missing?
> 
> Thanks,
> 
> Elise
> 
> 

Mime
View raw message