Try giving the name as org.apache.hadoop.hdfs.TestWriteRead With package name
> On 31-May-2019, at 11:16 AM, Daegyu Han <hdg9...@gmail.com> wrote: > > Hi all, > > I want to run a unit test by using hadoop-hdfs-2.9.2-tests.jar in > hadoop-2.9.2/share/hadoop/hdfs. > > 1. > It didn't work to run the followed command. > (yarn jar hadoop-2.9.2/share/hadoop/hdfs/hadoop-hdfs-2.9.2-tests.jar > TestWriteRead) > The error message said that there is no main class name. > > 2. > I also tried to manually compile the wordcount class and it failed. > - javac -classpath ${HADOOP_CLASSPATH} -d > 'hdfs-test/TestWriteRead-cp/' > '/home/hduser/hdfs-test/TestWriteRead.java' > - jar -cvf TestRW.jar -c TestWriteRead-cp . > but it didn't work. > > How Can I run hdfs-tests.jar ?? > > Best Regards, > Daegyu Han > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@hadoop.apache.org > For additional commands, e-mail: user-h...@hadoop.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@hadoop.apache.org For additional commands, e-mail: user-h...@hadoop.apache.org