pom.xml 43 KB

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