pom.xml 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923
  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.4.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. <dependency>
  325. <groupId>org.apache.hadoop</groupId>
  326. <artifactId>hadoop-logging</artifactId>
  327. <scope>test</scope>
  328. <type>test-jar</type>
  329. </dependency>
  330. </dependencies>
  331. <profiles>
  332. <profile>
  333. <id>parallel-tests-wasb</id>
  334. <activation>
  335. <property>
  336. <name>parallel-tests</name>
  337. <value>wasb</value>
  338. </property>
  339. </activation>
  340. <build>
  341. <plugins>
  342. <plugin>
  343. <groupId>org.apache.hadoop</groupId>
  344. <artifactId>hadoop-maven-plugins</artifactId>
  345. <executions>
  346. <execution>
  347. <id>parallel-tests-createdir</id>
  348. <goals>
  349. <goal>parallel-tests-createdir</goal>
  350. </goals>
  351. </execution>
  352. </executions>
  353. </plugin>
  354. <plugin>
  355. <groupId>org.apache.maven.plugins</groupId>
  356. <artifactId>maven-surefire-plugin</artifactId>
  357. <executions>
  358. <execution>
  359. <id>default-test</id>
  360. <goals>
  361. <goal>test</goal>
  362. </goals>
  363. <configuration>
  364. <forkCount>${testsThreadCount}</forkCount>
  365. <reuseForks>false</reuseForks>
  366. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  367. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  368. <systemPropertyVariables>
  369. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  370. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  371. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  372. <test.unique.fork.id>fork-000${surefire.forkNumber}</test.unique.fork.id>
  373. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  374. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  375. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  376. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  377. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  378. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  379. </systemPropertyVariables>
  380. <includes>
  381. <include>**/azure/Test*.java</include>
  382. <include>**/azure/**/Test*.java</include>
  383. </includes>
  384. <excludes>
  385. <exclude>**/azure/**/TestRollingWindowAverage*.java</exclude>
  386. </excludes>
  387. </configuration>
  388. </execution>
  389. <execution>
  390. <id>serialized-test-wasb</id>
  391. <goals>
  392. <goal>test</goal>
  393. </goals>
  394. <configuration>
  395. <forkCount>1</forkCount>
  396. <reuseForks>false</reuseForks>
  397. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  398. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  399. <systemPropertyVariables>
  400. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  401. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  402. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  403. <test.unique.fork.id>fork-000${surefire.forkNumber}</test.unique.fork.id>
  404. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  405. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  406. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  407. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  408. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  409. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  410. </systemPropertyVariables>
  411. <includes>
  412. <include>**/azure/**/TestRollingWindowAverage*.java</include>
  413. </includes>
  414. </configuration>
  415. </execution>
  416. </executions>
  417. </plugin>
  418. <plugin>
  419. <groupId>org.apache.maven.plugins</groupId>
  420. <artifactId>maven-failsafe-plugin</artifactId>
  421. <executions>
  422. <execution>
  423. <id>default-integration-test-wasb</id>
  424. <goals>
  425. <goal>integration-test</goal>
  426. <goal>verify</goal>
  427. </goals>
  428. <configuration>
  429. <forkCount>${testsThreadCount}</forkCount>
  430. <reuseForks>false</reuseForks>
  431. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  432. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  433. <trimStackTrace>false</trimStackTrace>
  434. <systemPropertyVariables>
  435. <!-- Tell tests that they are being executed in parallel -->
  436. <test.parallel.execution>true</test.parallel.execution>
  437. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  438. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  439. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  440. <!-- Due to a Maven quirk, setting this to just -->
  441. <!-- surefire.forkNumber won't do the parameter -->
  442. <!-- substitution. Putting a prefix in front of it like -->
  443. <!-- "fork-" makes it work. -->
  444. <test.unique.fork.id>fork-000${surefire.forkNumber}</test.unique.fork.id>
  445. <!-- Propagate scale parameters -->
  446. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  447. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  448. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  449. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  450. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  451. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  452. </systemPropertyVariables>
  453. <!-- Some tests cannot run in parallel-->
  454. <includes>
  455. <include>**/azure/ITest*.java</include>
  456. <include>**/azure/**/ITest*.java</include>
  457. </includes>
  458. <excludes>
  459. <exclude>**/azure/ITestNativeFileSystemStatistics.java</exclude>
  460. </excludes>
  461. </configuration>
  462. </execution>
  463. <!-- Do a sequential run for tests that cannot handle -->
  464. <!-- parallel execution. -->
  465. <execution>
  466. <id>sequential-integration-tests-wasb</id>
  467. <goals>
  468. <goal>integration-test</goal>
  469. <goal>verify</goal>
  470. </goals>
  471. <configuration>
  472. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  473. <trimStackTrace>false</trimStackTrace>
  474. <systemPropertyVariables>
  475. <test.parallel.execution>false</test.parallel.execution>
  476. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  477. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  478. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  479. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  480. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  481. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  482. </systemPropertyVariables>
  483. <includes>
  484. <include>**/azure/ITestNativeFileSystemStatistics.java</include>
  485. </includes>
  486. </configuration>
  487. </execution>
  488. </executions>
  489. </plugin>
  490. </plugins>
  491. </build>
  492. </profile>
  493. <profile>
  494. <id>parallel-tests-abfs</id>
  495. <activation>
  496. <property>
  497. <name>parallel-tests</name>
  498. <value>abfs</value>
  499. </property>
  500. </activation>
  501. <build>
  502. <plugins>
  503. <plugin>
  504. <groupId>org.apache.hadoop</groupId>
  505. <artifactId>hadoop-maven-plugins</artifactId>
  506. <executions>
  507. <execution>
  508. <id>parallel-tests-createdir</id>
  509. <goals>
  510. <goal>parallel-tests-createdir</goal>
  511. </goals>
  512. </execution>
  513. </executions>
  514. </plugin>
  515. <plugin>
  516. <groupId>org.apache.maven.plugins</groupId>
  517. <artifactId>maven-surefire-plugin</artifactId>
  518. <executions>
  519. <execution>
  520. <id>default-test</id>
  521. <goals>
  522. <goal>test</goal>
  523. </goals>
  524. <configuration>
  525. <forkCount>${testsThreadCount}</forkCount>
  526. <reuseForks>false</reuseForks>
  527. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  528. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  529. <systemPropertyVariables>
  530. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  531. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  532. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  533. <test.unique.fork.id>fork-000${surefire.forkNumber}</test.unique.fork.id>
  534. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  535. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  536. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  537. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  538. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  539. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  540. </systemPropertyVariables>
  541. <includes>
  542. <include>**/azurebfs/Test*.java</include>
  543. <include>**/azurebfs/**/Test*.java</include>
  544. </includes>
  545. </configuration>
  546. </execution>
  547. </executions>
  548. </plugin>
  549. <plugin>
  550. <groupId>org.apache.maven.plugins</groupId>
  551. <artifactId>maven-failsafe-plugin</artifactId>
  552. <executions>
  553. <execution>
  554. <id>integration-test-abfs-parallel-classesAndMethods</id>
  555. <goals>
  556. <goal>integration-test</goal>
  557. <goal>verify</goal>
  558. </goals>
  559. <configuration>
  560. <forkCount>${testsThreadCount}</forkCount>
  561. <reuseForks>true</reuseForks>
  562. <parallel>both</parallel>
  563. <threadCount>${testsThreadCount}</threadCount>
  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-000${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/ITest*.java</include>
  584. <include>**/azurebfs/**/ITest*.java</include>
  585. </includes>
  586. <excludes>
  587. <exclude>**/azurebfs/contract/ITest*.java</exclude>
  588. <exclude>**/azurebfs/ITestAzureBlobFileSystemE2EScale.java</exclude>
  589. <exclude>**/azurebfs/ITestAbfsReadWriteAndSeek.java</exclude>
  590. <exclude>**/azurebfs/ITestAzureBlobFileSystemListStatus.java</exclude>
  591. <exclude>**/azurebfs/extensions/ITestAbfsDelegationTokens.java</exclude>
  592. <exclude>**/azurebfs/ITestSmallWriteOptimization.java</exclude>
  593. <exclude>**/azurebfs/ITestAbfsStreamStatistics*.java</exclude>
  594. <exclude>**/azurebfs/services/ITestReadBufferManager.java</exclude>
  595. <exclude>**/azurebfs/commit/*.java</exclude>
  596. </excludes>
  597. </configuration>
  598. </execution>
  599. <execution>
  600. <id>integration-test-abfs-parallel-classes</id>
  601. <goals>
  602. <goal>integration-test</goal>
  603. <goal>verify</goal>
  604. </goals>
  605. <configuration>
  606. <forkCount>${testsThreadCount}</forkCount>
  607. <reuseForks>false</reuseForks>
  608. <!--NOTICE: hadoop contract tests methods can not be ran in parallel-->
  609. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  610. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  611. <trimStackTrace>false</trimStackTrace>
  612. <systemPropertyVariables>
  613. <!-- Tell tests that they are being executed in parallel -->
  614. <test.parallel.execution>true</test.parallel.execution>
  615. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  616. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  617. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  618. <!-- Due to a Maven quirk, setting this to just -->
  619. <!-- surefire.forkNumber won't do the parameter -->
  620. <!-- substitution. Putting a prefix in front of it like -->
  621. <!-- "fork-" makes it work. -->
  622. <test.unique.fork.id>fork-000${surefire.forkNumber}</test.unique.fork.id>
  623. <!-- Propagate scale parameters -->
  624. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  625. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  626. </systemPropertyVariables>
  627. <includes>
  628. <include>**/azurebfs/contract/ITest*.java</include>
  629. <include>**/azurebfs/ITestAzureBlobFileSystemE2EScale.java</include>
  630. <include>**/azurebfs/ITestAbfsReadWriteAndSeek.java</include>
  631. <include>**/azurebfs/ITestAzureBlobFileSystemListStatus.java</include>
  632. <include>**/azurebfs/extensions/ITestAbfsDelegationTokens.java</include>
  633. <include>**/azurebfs/ITestSmallWriteOptimization.java</include>
  634. <include>**/azurebfs/services/ITestReadBufferManager.java</include>
  635. <include>**/azurebfs/ITestAbfsStreamStatistics*.java</include>
  636. <include>**/azurebfs/commit/*.java</include>
  637. </includes>
  638. </configuration>
  639. </execution>
  640. </executions>
  641. </plugin>
  642. </plugins>
  643. </build>
  644. </profile>
  645. <profile>
  646. <id>parallel-tests</id>
  647. <activation>
  648. <property>
  649. <name>parallel-tests</name>
  650. <value>both</value>
  651. </property>
  652. </activation>
  653. <build>
  654. <plugins>
  655. <plugin>
  656. <groupId>org.apache.hadoop</groupId>
  657. <artifactId>hadoop-maven-plugins</artifactId>
  658. <executions>
  659. <execution>
  660. <id>parallel-tests-createdir</id>
  661. <goals>
  662. <goal>parallel-tests-createdir</goal>
  663. </goals>
  664. </execution>
  665. </executions>
  666. </plugin>
  667. <plugin>
  668. <groupId>org.apache.maven.plugins</groupId>
  669. <artifactId>maven-surefire-plugin</artifactId>
  670. <executions>
  671. <execution>
  672. <id>default-test</id>
  673. <goals>
  674. <goal>test</goal>
  675. </goals>
  676. <configuration>
  677. <forkCount>${testsThreadCount}</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-000${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>**/Test*.java</include>
  695. </includes>
  696. <excludes>
  697. <exclude>**/TestRollingWindowAverage*.java</exclude>
  698. </excludes>
  699. </configuration>
  700. </execution>
  701. <execution>
  702. <id>serialized-test</id>
  703. <goals>
  704. <goal>test</goal>
  705. </goals>
  706. <configuration>
  707. <forkCount>1</forkCount>
  708. <reuseForks>false</reuseForks>
  709. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  710. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  711. <systemPropertyVariables>
  712. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  713. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  714. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  715. <test.unique.fork.id>fork-000${surefire.forkNumber}</test.unique.fork.id>
  716. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  717. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  718. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  719. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  720. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  721. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  722. </systemPropertyVariables>
  723. <includes>
  724. <include>**/TestRollingWindowAverage*.java</include>
  725. </includes>
  726. </configuration>
  727. </execution>
  728. </executions>
  729. </plugin>
  730. <plugin>
  731. <groupId>org.apache.maven.plugins</groupId>
  732. <artifactId>maven-failsafe-plugin</artifactId>
  733. <executions>
  734. <execution>
  735. <id>default-integration-test</id>
  736. <goals>
  737. <goal>integration-test</goal>
  738. <goal>verify</goal>
  739. </goals>
  740. <configuration>
  741. <forkCount>${testsThreadCount}</forkCount>
  742. <reuseForks>false</reuseForks>
  743. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  744. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  745. <trimStackTrace>false</trimStackTrace>
  746. <systemPropertyVariables>
  747. <!-- Tell tests that they are being executed in parallel -->
  748. <test.parallel.execution>true</test.parallel.execution>
  749. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  750. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  751. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  752. <!-- Due to a Maven quirk, setting this to just -->
  753. <!-- surefire.forkNumber won't do the parameter -->
  754. <!-- substitution. Putting a prefix in front of it like -->
  755. <!-- "fork-" makes it work. -->
  756. <test.unique.fork.id>fork-000${surefire.forkNumber}</test.unique.fork.id>
  757. <!-- Propagate scale parameters -->
  758. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  759. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  760. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  761. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  762. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  763. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  764. </systemPropertyVariables>
  765. <!-- Some tests cannot run in parallel. Tests that cover -->
  766. <!-- access to the root directory must run in isolation -->
  767. <!-- from anything else that could modify the bucket. -->
  768. <!-- azure tests that cover multi-part upload must run in -->
  769. <!-- isolation, because the file system is configured to -->
  770. <!-- purge existing multi-part upload data on -->
  771. <!-- initialization. MiniYARNCluster has not yet been -->
  772. <!-- changed to handle parallel test execution gracefully. -->
  773. <!-- Exclude all of these tests from parallel execution, -->
  774. <!-- and instead run them sequentially in a separate -->
  775. <!-- Surefire execution step later. -->
  776. <includes>
  777. <include>**/ITest*.java</include>
  778. </includes>
  779. <excludes>
  780. <exclude>**/ITestFileSystemOperationsExceptionHandlingMultiThreaded.java</exclude>
  781. <exclude>**/ITestFileSystemOperationsWithThreads.java</exclude>
  782. <exclude>**/ITestOutOfBandAzureBlobOperationsLive.java</exclude>
  783. <exclude>**/ITestNativeAzureFileSystemAuthorizationWithOwner.java</exclude>
  784. <exclude>**/ITestNativeAzureFileSystemConcurrencyLive.java</exclude>
  785. <exclude>**/ITestNativeAzureFileSystemLive.java</exclude>
  786. <exclude>**/ITestNativeAzureFSPageBlobLive.java</exclude>
  787. <exclude>**/ITestAzureBlobFileSystemRandomRead.java</exclude>
  788. <exclude>**/ITestWasbRemoteCallHelper.java</exclude>
  789. <exclude>**/ITestBlockBlobInputStream.java</exclude>
  790. <exclude>**/ITestWasbAbfsCompatibility.java</exclude>
  791. <exclude>**/ITestNativeFileSystemStatistics.java</exclude>
  792. </excludes>
  793. </configuration>
  794. </execution>
  795. <!-- Do a sequential run for tests that cannot handle -->
  796. <!-- parallel execution. -->
  797. <execution>
  798. <id>sequential-integration-tests</id>
  799. <goals>
  800. <goal>integration-test</goal>
  801. <goal>verify</goal>
  802. </goals>
  803. <configuration>
  804. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  805. <trimStackTrace>false</trimStackTrace>
  806. <systemPropertyVariables>
  807. <test.parallel.execution>false</test.parallel.execution>
  808. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  809. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  810. <fs.azure.scale.test.huge.huge.partitionsize>${fs.azure.scale.test.huge.partitionsize}</fs.azure.scale.test.huge.huge.partitionsize>
  811. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  812. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  813. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  814. </systemPropertyVariables>
  815. <includes>
  816. <include>**/ITestWasbAbfsCompatibility.java</include>
  817. <include>**/ITestFileSystemOperationsExceptionHandlingMultiThreaded.java</include>
  818. <include>**/ITestFileSystemOperationsWithThreads.java</include>
  819. <include>**/ITestOutOfBandAzureBlobOperationsLive.java</include>
  820. <include>**/ITestNativeAzureFileSystemAuthorizationWithOwner.java</include>
  821. <include>**/ITestNativeAzureFileSystemConcurrencyLive.java</include>
  822. <include>**/ITestNativeAzureFileSystemLive.java</include>
  823. <include>**/ITestNativeAzureFSPageBlobLive.java</include>
  824. <include>**/ITestAzureBlobFileSystemRandomRead.java</include>
  825. <include>**/ITestWasbRemoteCallHelper.java</include>
  826. <include>**/ITestBlockBlobInputStream.java</include>
  827. <include>**/ITestNativeFileSystemStatistics.java</include>
  828. </includes>
  829. </configuration>
  830. </execution>
  831. </executions>
  832. </plugin>
  833. </plugins>
  834. </build>
  835. </profile>
  836. <profile>
  837. <id>sequential-tests</id>
  838. <activation>
  839. <property>
  840. <name>!parallel-tests</name>
  841. </property>
  842. </activation>
  843. <build>
  844. <plugins>
  845. <plugin>
  846. <groupId>org.apache.maven.plugins</groupId>
  847. <artifactId>maven-failsafe-plugin</artifactId>
  848. <executions>
  849. <execution>
  850. <goals>
  851. <goal>integration-test</goal>
  852. <goal>verify</goal>
  853. </goals>
  854. <configuration>
  855. <systemPropertyVariables>
  856. <!-- Propagate scale parameters -->
  857. <fs.azure.scale.test.enabled>${fs.azure.scale.test.enabled}</fs.azure.scale.test.enabled>
  858. <fs.azure.scale.test.huge.filesize>${fs.azure.scale.test.huge.filesize}</fs.azure.scale.test.huge.filesize>
  859. <fs.azure.scale.test.timeout>${fs.azure.scale.test.timeout}</fs.azure.scale.test.timeout>
  860. <fs.azure.scale.test.list.performance.threads>${fs.azure.scale.test.list.performance.threads}</fs.azure.scale.test.list.performance.threads>
  861. <fs.azure.scale.test.list.performance.files>${fs.azure.scale.test.list.performance.files}</fs.azure.scale.test.list.performance.files>
  862. </systemPropertyVariables>
  863. <forkedProcessTimeoutInSeconds>${fs.azure.scale.test.timeout}</forkedProcessTimeoutInSeconds>
  864. <trimStackTrace>false</trimStackTrace>
  865. </configuration>
  866. </execution>
  867. </executions>
  868. </plugin>
  869. </plugins>
  870. </build>
  871. </profile>
  872. <!-- Turn on scale tests-->
  873. <profile>
  874. <id>scale</id>
  875. <activation>
  876. <property>
  877. <name>scale</name>
  878. </property>
  879. </activation>
  880. <properties>
  881. <fs.azure.scale.test.enabled>true</fs.azure.scale.test.enabled>
  882. </properties>
  883. </profile>
  884. </profiles>
  885. </project>