pom.xml 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <parent>
  18. <groupId>org.apache.hadoop</groupId>
  19. <artifactId>hadoop-project</artifactId>
  20. <version>2.10.1-SNAPSHOT</version>
  21. <relativePath>../../hadoop-project</relativePath>
  22. </parent>
  23. <artifactId>hadoop-azure</artifactId>
  24. <name>Apache Hadoop Azure support</name>
  25. <description>
  26. This module contains code to support integration with Azure.
  27. Currently this consists of a filesystem client to read data from
  28. and write data to Azure Storage.
  29. </description>
  30. <packaging>jar</packaging>
  31. <properties>
  32. <file.encoding>UTF-8</file.encoding>
  33. <downloadSources>true</downloadSources>
  34. <hadoop.tmp.dir>${project.build.directory}/test</hadoop.tmp.dir>
  35. <!-- are scale tests enabled ? -->
  36. <fs.azure.scale.test.enabled>unset</fs.azure.scale.test.enabled>
  37. <!-- Size in MB of huge files. -->
  38. <fs.azure.scale.test.huge.filesize>unset</fs.azure.scale.test.huge.filesize>
  39. <!-- Size in MB of the partion size in huge file uploads. -->
  40. <fs.azure.scale.test.huge.partitionsize>unset</fs.azure.scale.test.huge.partitionsize>
  41. <!-- Timeout in seconds for scale tests.-->
  42. <fs.azure.scale.test.timeout>7200</fs.azure.scale.test.timeout>
  43. <fs.azure.scale.test.list.performance.threads>10</fs.azure.scale.test.list.performance.threads>
  44. <fs.azure.scale.test.list.performance.files>1000</fs.azure.scale.test.list.performance.files>
  45. </properties>
  46. <build>
  47. <plugins>
  48. <plugin>
  49. <groupId>org.codehaus.mojo</groupId>
  50. <artifactId>findbugs-maven-plugin</artifactId>
  51. <configuration>
  52. <findbugsXmlOutput>true</findbugsXmlOutput>
  53. <xmlOutput>true</xmlOutput>
  54. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
  55. </excludeFilterFile>
  56. <effort>Max</effort>
  57. </configuration>
  58. </plugin>
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-project-info-reports-plugin</artifactId>
  62. <configuration>
  63. <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
  64. <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
  65. </configuration>
  66. </plugin>
  67. <plugin>
  68. <groupId>org.apache.maven.plugins</groupId>
  69. <artifactId>maven-checkstyle-plugin</artifactId>
  70. <configuration>
  71. <!-- To run with the default Sun ruleset,
  72. comment out the configLocation line -->
  73. <configLocation>src/config/checkstyle.xml</configLocation>
  74. <suppressionsLocation>src/config/checkstyle-suppressions.xml</suppressionsLocation>
  75. </configuration>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-jar-plugin</artifactId>
  80. <executions>
  81. <execution>
  82. <goals>
  83. <goal>test-jar</goal>
  84. </goals>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. </plugins>
  89. <!--
  90. The following is to suppress a m2e warning in eclipse
  91. (m2e doesn't know how to handle maven-enforcer:enforce, so we have to tell m2e to ignore it)
  92. see: https://stackoverflow.com/questions/13040788/how-to-elimate-the-maven-enforcer-plugin-goal-enforce-is-ignored-by-m2e-wa
  93. -->
  94. <pluginManagement>
  95. <plugins>
  96. <plugin>
  97. <groupId>org.eclipse.m2e</groupId>
  98. <artifactId>lifecycle-mapping</artifactId>
  99. <version>1.0.0</version>
  100. <configuration>
  101. <lifecycleMappingMetadata>
  102. <pluginExecutions>
  103. <pluginExecution>
  104. <pluginExecutionFilter>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-enforcer-plugin</artifactId>
  107. <versionRange>[1.0.0,)</versionRange>
  108. <goals>
  109. <goal>enforce</goal>
  110. </goals>
  111. </pluginExecutionFilter>
  112. <action>
  113. <ignore />
  114. </action>
  115. </pluginExecution>
  116. </pluginExecutions>
  117. </lifecycleMappingMetadata>
  118. </configuration>
  119. </plugin>
  120. </plugins>
  121. </pluginManagement>
  122. </build>
  123. <!-- see hadoop-project/pom.xml for version number declarations -->
  124. <dependencies>
  125. <dependency>
  126. <groupId>org.apache.hadoop</groupId>
  127. <artifactId>hadoop-common</artifactId>
  128. <scope>compile</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.apache.httpcomponents</groupId>
  132. <artifactId>httpclient</artifactId>
  133. <scope>compile</scope>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.microsoft.azure</groupId>
  137. <artifactId>azure-storage</artifactId>
  138. <scope>compile</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.google.guava</groupId>
  142. <artifactId>guava</artifactId>
  143. </dependency>
  144. <!--
  145. <dependency>
  146. <groupId>org.eclipse.jetty</groupId>
  147. <artifactId>jetty-util-ajax</artifactId>
  148. <scope>compile</scope>
  149. </dependency>
  150. -->
  151. <dependency>
  152. <groupId>org.codehaus.jackson</groupId>
  153. <artifactId>jackson-mapper-asl</artifactId>
  154. <scope>compile</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.codehaus.jackson</groupId>
  158. <artifactId>jackson-core-asl</artifactId>
  159. <scope>compile</scope>
  160. </dependency>
  161. <!--
  162. <dependency>
  163. <groupId>org.wildfly.openssl</groupId>
  164. <artifactId>wildfly-openssl</artifactId>
  165. <scope>compile</scope>
  166. </dependency>
  167. -->
  168. <!--com.fasterxml.jackson is used by WASB, not ABFS-->
  169. <!--transitive dependency from Azure SDK-->
  170. <dependency>
  171. <groupId>com.fasterxml.jackson.core</groupId>
  172. <artifactId>jackson-core</artifactId>
  173. <scope>provided</scope>
  174. </dependency>
  175. <!--transitive dependency from hadoop-common-->
  176. <dependency>
  177. <groupId>com.fasterxml.jackson.core</groupId>
  178. <artifactId>jackson-databind</artifactId>
  179. <scope>provided</scope>
  180. </dependency>
  181. <!-- dependencies use for test only -->
  182. <dependency>
  183. <groupId>junit</groupId>
  184. <artifactId>junit</artifactId>
  185. <scope>test</scope>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.apache.hadoop</groupId>
  189. <artifactId>hadoop-common</artifactId>
  190. <scope>test</scope>
  191. <type>test-jar</type>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.apache.hadoop</groupId>
  195. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  196. <scope>test</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.apache.hadoop</groupId>
  200. <artifactId>hadoop-distcp</artifactId>
  201. <scope>test</scope>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.apache.hadoop</groupId>
  205. <artifactId>hadoop-distcp</artifactId>
  206. <scope>test</scope>
  207. <type>test-jar</type>
  208. </dependency>
  209. <dependency>
  210. <groupId>log4j</groupId>
  211. <artifactId>log4j</artifactId>
  212. <scope>test</scope>
  213. </dependency>
  214. <!--
  215. <dependency>
  216. <groupId>javax.ws.rs</groupId>
  217. <artifactId>jsr311-api</artifactId>
  218. <scope>test</scope>
  219. </dependency>
  220. -->
  221. <dependency>
  222. <groupId>org.mockito</groupId>
  223. <artifactId>mockito-all</artifactId>
  224. <scope>test</scope>
  225. </dependency>
  226. <dependency>
  227. <groupId>org.hamcrest</groupId>
  228. <artifactId>hamcrest-library</artifactId>
  229. <scope>test</scope>
  230. </dependency>
  231. </dependencies>
  232. <profiles>
  233. <profile>
  234. <id>parallel-tests-wasb</id>
  235. <activation>
  236. <property>
  237. <name>parallel-tests</name>
  238. <value>wasb</value>
  239. </property>
  240. </activation>
  241. <build>
  242. <plugins>
  243. <plugin>
  244. <artifactId>maven-antrun-plugin</artifactId>
  245. <executions>
  246. <execution>
  247. <id>create-parallel-tests-dirs</id>
  248. <phase>test-compile</phase>
  249. <configuration>
  250. <target>
  251. <script language="javascript"><![CDATA[
  252. var baseDirs = [
  253. project.getProperty("test.build.data"),
  254. project.getProperty("test.build.dir"),
  255. project.getProperty("hadoop.tmp.dir")
  256. ];
  257. for (var i in baseDirs) {
  258. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  259. var mkdir = project.createTask("mkdir");
  260. mkdir.setDir(new java.io.File(baseDirs[i], j));
  261. mkdir.perform();
  262. }
  263. }
  264. ]]></script>
  265. </target>
  266. </configuration>
  267. <goals>
  268. <goal>run</goal>
  269. </goals>
  270. </execution>
  271. </executions>
  272. </plugin>
  273. <plugin>
  274. <groupId>org.apache.maven.plugins</groupId>
  275. <artifactId>maven-surefire-plugin</artifactId>
  276. <executions>
  277. <execution>
  278. <id>default-test</id>
  279. <goals>
  280. <goal>test</goal>
  281. </goals>
  282. <configuration>
  283. <forkCount>1</forkCount>
  284. <forkCount>${testsThreadCount}</forkCount>
  285. <reuseForks>false</reuseForks>
  286. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  287. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  288. <systemPropertyVariables>
  289. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  290. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  291. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  292. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  293. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  294. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  295. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  296. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  297. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  298. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  299. </systemPropertyVariables>
  300. <includes>
  301. <include>**/azure/Test*.java</include>
  302. <include>**/azure/**/Test*.java</include>
  303. </includes>
  304. <excludes>
  305. <exclude>**/azure/**/TestRollingWindowAverage*.java</exclude>
  306. </excludes>
  307. </configuration>
  308. </execution>
  309. <execution>
  310. <id>serialized-test-wasb</id>
  311. <goals>
  312. <goal>test</goal>
  313. </goals>
  314. <configuration>
  315. <forkCount>1</forkCount>
  316. <reuseForks>false</reuseForks>
  317. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  318. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  319. <systemPropertyVariables>
  320. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  321. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  322. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  323. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  324. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  325. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  326. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  327. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  328. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  329. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  330. </systemPropertyVariables>
  331. <includes>
  332. <include>**/azure/**/TestRollingWindowAverage*.java</include>
  333. </includes>
  334. </configuration>
  335. </execution>
  336. </executions>
  337. </plugin>
  338. <plugin>
  339. <groupId>org.apache.maven.plugins</groupId>
  340. <artifactId>maven-failsafe-plugin</artifactId>
  341. <executions>
  342. <execution>
  343. <id>default-integration-test-wasb</id>
  344. <goals>
  345. <goal>integration-test</goal>
  346. <goal>verify</goal>
  347. </goals>
  348. <configuration>
  349. <forkCount>1</forkCount>
  350. <forkCount>${testsThreadCount}</forkCount>
  351. <reuseForks>false</reuseForks>
  352. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  353. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  354. <trimStackTrace>false</trimStackTrace>
  355. <systemPropertyVariables>
  356. <!-- Tell tests that they are being executed in parallel -->
  357. <test.parallel.execution>true</test.parallel.execution>
  358. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  359. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  360. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  361. <!-- Due to a Maven quirk, setting this to just -->
  362. <!-- surefire.forkNumber won't do the parameter -->
  363. <!-- substitution. Putting a prefix in front of it like -->
  364. <!-- "fork-" makes it work. -->
  365. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  366. <!-- Propagate scale parameters -->
  367. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  368. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  369. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  370. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  371. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  372. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  373. </systemPropertyVariables>
  374. <!-- Some tests cannot run in parallel-->
  375. <includes>
  376. <include>**/azure/ITest*.java</include>
  377. <include>**/azure/**/ITest*.java</include>
  378. </includes>
  379. <excludes>
  380. <exclude>**/azure/ITestNativeFileSystemStatistics.java</exclude>
  381. </excludes>
  382. </configuration>
  383. </execution>
  384. <!-- Do a sequential run for tests that cannot handle -->
  385. <!-- parallel execution. -->
  386. <execution>
  387. <id>sequential-integration-tests-wasb</id>
  388. <goals>
  389. <goal>integration-test</goal>
  390. <goal>verify</goal>
  391. </goals>
  392. <configuration>
  393. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  394. <trimStackTrace>false</trimStackTrace>
  395. <systemPropertyVariables>
  396. <test.parallel.execution>false</test.parallel.execution>
  397. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  398. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  399. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  400. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  401. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  402. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  403. </systemPropertyVariables>
  404. <includes>
  405. <include>**/azure/ITestNativeFileSystemStatistics.java</include>
  406. </includes>
  407. </configuration>
  408. </execution>
  409. </executions>
  410. </plugin>
  411. </plugins>
  412. </build>
  413. </profile>
  414. <profile>
  415. <id>parallel-tests-abfs</id>
  416. <activation>
  417. <property>
  418. <name>parallel-tests</name>
  419. <value>abfs</value>
  420. </property>
  421. </activation>
  422. <build>
  423. <plugins>
  424. <plugin>
  425. <artifactId>maven-antrun-plugin</artifactId>
  426. <executions>
  427. <execution>
  428. <id>create-parallel-tests-dirs</id>
  429. <phase>test-compile</phase>
  430. <configuration>
  431. <target>
  432. <script language="javascript"><![CDATA[
  433. var baseDirs = [
  434. project.getProperty("test.build.data"),
  435. project.getProperty("test.build.dir"),
  436. project.getProperty("hadoop.tmp.dir")
  437. ];
  438. for (var i in baseDirs) {
  439. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  440. var mkdir = project.createTask("mkdir");
  441. mkdir.setDir(new java.io.File(baseDirs[i], j));
  442. mkdir.perform();
  443. }
  444. }
  445. ]]></script>
  446. </target>
  447. </configuration>
  448. <goals>
  449. <goal>run</goal>
  450. </goals>
  451. </execution>
  452. </executions>
  453. </plugin>
  454. <plugin>
  455. <groupId>org.apache.maven.plugins</groupId>
  456. <artifactId>maven-surefire-plugin</artifactId>
  457. <executions>
  458. <execution>
  459. <id>default-test</id>
  460. <goals>
  461. <goal>test</goal>
  462. </goals>
  463. <configuration>
  464. <forkCount>${testsThreadCount}</forkCount>
  465. <reuseForks>false</reuseForks>
  466. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  467. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  468. <systemPropertyVariables>
  469. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  470. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  471. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  472. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  473. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  474. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  475. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  476. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  477. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  478. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  479. </systemPropertyVariables>
  480. <includes>
  481. <include>**/azurebfs/Test*.java</include>
  482. <include>**/azurebfs/**/Test*.java</include>
  483. </includes>
  484. </configuration>
  485. </execution>
  486. </executions>
  487. </plugin>
  488. <plugin>
  489. <groupId>org.apache.maven.plugins</groupId>
  490. <artifactId>maven-failsafe-plugin</artifactId>
  491. <executions>
  492. <execution>
  493. <id>integration-test-abfs-parallel-classesAndMethods</id>
  494. <goals>
  495. <goal>integration-test</goal>
  496. <goal>verify</goal>
  497. </goals>
  498. <configuration>
  499. <forkCount>${testsThreadCount}</forkCount>
  500. <reuseForks>true</reuseForks>
  501. <parallel>both</parallel>
  502. <threadCount>${testsThreadCount}</threadCount>
  503. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  504. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  505. <trimStackTrace>false</trimStackTrace>
  506. <systemPropertyVariables>
  507. <!-- Tell tests that they are being executed in parallel -->
  508. <test.parallel.execution>true</test.parallel.execution>
  509. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  510. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  511. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  512. <!-- Due to a Maven quirk, setting this to just -->
  513. <!-- surefire.forkNumber won't do the parameter -->
  514. <!-- substitution. Putting a prefix in front of it like -->
  515. <!-- "fork-" makes it work. -->
  516. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  517. <!-- Propagate scale parameters -->
  518. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  519. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  520. </systemPropertyVariables>
  521. <includes>
  522. <include>**/azurebfs/ITest*.java</include>
  523. <include>**/azurebfs/**/ITest*.java</include>
  524. </includes>
  525. <excludes>
  526. <exclude>**/azurebfs/contract/ITest*.java</exclude>
  527. <exclude>**/azurebfs/ITestAzureBlobFileSystemE2EScale.java</exclude>
  528. <exclude>**/azurebfs/ITestAbfsReadWriteAndSeek.java</exclude>
  529. <exclude>**/azurebfs/ITestAzureBlobFileSystemListStatus.java</exclude>
  530. </excludes>
  531. </configuration>
  532. </execution>
  533. <execution>
  534. <id>integration-test-abfs-parallel-classes</id>
  535. <goals>
  536. <goal>integration-test</goal>
  537. <goal>verify</goal>
  538. </goals>
  539. <configuration>
  540. <forkCount>${testsThreadCount}</forkCount>
  541. <reuseForks>false</reuseForks>
  542. <!--NOTICE: hadoop contract tests methods can not be ran in parallel-->
  543. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  544. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  545. <trimStackTrace>false</trimStackTrace>
  546. <systemPropertyVariables>
  547. <!-- Tell tests that they are being executed in parallel -->
  548. <test.parallel.execution>true</test.parallel.execution>
  549. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  550. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  551. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  552. <!-- Due to a Maven quirk, setting this to just -->
  553. <!-- surefire.forkNumber won't do the parameter -->
  554. <!-- substitution. Putting a prefix in front of it like -->
  555. <!-- "fork-" makes it work. -->
  556. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  557. <!-- Propagate scale parameters -->
  558. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  559. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  560. </systemPropertyVariables>
  561. <includes>
  562. <include>**/azurebfs/contract/ITest*.java</include>
  563. <include>**/azurebfs/ITestAzureBlobFileSystemE2EScale.java</include>
  564. <include>**/azurebfs/ITestAbfsReadWriteAndSeek.java</include>
  565. <include>**/azurebfs/ITestAzureBlobFileSystemListStatus.java</include>
  566. </includes>
  567. </configuration>
  568. </execution>
  569. </executions>
  570. </plugin>
  571. </plugins>
  572. </build>
  573. </profile>
  574. <profile>
  575. <id>parallel-tests</id>
  576. <activation>
  577. <property>
  578. <name>parallel-tests</name>
  579. <value>both</value>
  580. </property>
  581. </activation>
  582. <build>
  583. <plugins>
  584. <plugin>
  585. <artifactId>maven-antrun-plugin</artifactId>
  586. <executions>
  587. <execution>
  588. <id>create-parallel-tests-dirs</id>
  589. <phase>test-compile</phase>
  590. <configuration>
  591. <target>
  592. <script language="javascript"><![CDATA[
  593. var baseDirs = [
  594. project.getProperty("test.build.data"),
  595. project.getProperty("test.build.dir"),
  596. project.getProperty("hadoop.tmp.dir")
  597. ];
  598. for (var i in baseDirs) {
  599. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  600. var mkdir = project.createTask("mkdir");
  601. mkdir.setDir(new java.io.File(baseDirs[i], j));
  602. mkdir.perform();
  603. }
  604. }
  605. ]]></script>
  606. </target>
  607. </configuration>
  608. <goals>
  609. <goal>run</goal>
  610. </goals>
  611. </execution>
  612. </executions>
  613. </plugin>
  614. <plugin>
  615. <groupId>org.apache.maven.plugins</groupId>
  616. <artifactId>maven-surefire-plugin</artifactId>
  617. <executions>
  618. <execution>
  619. <id>default-test</id>
  620. <goals>
  621. <goal>test</goal>
  622. </goals>
  623. <configuration>
  624. <forkCount>1</forkCount>
  625. <forkCount>${testsThreadCount}</forkCount>
  626. <reuseForks>false</reuseForks>
  627. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  628. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  629. <systemPropertyVariables>
  630. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  631. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  632. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  633. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  634. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  635. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  636. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  637. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  638. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  639. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  640. </systemPropertyVariables>
  641. <includes>
  642. <include>**/Test*.java</include>
  643. </includes>
  644. <excludes>
  645. <exclude>**/TestRollingWindowAverage*.java</exclude>
  646. </excludes>
  647. </configuration>
  648. </execution>
  649. <execution>
  650. <id>serialized-test</id>
  651. <goals>
  652. <goal>test</goal>
  653. </goals>
  654. <configuration>
  655. <forkCount>1</forkCount>
  656. <reuseForks>false</reuseForks>
  657. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  658. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  659. <systemPropertyVariables>
  660. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  661. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  662. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  663. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  664. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  665. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  666. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  667. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  668. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  669. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  670. </systemPropertyVariables>
  671. <includes>
  672. <include>**/TestRollingWindowAverage*.java</include>
  673. </includes>
  674. </configuration>
  675. </execution>
  676. </executions>
  677. </plugin>
  678. <plugin>
  679. <groupId>org.apache.maven.plugins</groupId>
  680. <artifactId>maven-failsafe-plugin</artifactId>
  681. <executions>
  682. <execution>
  683. <id>default-integration-test</id>
  684. <goals>
  685. <goal>integration-test</goal>
  686. <goal>verify</goal>
  687. </goals>
  688. <configuration>
  689. <forkCount>${testsThreadCount}</forkCount>
  690. <reuseForks>false</reuseForks>
  691. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  692. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  693. <trimStackTrace>false</trimStackTrace>
  694. <systemPropertyVariables>
  695. <!-- Tell tests that they are being executed in parallel -->
  696. <test.parallel.execution>true</test.parallel.execution>
  697. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  698. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  699. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  700. <!-- Due to a Maven quirk, setting this to just -->
  701. <!-- surefire.forkNumber won't do the parameter -->
  702. <!-- substitution. Putting a prefix in front of it like -->
  703. <!-- "fork-" makes it work. -->
  704. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  705. <!-- Propagate scale parameters -->
  706. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  707. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  708. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  709. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  710. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  711. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  712. </systemPropertyVariables>
  713. <!-- Some tests cannot run in parallel. Tests that cover -->
  714. <!-- access to the root directory must run in isolation -->
  715. <!-- from anything else that could modify the bucket. -->
  716. <!-- azure tests that cover multi-part upload must run in -->
  717. <!-- isolation, because the file system is configured to -->
  718. <!-- purge existing multi-part upload data on -->
  719. <!-- initialization. MiniYARNCluster has not yet been -->
  720. <!-- changed to handle parallel test execution gracefully. -->
  721. <!-- Exclude all of these tests from parallel execution, -->
  722. <!-- and instead run them sequentially in a separate -->
  723. <!-- Surefire execution step later. -->
  724. <includes>
  725. <include>**/ITest*.java</include>
  726. </includes>
  727. <excludes>
  728. <exclude>**/ITestFileSystemOperationsExceptionHandlingMultiThreaded.java</exclude>
  729. <exclude>**/ITestFileSystemOperationsWithThreads.java</exclude>
  730. <exclude>**/ITestOutOfBandAzureBlobOperationsLive.java</exclude>
  731. <exclude>**/ITestNativeAzureFileSystemAuthorizationWithOwner.java</exclude>
  732. <exclude>**/ITestNativeAzureFileSystemConcurrencyLive.java</exclude>
  733. <exclude>**/ITestNativeAzureFileSystemLive.java</exclude>
  734. <exclude>**/ITestNativeAzureFSPageBlobLive.java</exclude>
  735. <exclude>**/ITestAzureBlobFileSystemRandomRead.java</exclude>
  736. <exclude>**/ITestWasbRemoteCallHelper.java</exclude>
  737. <exclude>**/ITestBlockBlobInputStream.java</exclude>
  738. <exclude>**/ITestWasbAbfsCompatibility.java</exclude>
  739. <exclude>**/ITestNativeFileSystemStatistics.java</exclude>
  740. </excludes>
  741. </configuration>
  742. </execution>
  743. <!-- Do a sequential run for tests that cannot handle -->
  744. <!-- parallel execution. -->
  745. <execution>
  746. <id>sequential-integration-tests</id>
  747. <goals>
  748. <goal>integration-test</goal>
  749. <goal>verify</goal>
  750. </goals>
  751. <configuration>
  752. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  753. <trimStackTrace>false</trimStackTrace>
  754. <systemPropertyVariables>
  755. <test.parallel.execution>false</test.parallel.execution>
  756. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  757. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  758. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  759. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  760. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  761. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  762. </systemPropertyVariables>
  763. <includes>
  764. <include>**/ITestWasbAbfsCompatibility.java</include>
  765. <include>**/ITestFileSystemOperationsExceptionHandlingMultiThreaded.java</include>
  766. <include>**/ITestFileSystemOperationsWithThreads.java</include>
  767. <include>**/ITestOutOfBandAzureBlobOperationsLive.java</include>
  768. <include>**/ITestNativeAzureFileSystemAuthorizationWithOwner.java</include>
  769. <include>**/ITestNativeAzureFileSystemConcurrencyLive.java</include>
  770. <include>**/ITestNativeAzureFileSystemLive.java</include>
  771. <include>**/ITestNativeAzureFSPageBlobLive.java</include>
  772. <include>**/ITestAzureBlobFileSystemRandomRead.java</include>
  773. <include>**/ITestWasbRemoteCallHelper.java</include>
  774. <include>**/ITestBlockBlobInputStream.java</include>
  775. <include>**/ITestNativeFileSystemStatistics.java</include>
  776. </includes>
  777. </configuration>
  778. </execution>
  779. </executions>
  780. </plugin>
  781. </plugins>
  782. </build>
  783. </profile>
  784. <profile>
  785. <id>sequential-tests</id>
  786. <activation>
  787. <property>
  788. <name>!parallel-tests</name>
  789. </property>
  790. </activation>
  791. <build>
  792. <plugins>
  793. <plugin>
  794. <groupId>org.apache.maven.plugins</groupId>
  795. <artifactId>maven-failsafe-plugin</artifactId>
  796. <executions>
  797. <execution>
  798. <goals>
  799. <goal>integration-test</goal>
  800. <goal>verify</goal>
  801. </goals>
  802. <configuration>
  803. <systemPropertyVariables>
  804. <!-- Propagate scale parameters -->
  805. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  806. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  807. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  808. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  809. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  810. </systemPropertyVariables>
  811. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  812. <trimStackTrace>false</trimStackTrace>
  813. </configuration>
  814. </execution>
  815. </executions>
  816. </plugin>
  817. </plugins>
  818. </build>
  819. </profile>
  820. <!-- Turn on scale tests-->
  821. <profile>
  822. <id>scale</id>
  823. <activation>
  824. <property>
  825. <name>scale</name>
  826. </property>
  827. </activation>
  828. <properties>
  829. <fs.azure.scale.test.enabled>true</fs.azure.scale.test.enabled>
  830. </properties>
  831. </profile>
  832. </profiles>
  833. </project>