Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unit testing maven测试| NoClassDefFoundException DirectFileOutputcommitter_Unit Testing_Hadoop_Amazon S3_Maven Surefire Plugin - Fatal编程技术网

Unit testing maven测试| NoClassDefFoundException DirectFileOutputcommitter

Unit testing maven测试| NoClassDefFoundException DirectFileOutputcommitter,unit-testing,hadoop,amazon-s3,maven-surefire-plugin,Unit Testing,Hadoop,Amazon S3,Maven Surefire Plugin,我正在使用maven surefire插件进行单元测试。由于以下异常,其中一个单元测试崩溃: java.lang.NoClassDefFoundError:org/apache/hadoop/mapreduce/lib/output/DirectFileOutputCommitter 通过谷歌搜索,我发现这个类def位于amazon-s3.jar,它位于我的hadoop发行版的hadoop/lib文件夹中。如何在单元测试中避免此异常?哪个hadoop发行版?

我正在使用maven surefire插件进行单元测试。由于以下异常,其中一个单元测试崩溃:

java.lang.NoClassDefFoundError:org/apache/hadoop/mapreduce/lib/output/DirectFileOutputCommitter


通过谷歌搜索,我发现这个类def位于
amazon-s3.jar
,它位于我的hadoop发行版的
hadoop/lib
文件夹中。如何在单元测试中避免此异常?

哪个hadoop发行版?