pom.xml.versionsBackup 45 KB

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