pom.xml 44 KB

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