|
|
-
Re: using test.org.apache.hadoop.fs.s3native.InMemoryNativeFileSystemStore class in hadoop
Yanbo Liang 2013-03-18, 11:06
These test classes are used for unit testing. You can run these cases to test particular function of a class. But when we run these test case, we need some additional classes and functions to simulate some underlying function which were called by these test cases.
InMemoryNativeFileSystemStore is a function used to support for testing NativeS3FileSystem. When you run TestInMemoryNativeS3FileSystemContract which is the unit test of S3 native filesystem, you will call the function of InMemoryNativeFileSystemStore .
2013/3/18 Agarwal, Nikhil <[EMAIL PROTECTED]>
> Hi All,**** > > ** ** > > I am pretty new to Hadoop. I noticed that there are many test classes in > hadoop source code under the packages test. org.apache.hadoop. Can anyone > explain me or provide some pointers to understand what is the purpose of > this and how to use them. In particular I wanted to use > InMemoryNativeFileSystemStore and see how it works. **** > > ** ** > > ** ** > > The comments in this class say “A stub implementation of {@link > NativeFileSystemStore} for testing NativeS3FileSystem without actually > connecting to S3.” But I do not understand exactly what does it mean and > how to use it.**** > > ** ** > > ** ** > > Thanks a lot in advance.**** > > ** ** > > Regards,**** > > Nikhil**** > > ** ** >
-
Re: using test.org.apache.hadoop.fs.s3native.InMemoryNativeFileSystemStore class in hadoop
Yanbo Liang 2013-03-19, 05:17
It just unit test, so you don't need to set any parameters in configuration files. 2013/3/18 Agarwal, Nikhil <[EMAIL PROTECTED]>
> Hi,**** > > ** ** > > Thanks for the quick reply. In order to test the class TestInMemoryNativeS3FileSystemContract and its functions what should be the value of parameter sin my configuration files (core-site, mapred, etc.)?**** > > ** ** > > Regards,**** > > Nikhil**** > > ** ** > > *From:* Agarwal, Nikhil > *Sent:* Monday, March 18, 2013 1:55 PM > *To:* '[EMAIL PROTECTED]' > *Subject:* using > test.org.apache.hadoop.fs.s3native.InMemoryNativeFileSystemStore class in > hadoop**** > > ** ** > > Hi All,**** > > ** ** > > I am pretty new to Hadoop. I noticed that there are many test classes in > hadoop source code under the packages test. org.apache.hadoop. Can anyone > explain me or provide some pointers to understand what is the purpose of > this and how to use them. In particular I wanted to use > InMemoryNativeFileSystemStore and see how it works. **** > > ** ** > > ** ** > > The comments in this class say “A stub implementation of {@link > NativeFileSystemStore} for testing NativeS3FileSystem without actually > connecting to S3.” But I do not understand exactly what does it mean and > how to use it.**** > > ** ** > > ** ** > > Thanks a lot in advance.**** > > ** ** > > Regards,**** > > Nikhil**** > > ** ** >
-
RE: using test.org.apache.hadoop.fs.s3native.InMemoryNativeFileSystemStore class in hadoop
Agarwal, Nikhil 2013-03-20, 09:40
Hi,
When I try to run the package test.org.apache.hadoop.fs.s3native as Junit Test is shows the following error:
Class not found org.apache.hadoop.fs.s3native.TestInMemoryNativeS3FileSystemContract java.lang.ClassNotFoundException: org.apache.hadoop.fs.s3native.TestInMemoryNativeS3FileSystemContract 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:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:693) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:429) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Can you please suggest what might have gone wrong.
Thanks, Nikhil
From: Agarwal, Nikhil Sent: Monday, March 18, 2013 5:16 PM To: '[EMAIL PROTECTED]' Subject: RE: using test.org.apache.hadoop.fs.s3native.InMemoryNativeFileSystemStore class in hadoop
Hi, Thanks for the quick reply. In order to test the class TestInMemoryNativeS3FileSystemContract and its functions what should be the value of parameter sin my configuration files (core-site, mapred, etc.)?
Regards,
Nikhil
From: Agarwal, Nikhil Sent: Monday, March 18, 2013 1:55 PM To: '[EMAIL PROTECTED]' Subject: using test.org.apache.hadoop.fs.s3native.InMemoryNativeFileSystemStore class in hadoop
Hi All,
I am pretty new to Hadoop. I noticed that there are many test classes in hadoop source code under the packages test. org.apache.hadoop. Can anyone explain me or provide some pointers to understand what is the purpose of this and how to use them. In particular I wanted to use InMemoryNativeFileSystemStore and see how it works. The comments in this class say "A stub implementation of {@link NativeFileSystemStore} for testing NativeS3FileSystem without actually connecting to S3." But I do not understand exactly what does it mean and how to use it. Thanks a lot in advance.
Regards, Nikhil
|
|