pom.xml 43 KB

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