pom.xml 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  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>compile</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. </dependencies>
  252. <profiles>
  253. <profile>
  254. <id>parallel-tests-wasb</id>
  255. <activation>
  256. <property>
  257. <name>parallel-tests</name>
  258. <value>wasb</value>
  259. </property>
  260. </activation>
  261. <build>
  262. <plugins>
  263. <plugin>
  264. <artifactId>maven-antrun-plugin</artifactId>
  265. <executions>
  266. <execution>
  267. <id>create-parallel-tests-dirs</id>
  268. <phase>test-compile</phase>
  269. <configuration>
  270. <target>
  271. <script language="javascript"><![CDATA[
  272. var baseDirs = [
  273. project.getProperty("test.build.data"),
  274. project.getProperty("test.build.dir"),
  275. project.getProperty("hadoop.tmp.dir")
  276. ];
  277. for (var i in baseDirs) {
  278. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  279. var mkdir = project.createTask("mkdir");
  280. mkdir.setDir(new java.io.File(baseDirs[i], j));
  281. mkdir.perform();
  282. }
  283. }
  284. ]]></script>
  285. </target>
  286. </configuration>
  287. <goals>
  288. <goal>run</goal>
  289. </goals>
  290. </execution>
  291. </executions>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-surefire-plugin</artifactId>
  296. <executions>
  297. <execution>
  298. <id>default-test</id>
  299. <goals>
  300. <goal>test</goal>
  301. </goals>
  302. <configuration>
  303. <forkCount>1</forkCount>
  304. <forkCount>${testsThreadCount}</forkCount>
  305. <reuseForks>false</reuseForks>
  306. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  307. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  308. <systemPropertyVariables>
  309. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  310. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  311. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  312. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  313. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  314. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  315. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  316. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  317. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  318. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  319. </systemPropertyVariables>
  320. <includes>
  321. <include>**/azure/Test*.java</include>
  322. <include>**/azure/**/Test*.java</include>
  323. </includes>
  324. <excludes>
  325. <exclude>**/azure/**/TestRollingWindowAverage*.java</exclude>
  326. </excludes>
  327. </configuration>
  328. </execution>
  329. <execution>
  330. <id>serialized-test-wasb</id>
  331. <goals>
  332. <goal>test</goal>
  333. </goals>
  334. <configuration>
  335. <forkCount>1</forkCount>
  336. <reuseForks>false</reuseForks>
  337. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  338. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  339. <systemPropertyVariables>
  340. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  341. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  342. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  343. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  344. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  345. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  346. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  347. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  348. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  349. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  350. </systemPropertyVariables>
  351. <includes>
  352. <include>**/azure/**/TestRollingWindowAverage*.java</include>
  353. </includes>
  354. </configuration>
  355. </execution>
  356. </executions>
  357. </plugin>
  358. <plugin>
  359. <groupId>org.apache.maven.plugins</groupId>
  360. <artifactId>maven-failsafe-plugin</artifactId>
  361. <executions>
  362. <execution>
  363. <id>default-integration-test-wasb</id>
  364. <goals>
  365. <goal>integration-test</goal>
  366. <goal>verify</goal>
  367. </goals>
  368. <configuration>
  369. <forkCount>1</forkCount>
  370. <forkCount>${testsThreadCount}</forkCount>
  371. <reuseForks>false</reuseForks>
  372. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  373. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  374. <trimStackTrace>false</trimStackTrace>
  375. <systemPropertyVariables>
  376. <!-- Tell tests that they are being executed in parallel -->
  377. <test.parallel.execution>true</test.parallel.execution>
  378. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  379. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  380. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  381. <!-- Due to a Maven quirk, setting this to just -->
  382. <!-- surefire.forkNumber won't do the parameter -->
  383. <!-- substitution. Putting a prefix in front of it like -->
  384. <!-- "fork-" makes it work. -->
  385. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  386. <!-- Propagate scale parameters -->
  387. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  388. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  389. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  390. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  391. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  392. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  393. </systemPropertyVariables>
  394. <!-- Some tests cannot run in parallel-->
  395. <includes>
  396. <include>**/azure/ITest*.java</include>
  397. <include>**/azure/**/ITest*.java</include>
  398. </includes>
  399. <excludes>
  400. <exclude>**/azure/ITestNativeFileSystemStatistics.java</exclude>
  401. </excludes>
  402. </configuration>
  403. </execution>
  404. <!-- Do a sequential run for tests that cannot handle -->
  405. <!-- parallel execution. -->
  406. <execution>
  407. <id>sequential-integration-tests-wasb</id>
  408. <goals>
  409. <goal>integration-test</goal>
  410. <goal>verify</goal>
  411. </goals>
  412. <configuration>
  413. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  414. <trimStackTrace>false</trimStackTrace>
  415. <systemPropertyVariables>
  416. <test.parallel.execution>false</test.parallel.execution>
  417. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  418. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  419. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  420. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  421. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  422. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  423. </systemPropertyVariables>
  424. <includes>
  425. <include>**/azure/ITestNativeFileSystemStatistics.java</include>
  426. </includes>
  427. </configuration>
  428. </execution>
  429. </executions>
  430. </plugin>
  431. </plugins>
  432. </build>
  433. </profile>
  434. <profile>
  435. <id>parallel-tests-abfs</id>
  436. <activation>
  437. <property>
  438. <name>parallel-tests</name>
  439. <value>abfs</value>
  440. </property>
  441. </activation>
  442. <build>
  443. <plugins>
  444. <plugin>
  445. <artifactId>maven-antrun-plugin</artifactId>
  446. <executions>
  447. <execution>
  448. <id>create-parallel-tests-dirs</id>
  449. <phase>test-compile</phase>
  450. <configuration>
  451. <target>
  452. <script language="javascript"><![CDATA[
  453. var baseDirs = [
  454. project.getProperty("test.build.data"),
  455. project.getProperty("test.build.dir"),
  456. project.getProperty("hadoop.tmp.dir")
  457. ];
  458. for (var i in baseDirs) {
  459. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  460. var mkdir = project.createTask("mkdir");
  461. mkdir.setDir(new java.io.File(baseDirs[i], j));
  462. mkdir.perform();
  463. }
  464. }
  465. ]]></script>
  466. </target>
  467. </configuration>
  468. <goals>
  469. <goal>run</goal>
  470. </goals>
  471. </execution>
  472. </executions>
  473. </plugin>
  474. <plugin>
  475. <groupId>org.apache.maven.plugins</groupId>
  476. <artifactId>maven-surefire-plugin</artifactId>
  477. <executions>
  478. <execution>
  479. <id>default-test</id>
  480. <goals>
  481. <goal>test</goal>
  482. </goals>
  483. <configuration>
  484. <forkCount>${testsThreadCount}</forkCount>
  485. <reuseForks>false</reuseForks>
  486. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  487. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  488. <systemPropertyVariables>
  489. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  490. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  491. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  492. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  493. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  494. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  495. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  496. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  497. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  498. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  499. </systemPropertyVariables>
  500. <includes>
  501. <include>**/azurebfs/Test*.java</include>
  502. <include>**/azurebfs/**/Test*.java</include>
  503. </includes>
  504. </configuration>
  505. </execution>
  506. </executions>
  507. </plugin>
  508. <plugin>
  509. <groupId>org.apache.maven.plugins</groupId>
  510. <artifactId>maven-failsafe-plugin</artifactId>
  511. <executions>
  512. <execution>
  513. <id>integration-test-abfs-parallel-classesAndMethods</id>
  514. <goals>
  515. <goal>integration-test</goal>
  516. <goal>verify</goal>
  517. </goals>
  518. <configuration>
  519. <forkCount>${testsThreadCount}</forkCount>
  520. <reuseForks>true</reuseForks>
  521. <parallel>both</parallel>
  522. <threadCount>${testsThreadCount}</threadCount>
  523. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  524. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  525. <trimStackTrace>false</trimStackTrace>
  526. <systemPropertyVariables>
  527. <!-- Tell tests that they are being executed in parallel -->
  528. <test.parallel.execution>true</test.parallel.execution>
  529. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  530. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  531. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  532. <!-- Due to a Maven quirk, setting this to just -->
  533. <!-- surefire.forkNumber won't do the parameter -->
  534. <!-- substitution. Putting a prefix in front of it like -->
  535. <!-- "fork-" makes it work. -->
  536. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  537. <!-- Propagate scale parameters -->
  538. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  539. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  540. </systemPropertyVariables>
  541. <includes>
  542. <include>**/azurebfs/ITest*.java</include>
  543. <include>**/azurebfs/**/ITest*.java</include>
  544. </includes>
  545. <excludes>
  546. <exclude>**/azurebfs/contract/ITest*.java</exclude>
  547. <exclude>**/azurebfs/ITestAzureBlobFileSystemE2EScale.java</exclude>
  548. <exclude>**/azurebfs/ITestAbfsReadWriteAndSeek.java</exclude>
  549. <exclude>**/azurebfs/ITestAzureBlobFileSystemListStatus.java</exclude>
  550. <exclude>**/azurebfs/extensions/ITestAbfsDelegationTokens.java</exclude>
  551. </excludes>
  552. </configuration>
  553. </execution>
  554. <execution>
  555. <id>integration-test-abfs-parallel-classes</id>
  556. <goals>
  557. <goal>integration-test</goal>
  558. <goal>verify</goal>
  559. </goals>
  560. <configuration>
  561. <forkCount>${testsThreadCount}</forkCount>
  562. <reuseForks>false</reuseForks>
  563. <!--NOTICE: hadoop contract tests methods can not be ran in parallel-->
  564. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  565. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  566. <trimStackTrace>false</trimStackTrace>
  567. <systemPropertyVariables>
  568. <!-- Tell tests that they are being executed in parallel -->
  569. <test.parallel.execution>true</test.parallel.execution>
  570. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  571. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  572. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  573. <!-- Due to a Maven quirk, setting this to just -->
  574. <!-- surefire.forkNumber won't do the parameter -->
  575. <!-- substitution. Putting a prefix in front of it like -->
  576. <!-- "fork-" makes it work. -->
  577. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  578. <!-- Propagate scale parameters -->
  579. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  580. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  581. </systemPropertyVariables>
  582. <includes>
  583. <include>**/azurebfs/contract/ITest*.java</include>
  584. <include>**/azurebfs/ITestAzureBlobFileSystemE2EScale.java</include>
  585. <include>**/azurebfs/ITestAbfsReadWriteAndSeek.java</include>
  586. <include>**/azurebfs/ITestAzureBlobFileSystemListStatus.java</include>
  587. <include>**/azurebfs/extensions/ITestAbfsDelegationTokens.java</include>
  588. </includes>
  589. </configuration>
  590. </execution>
  591. </executions>
  592. </plugin>
  593. </plugins>
  594. </build>
  595. </profile>
  596. <profile>
  597. <id>parallel-tests</id>
  598. <activation>
  599. <property>
  600. <name>parallel-tests</name>
  601. <value>both</value>
  602. </property>
  603. </activation>
  604. <build>
  605. <plugins>
  606. <plugin>
  607. <artifactId>maven-antrun-plugin</artifactId>
  608. <executions>
  609. <execution>
  610. <id>create-parallel-tests-dirs</id>
  611. <phase>test-compile</phase>
  612. <configuration>
  613. <target>
  614. <script language="javascript"><![CDATA[
  615. var baseDirs = [
  616. project.getProperty("test.build.data"),
  617. project.getProperty("test.build.dir"),
  618. project.getProperty("hadoop.tmp.dir")
  619. ];
  620. for (var i in baseDirs) {
  621. for (var j = 1; j <= ${testsThreadCount}; ++j) {
  622. var mkdir = project.createTask("mkdir");
  623. mkdir.setDir(new java.io.File(baseDirs[i], j));
  624. mkdir.perform();
  625. }
  626. }
  627. ]]></script>
  628. </target>
  629. </configuration>
  630. <goals>
  631. <goal>run</goal>
  632. </goals>
  633. </execution>
  634. </executions>
  635. </plugin>
  636. <plugin>
  637. <groupId>org.apache.maven.plugins</groupId>
  638. <artifactId>maven-surefire-plugin</artifactId>
  639. <executions>
  640. <execution>
  641. <id>default-test</id>
  642. <goals>
  643. <goal>test</goal>
  644. </goals>
  645. <configuration>
  646. <forkCount>1</forkCount>
  647. <forkCount>${testsThreadCount}</forkCount>
  648. <reuseForks>false</reuseForks>
  649. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  650. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  651. <systemPropertyVariables>
  652. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  653. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  654. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  655. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  656. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  657. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  658. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  659. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  660. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  661. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  662. </systemPropertyVariables>
  663. <includes>
  664. <include>**/Test*.java</include>
  665. </includes>
  666. <excludes>
  667. <exclude>**/TestRollingWindowAverage*.java</exclude>
  668. </excludes>
  669. </configuration>
  670. </execution>
  671. <execution>
  672. <id>serialized-test</id>
  673. <goals>
  674. <goal>test</goal>
  675. </goals>
  676. <configuration>
  677. <forkCount>1</forkCount>
  678. <reuseForks>false</reuseForks>
  679. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  680. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  681. <systemPropertyVariables>
  682. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  683. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  684. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  685. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  686. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  687. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  688. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  689. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  690. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  691. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  692. </systemPropertyVariables>
  693. <includes>
  694. <include>**/TestRollingWindowAverage*.java</include>
  695. </includes>
  696. </configuration>
  697. </execution>
  698. </executions>
  699. </plugin>
  700. <plugin>
  701. <groupId>org.apache.maven.plugins</groupId>
  702. <artifactId>maven-failsafe-plugin</artifactId>
  703. <executions>
  704. <execution>
  705. <id>default-integration-test</id>
  706. <goals>
  707. <goal>integration-test</goal>
  708. <goal>verify</goal>
  709. </goals>
  710. <configuration>
  711. <forkCount>${testsThreadCount}</forkCount>
  712. <reuseForks>false</reuseForks>
  713. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  714. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  715. <trimStackTrace>false</trimStackTrace>
  716. <systemPropertyVariables>
  717. <!-- Tell tests that they are being executed in parallel -->
  718. <test.parallel.execution>true</test.parallel.execution>
  719. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  720. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  721. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  722. <!-- Due to a Maven quirk, setting this to just -->
  723. <!-- surefire.forkNumber won't do the parameter -->
  724. <!-- substitution. Putting a prefix in front of it like -->
  725. <!-- "fork-" makes it work. -->
  726. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  727. <!-- Propagate scale parameters -->
  728. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  729. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  730. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  731. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  732. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  733. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  734. </systemPropertyVariables>
  735. <!-- Some tests cannot run in parallel. Tests that cover -->
  736. <!-- access to the root directory must run in isolation -->
  737. <!-- from anything else that could modify the bucket. -->
  738. <!-- azure tests that cover multi-part upload must run in -->
  739. <!-- isolation, because the file system is configured to -->
  740. <!-- purge existing multi-part upload data on -->
  741. <!-- initialization. MiniYARNCluster has not yet been -->
  742. <!-- changed to handle parallel test execution gracefully. -->
  743. <!-- Exclude all of these tests from parallel execution, -->
  744. <!-- and instead run them sequentially in a separate -->
  745. <!-- Surefire execution step later. -->
  746. <includes>
  747. <include>**/ITest*.java</include>
  748. </includes>
  749. <excludes>
  750. <exclude>**/ITestFileSystemOperationsExceptionHandlingMultiThreaded.java</exclude>
  751. <exclude>**/ITestFileSystemOperationsWithThreads.java</exclude>
  752. <exclude>**/ITestOutOfBandAzureBlobOperationsLive.java</exclude>
  753. <exclude>**/ITestNativeAzureFileSystemAuthorizationWithOwner.java</exclude>
  754. <exclude>**/ITestNativeAzureFileSystemConcurrencyLive.java</exclude>
  755. <exclude>**/ITestNativeAzureFileSystemLive.java</exclude>
  756. <exclude>**/ITestNativeAzureFSPageBlobLive.java</exclude>
  757. <exclude>**/ITestAzureBlobFileSystemRandomRead.java</exclude>
  758. <exclude>**/ITestWasbRemoteCallHelper.java</exclude>
  759. <exclude>**/ITestBlockBlobInputStream.java</exclude>
  760. <exclude>**/ITestWasbAbfsCompatibility.java</exclude>
  761. <exclude>**/ITestNativeFileSystemStatistics.java</exclude>
  762. </excludes>
  763. </configuration>
  764. </execution>
  765. <!-- Do a sequential run for tests that cannot handle -->
  766. <!-- parallel execution. -->
  767. <execution>
  768. <id>sequential-integration-tests</id>
  769. <goals>
  770. <goal>integration-test</goal>
  771. <goal>verify</goal>
  772. </goals>
  773. <configuration>
  774. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  775. <trimStackTrace>false</trimStackTrace>
  776. <systemPropertyVariables>
  777. <test.parallel.execution>false</test.parallel.execution>
  778. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  779. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  780. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  781. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  782. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  783. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  784. </systemPropertyVariables>
  785. <includes>
  786. <include>**/ITestWasbAbfsCompatibility.java</include>
  787. <include>**/ITestFileSystemOperationsExceptionHandlingMultiThreaded.java</include>
  788. <include>**/ITestFileSystemOperationsWithThreads.java</include>
  789. <include>**/ITestOutOfBandAzureBlobOperationsLive.java</include>
  790. <include>**/ITestNativeAzureFileSystemAuthorizationWithOwner.java</include>
  791. <include>**/ITestNativeAzureFileSystemConcurrencyLive.java</include>
  792. <include>**/ITestNativeAzureFileSystemLive.java</include>
  793. <include>**/ITestNativeAzureFSPageBlobLive.java</include>
  794. <include>**/ITestAzureBlobFileSystemRandomRead.java</include>
  795. <include>**/ITestWasbRemoteCallHelper.java</include>
  796. <include>**/ITestBlockBlobInputStream.java</include>
  797. <include>**/ITestNativeFileSystemStatistics.java</include>
  798. </includes>
  799. </configuration>
  800. </execution>
  801. </executions>
  802. </plugin>
  803. </plugins>
  804. </build>
  805. </profile>
  806. <profile>
  807. <id>sequential-tests</id>
  808. <activation>
  809. <property>
  810. <name>!parallel-tests</name>
  811. </property>
  812. </activation>
  813. <build>
  814. <plugins>
  815. <plugin>
  816. <groupId>org.apache.maven.plugins</groupId>
  817. <artifactId>maven-failsafe-plugin</artifactId>
  818. <executions>
  819. <execution>
  820. <goals>
  821. <goal>integration-test</goal>
  822. <goal>verify</goal>
  823. </goals>
  824. <configuration>
  825. <systemPropertyVariables>
  826. <!-- Propagate scale parameters -->
  827. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  828. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  829. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  830. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  831. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  832. </systemPropertyVariables>
  833. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  834. <trimStackTrace>false</trimStackTrace>
  835. </configuration>
  836. </execution>
  837. </executions>
  838. </plugin>
  839. </plugins>
  840. </build>
  841. </profile>
  842. <!-- Turn on scale tests-->
  843. <profile>
  844. <id>scale</id>
  845. <activation>
  846. <property>
  847. <name>scale</name>
  848. </property>
  849. </activation>
  850. <properties>
  851. <fs.azure.scale.test.enabled>true</fs.azure.scale.test.enabled>
  852. </properties>
  853. </profile>
  854. </profiles>
  855. </project>