diff --git a/.insights.yml b/.insights.yml new file mode 100644 index 0000000..b12d817 --- /dev/null +++ b/.insights.yml @@ -0,0 +1,8 @@ +--- +team: +- id: "19708" +product: +- {} +languages: [] +cloud: +- autoRestart: false diff --git a/.looper.yml b/.looper.yml new file mode 100644 index 0000000..53865a0 --- /dev/null +++ b/.looper.yml @@ -0,0 +1,75 @@ +envs: + global: + variables: + component: "" # set inside main flows + packaging: "jar" + proximityBaseURL: "" + snapshotProximityRepoID: "pangaea_snapshots" + snapshotProximityRepoURL: "${proximityBaseURL}/${snapshotProximityRepoID}" + +tools: + jdk: 8 + maven: 3.5.0 + +triggers: + - manual: Run default + - manual: + name: Deploy Snapshot + call: deployAllSnapshots + - manual: + name: Deploy Release + call: deployAllReleases + +flows: + default: + - call: versionsCheck + - exposeVars(maven) + - var(version = "${MAVEN_VERSION}") + - call: buildAll + + versionsCheck: + - (name Versions init) echo "Versions" + - (name JDK Version) java -version + - (name Maven version) mvn -v + + # ${version} must already be set + buildAll: + - shell (name Version file): 'echo "${version}" > VERSION' + - var(component = "hadoop-openstack") + - call: buildComponent + + buildComponent: + - shell(name Component intro): echo "Building ${component}" + - shell(name Component jar build): mvn clean package -DskipTests + - shell(name Component jar copy): cp target/${component}-${version}.${packaging} /tmp/${component}-${version}.${packaging} + + deployAllSnapshots: + - call: versionsCheck + - exposeVars(maven) + - var(version = "${MAVEN_VERSION}") + - call: buildAll + - var(component = "hadoop-openstack") + - call: deploySnapshot + + deploySnapshot: + - var(jarPath = "/tmp/${component}-${version}.${packaging}") + - shell (name Maven init): echo "Deploying ${component} snapshot to Proximity ${version}" + - shell (name Maven deploy-file): mvn -B clean deploy:deploy-file -DartifactId="${component}" -DrepositoryId="${snapshotProximityRepoID}" -Durl="${snapshotProximityRepoURL}" -Dfile="${jarPath}" -Dpackaging="${packaging}" -DpomFile=pom.xml + + deployAllReleases: + - call: versionsCheck + - exposeVars(maven) + - var(version = '%{MAVEN_VERSION.replace("-SNAPSHOT", "")}') + - call: buildAll + - call: generateRelease + - var(component = "hadoop-openstack") + - call: deployRelease + + generateRelease: + - shell (name Maven release-title): echo "Preparing the release" + - (name Maven release): mvn -B clean release:prepare -DtagNameFormat='@{project.version}' + + deployRelease: + - var(jarPath = "/tmp/${component}-${version}.${packaging}") + - shell (name Maven init): echo "Deploying ${component} releases to Proximity ${version}" + - shell (name Maven release-deploy): mvn -B clean deploy:deploy-file -DartifactId="${component}" -DrepositoryId="${releaseProximityRepoID}" -Durl="${releaseProximityRepoURL}" -Dfile="${jarPath}" -Dpackaging="${packaging}" -DupdateReleaseInfo=true -Dversion="${version}" -DpomFile=pom.xml diff --git a/LICENSE b/LICENSE index 088b52a..eca28e5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,1042 +1,14 @@ +Copyright (c) 2018-present, Walmart Inc. - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +http://www.apache.org/licenses/LICENSE-2.0 - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - - -APACHE TOMCAT SUBCOMPONENTS: - -Apache Tomcat includes a number of subcomponents with separate copyright notices -and license terms. Your use of these subcomponents is subject to the terms and -conditions of the following licenses. - - -For the Eclipse JDT Java compiler: - -Eclipse Public License - v 1.0 - -THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC -LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM -CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - -1. DEFINITIONS - -"Contribution" means: - -a) in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and - -b) in the case of each subsequent Contributor: - -i) changes to the Program, and - -ii) additions to the Program; - -where such changes and/or additions to the Program originate from and are -distributed by that particular Contributor. A Contribution 'originates' from a -Contributor if it was added to the Program by such Contributor itself or anyone -acting on such Contributor's behalf. Contributions do not include additions to -the Program which: (i) are separate modules of software distributed in -conjunction with the Program under their own license agreement, and (ii) are not -derivative works of the Program. - -"Contributor" means any person or entity that distributes the Program. - -"Licensed Patents" mean patent claims licensable by a Contributor which are -necessarily infringed by the use or sale of its Contribution alone or when -combined with the Program. - -"Program" means the Contributions distributed in accordance with this Agreement. - -"Recipient" means anyone who receives the Program under this Agreement, -including all Contributors. - -2. GRANT OF RIGHTS - -a) Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide, royalty-free copyright license to -reproduce, prepare derivative works of, publicly display, publicly perform, -distribute and sublicense the Contribution of such Contributor, if any, and such -derivative works, in source code and object code form. - -b) Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed -Patents to make, use, sell, offer to sell, import and otherwise transfer the -Contribution of such Contributor, if any, in source code and object code form. -This patent license shall apply to the combination of the Contribution and the -Program if, at the time the Contribution is added by the Contributor, such -addition of the Contribution causes such combination to be covered by the -Licensed Patents. The patent license shall not apply to any other combinations -which include the Contribution. No hardware per se is licensed hereunder. - -c) Recipient understands that although each Contributor grants the licenses to -its Contributions set forth herein, no assurances are provided by any -Contributor that the Program does not infringe the patent or other intellectual -property rights of any other entity. Each Contributor disclaims any liability to -Recipient for claims brought by any other entity based on infringement of -intellectual property rights or otherwise. As a condition to exercising the -rights and licenses granted hereunder, each Recipient hereby assumes sole -responsibility to secure any other intellectual property rights needed, if any. -For example, if a third party patent license is required to allow Recipient to -distribute the Program, it is Recipient's responsibility to acquire that license -before distributing the Program. - -d) Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. - -3. REQUIREMENTS - -A Contributor may choose to distribute the Program in object code form under its -own license agreement, provided that: - -a) it complies with the terms and conditions of this Agreement; and - -b) its license agreement: - -i) effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title and -non-infringement, and implied warranties or conditions of merchantability and -fitness for a particular purpose; - -ii) effectively excludes on behalf of all Contributors all liability for -damages, including direct, indirect, special, incidental and consequential -damages, such as lost profits; - -iii) states that any provisions which differ from this Agreement are offered by -that Contributor alone and not by any other party; and - -iv) states that source code for the Program is available from such Contributor, -and informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange. - -When the Program is made available in source code form: - -a) it must be made available under this Agreement; and - -b) a copy of this Agreement must be included with each copy of the Program. - -Contributors may not remove or alter any copyright notices contained within the -Program. - -Each Contributor must identify itself as the originator of its Contribution, if -any, in a manner that reasonably allows subsequent Recipients to identify the -originator of the Contribution. - -4. COMMERCIAL DISTRIBUTION - -Commercial distributors of software may accept certain responsibilities with -respect to end users, business partners and the like. While this license is -intended to facilitate the commercial use of the Program, the Contributor who -includes the Program in a commercial product offering should do so in a manner -which does not create potential liability for other Contributors. Therefore, if -a Contributor includes the Program in a commercial product offering, such -Contributor ("Commercial Contributor") hereby agrees to defend and indemnify -every other Contributor ("Indemnified Contributor") against any losses, damages -and costs (collectively "Losses") arising from claims, lawsuits and other legal -actions brought by a third party against the Indemnified Contributor to the -extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor -to control, and cooperate with the Commercial Contributor in, the defense and -any related settlement negotiations. The Indemnified Contributor may -participate in any such claim at its own expense. - -For example, a Contributor might include the Program in a commercial product -offering, Product X. That Contributor is then a Commercial Contributor. If that -Commercial Contributor then makes performance claims, or offers warranties -related to Product X, those performance claims and warranties are such -Commercial Contributor's responsibility alone. Under this section, the -Commercial Contributor would have to defend claims against the other -Contributors related to those performance claims and warranties, and if a court -requires any other Contributor to pay any damages as a result, the Commercial -Contributor must pay those damages. - -5. NO WARRANTY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR -IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, -NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each -Recipient is solely responsible for determining the appropriateness of using and -distributing the Program and assumes all risks associated with its exercise of -rights under this Agreement , including but not limited to the risks and costs -of program errors, compliance with applicable laws, damage to or loss of data, -programs or equipment, and unavailability or interruption of operations. - -6. DISCLAIMER OF LIABILITY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY -CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST -PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS -GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -7. GENERAL - -If any provision of this Agreement is invalid or unenforceable under applicable -law, it shall not affect the validity or enforceability of the remainder of the -terms of this Agreement, and without further action by the parties hereto, such -provision shall be reformed to the minimum extent necessary to make such -provision valid and enforceable. - -If Recipient institutes patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Program itself -(excluding combinations of the Program with other software or hardware) -infringes such Recipient's patent(s), then such Recipient's rights granted under -Section 2(b) shall terminate as of the date such litigation is filed. - -All Recipient's rights under this Agreement shall terminate if it fails to -comply with any of the material terms or conditions of this Agreement and does -not cure such failure in a reasonable period of time after becoming aware of -such noncompliance. If all Recipient's rights under this Agreement terminate, -Recipient agrees to cease use and distribution of the Program as soon as -reasonably practicable. However, Recipient's obligations under this Agreement -and any licenses granted by Recipient relating to the Program shall continue and -survive. - -Everyone is permitted to copy and distribute copies of this Agreement, but in -order to avoid inconsistency the Agreement is copyrighted and may only be -modified in the following manner. The Agreement Steward reserves the right to -publish new versions (including revisions) of this Agreement from time to time. -No one other than the Agreement Steward has the right to modify this Agreement. -The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation -may assign the responsibility to serve as the Agreement Steward to a suitable -separate entity. Each new version of the Agreement will be given a -distinguishing version number. The Program (including Contributions) may always -be distributed subject to the version of the Agreement under which it was -received. In addition, after a new version of the Agreement is published, -Contributor may elect to distribute the Program (including its Contributions) -under the new version. Except as expressly stated in Sections 2(a) and 2(b) -above, Recipient receives no rights or licenses to the intellectual property of -any Contributor under this Agreement, whether expressly, by implication, -estoppel or otherwise. All rights in the Program not expressly granted under -this Agreement are reserved. - -This Agreement is governed by the laws of the State of New York and the -intellectual property laws of the United States of America. No party to this -Agreement will bring a legal action under this Agreement more than one year -after the cause of action arose. Each party waives its rights to a jury trial in -any resulting litigation. - - -For the Windows Installer component: - - * All NSIS source code, plug-ins, documentation, examples, header files and - graphics, with the exception of the compression modules and where - otherwise noted, are licensed under the zlib/libpng license. - * The zlib compression module for NSIS is licensed under the zlib/libpng - license. - * The bzip2 compression module for NSIS is licensed under the bzip2 license. - * The lzma compression module for NSIS is licensed under the Common Public - License version 1.0. - -zlib/libpng license - -This software is provided 'as-is', without any express or implied warranty. In -no event will the authors be held liable for any damages arising from the use of -this software. - -Permission is granted to anyone to use this software for any purpose, including -commercial applications, and to alter it and redistribute it freely, subject to -the following restrictions: - - 1. The origin of this software must not be misrepresented; you must not claim - that you wrote the original software. If you use this software in a - product, an acknowledgment in the product documentation would be - appreciated but is not required. - 2. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - 3. This notice may not be removed or altered from any source distribution. - -bzip2 license - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - 2. The origin of this software must not be misrepresented; you must not claim - that you wrote the original software. If you use this software in a - product, an acknowledgment in the product documentation would be - appreciated but is not required. - 3. Altered source versions must be plainly marked as such, and must not be - misrepresented as being the original software. - 4. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT -SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT -OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING -IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY -OF SUCH DAMAGE. - -Julian Seward, Cambridge, UK. - -jseward@acm.org -Common Public License version 1.0 - -THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC -LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM -CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - -1. DEFINITIONS - -"Contribution" means: - -a) in the case of the initial Contributor, the initial code and documentation -distributed under this Agreement, and b) in the case of each subsequent -Contributor: - -i) changes to the Program, and - -ii) additions to the Program; - -where such changes and/or additions to the Program originate from and are -distributed by that particular Contributor. A Contribution 'originates' from a -Contributor if it was added to the Program by such Contributor itself or anyone -acting on such Contributor's behalf. Contributions do not include additions to -the Program which: (i) are separate modules of software distributed in -conjunction with the Program under their own license agreement, and (ii) are not -derivative works of the Program. - -"Contributor" means any person or entity that distributes the Program. - -"Licensed Patents " mean patent claims licensable by a Contributor which are -necessarily infringed by the use or sale of its Contribution alone or when -combined with the Program. - -"Program" means the Contributions distributed in accordance with this Agreement. - -"Recipient" means anyone who receives the Program under this Agreement, -including all Contributors. - -2. GRANT OF RIGHTS - -a) Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide, royalty-free copyright license to -reproduce, prepare derivative works of, publicly display, publicly perform, -distribute and sublicense the Contribution of such Contributor, if any, and such -derivative works, in source code and object code form. - -b) Subject to the terms of this Agreement, each Contributor hereby grants -Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed -Patents to make, use, sell, offer to sell, import and otherwise transfer the -Contribution of such Contributor, if any, in source code and object code form. -This patent license shall apply to the combination of the Contribution and the -Program if, at the time the Contribution is added by the Contributor, such -addition of the Contribution causes such combination to be covered by the -Licensed Patents. The patent license shall not apply to any other combinations -which include the Contribution. No hardware per se is licensed hereunder. - -c) Recipient understands that although each Contributor grants the licenses to -its Contributions set forth herein, no assurances are provided by any -Contributor that the Program does not infringe the patent or other intellectual -property rights of any other entity. Each Contributor disclaims any liability to -Recipient for claims brought by any other entity based on infringement of -intellectual property rights or otherwise. As a condition to exercising the -rights and licenses granted hereunder, each Recipient hereby assumes sole -responsibility to secure any other intellectual property rights needed, if any. -For example, if a third party patent license is required to allow Recipient to -distribute the Program, it is Recipient's responsibility to acquire that license -before distributing the Program. - -d) Each Contributor represents that to its knowledge it has sufficient copyright -rights in its Contribution, if any, to grant the copyright license set forth in -this Agreement. - -3. REQUIREMENTS - -A Contributor may choose to distribute the Program in object code form under its -own license agreement, provided that: - -a) it complies with the terms and conditions of this Agreement; and - -b) its license agreement: - -i) effectively disclaims on behalf of all Contributors all warranties and -conditions, express and implied, including warranties or conditions of title and -non-infringement, and implied warranties or conditions of merchantability and -fitness for a particular purpose; - -ii) effectively excludes on behalf of all Contributors all liability for -damages, including direct, indirect, special, incidental and consequential -damages, such as lost profits; - -iii) states that any provisions which differ from this Agreement are offered by -that Contributor alone and not by any other party; and - -iv) states that source code for the Program is available from such Contributor, -and informs licensees how to obtain it in a reasonable manner on or through a -medium customarily used for software exchange. - -When the Program is made available in source code form: - -a) it must be made available under this Agreement; and - -b) a copy of this Agreement must be included with each copy of the Program. - -Contributors may not remove or alter any copyright notices contained within the -Program. - -Each Contributor must identify itself as the originator of its Contribution, if -any, in a manner that reasonably allows subsequent Recipients to identify the -originator of the Contribution. - -4. COMMERCIAL DISTRIBUTION - -Commercial distributors of software may accept certain responsibilities with -respect to end users, business partners and the like. While this license is -intended to facilitate the commercial use of the Program, the Contributor who -includes the Program in a commercial product offering should do so in a manner -which does not create potential liability for other Contributors. Therefore, if -a Contributor includes the Program in a commercial product offering, such -Contributor ("Commercial Contributor") hereby agrees to defend and indemnify -every other Contributor ("Indemnified Contributor") against any losses, damages -and costs (collectively "Losses") arising from claims, lawsuits and other legal -actions brought by a third party against the Indemnified Contributor to the -extent caused by the acts or omissions of such Commercial Contributor in -connection with its distribution of the Program in a commercial product -offering. The obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In order -to qualify, an Indemnified Contributor must: a) promptly notify the Commercial -Contributor in writing of such claim, and b) allow the Commercial Contributor to -control, and cooperate with the Commercial Contributor in, the defense and any -related settlement negotiations. The Indemnified Contributor may participate in -any such claim at its own expense. - -For example, a Contributor might include the Program in a commercial product -offering, Product X. That Contributor is then a Commercial Contributor. If that -Commercial Contributor then makes performance claims, or offers warranties -related to Product X, those performance claims and warranties are such -Commercial Contributor's responsibility alone. Under this section, the -Commercial Contributor would have to defend claims against the other -Contributors related to those performance claims and warranties, and if a court -requires any other Contributor to pay any damages as a result, the Commercial -Contributor must pay those damages. - -5. NO WARRANTY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR -IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, -NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each -Recipient is solely responsible for determining the appropriateness of using and -distributing the Program and assumes all risks associated with its exercise of -rights under this Agreement, including but not limited to the risks and costs of -program errors, compliance with applicable laws, damage to or loss of data, -programs or equipment, and unavailability or interruption of operations. - -6. DISCLAIMER OF LIABILITY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY -CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST -PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, -STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS -GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -7. GENERAL - -If any provision of this Agreement is invalid or unenforceable under applicable -law, it shall not affect the validity or enforceability of the remainder of the -terms of this Agreement, and without further action by the parties hereto, such -provision shall be reformed to the minimum extent necessary to make such -provision valid and enforceable. - -If Recipient institutes patent litigation against a Contributor with respect to -a patent applicable to software (including a cross-claim or counterclaim in a -lawsuit), then any patent licenses granted by that Contributor to such Recipient -under this Agreement shall terminate as of the date such litigation is filed. In -addition, if Recipient institutes patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that the Program -itself (excluding combinations of the Program with other software or hardware) -infringes such Recipient's patent(s), then such Recipient's rights granted under -Section 2(b) shall terminate as of the date such litigation is filed. - -All Recipient's rights under this Agreement shall terminate if it fails to -comply with any of the material terms or conditions of this Agreement and does -not cure such failure in a reasonable period of time after becoming aware of -such noncompliance. If all Recipient's rights under this Agreement terminate, -Recipient agrees to cease use and distribution of the Program as soon as -reasonably practicable. However, Recipient's obligations under this Agreement -and any licenses granted by Recipient relating to the Program shall continue and -survive. - -Everyone is permitted to copy and distribute copies of this Agreement, but in -order to avoid inconsistency the Agreement is copyrighted and may only be -modified in the following manner. The Agreement Steward reserves the right to -publish new versions (including revisions) of this Agreement from time to time. -No one other than the Agreement Steward has the right to modify this Agreement. -IBM is the initial Agreement Steward. IBM may assign the responsibility to serve -as the Agreement Steward to a suitable separate entity. Each new version of the -Agreement will be given a distinguishing version number. The Program (including -Contributions) may always be distributed subject to the version of the Agreement -under which it was received. In addition, after a new version of the Agreement -is published, Contributor may elect to distribute the Program (including its -Contributions) under the new version. Except as expressly stated in Sections -2(a) and 2(b) above, Recipient receives no rights or licenses to the -intellectual property of any Contributor under this Agreement, whether -expressly, by implication, estoppel or otherwise. All rights in the Program not -expressly granted under this Agreement are reserved. - -This Agreement is governed by the laws of the State of New York and the -intellectual property laws of the United States of America. No party to this -Agreement will bring a legal action under this Agreement more than one year -after the cause of action arose. Each party waives its rights to a jury trial in -any resulting litigation. - -Special exception for LZMA compression module - -Igor Pavlov and Amir Szekely, the authors of the LZMA compression module for -NSIS, expressly permit you to statically or dynamically link your code (or bind -by name) to the files from the LZMA compression module for NSIS without -subjecting your linked code to the terms of the Common Public license version -1.0. Any modifications or additions to files from the LZMA compression module -for NSIS, however, are subject to the terms of the Common Public License version -1.0. - - -For the following XML Schemas for Java EE Deployment Descriptors: - - javaee_5.xsd - - javaee_web_services_1_2.xsd - - javaee_web_services_client_1_2.xsd - -COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 - -1. Definitions. - - 1.1. Contributor. means each individual or entity that creates or contributes - to the creation of Modifications. - - 1.2. Contributor Version. means the combination of the Original Software, - prior Modifications used by a Contributor (if any), and the - Modifications made by that particular Contributor. - - 1.3. Covered Software. means (a) the Original Software, or (b) Modifications, - or (c) the combination of files containing Original Software with files - containing Modifications, in each case including portions thereof. - - 1.4. Executable. means the Covered Software in any form other than Source - Code. - - 1.5. Initial Developer. means the individual or entity that first makes - Original Software available under this License. - - 1.6. Larger Work. means a work which combines Covered Software or portions - thereof with code not governed by the terms of this License. - - 1.7. License. means this document. - - 1.8. Licensable. means having the right to grant, to the maximum extent - possible, whether at the time of the initial grant or subsequently - acquired, any and all of the rights conveyed herein. - - 1.9. Modifications. means the Source Code and Executable form of any of the - following: - - A. Any file that results from an addition to, deletion from or - modification of the contents of a file containing Original Software - or previous Modifications; - - B. Any new file that contains any part of the Original Software or - previous Modification; or - - C. Any new file that is contributed or otherwise made available under - the terms of this License. - - 1.10. Original Software. means the Source Code and Executable form of - computer software code that is originally released under this License. - - 1.11. Patent Claims. means any patent claim(s), now owned or hereafter - acquired, including without limitation, method, process, and apparatus - claims, in any patent Licensable by grantor. - - 1.12. Source Code. means (a) the common form of computer software code in - which modifications are made and (b) associated documentation included - in or with such code. - - 1.13. You. (or .Your.) means an individual or a legal entity exercising - rights under, and complying with all of the terms of, this License. For - legal entities, .You. includes any entity which controls, is controlled - by, or is under common control with You. For purposes of this - definition, .control. means (a) the power, direct or indirect, to cause - the direction or management of such entity, whether by contract or - otherwise, or (b) ownership of more than fifty percent (50%) of the - outstanding shares or beneficial ownership of such entity. - -2. License Grants. - - 2.1. The Initial Developer Grant. - - Conditioned upon Your compliance with Section 3.1 below and subject to - third party intellectual property claims, the Initial Developer hereby - grants You a world-wide, royalty-free, non-exclusive license: - - (a) under intellectual property rights (other than patent or trademark) - Licensable by Initial Developer, to use, reproduce, modify, display, - perform, sublicense and distribute the Original Software (or - portions thereof), with or without Modifications, and/or as part of - a Larger Work; and - - (b) under Patent Claims infringed by the making, using or selling of - Original Software, to make, have made, use, practice, sell, and - offer for sale, and/or otherwise dispose of the Original Software - (or portions thereof). - - (c) The licenses granted in Sections 2.1(a) and (b) are effective on the - date Initial Developer first distributes or otherwise makes the - Original Software available to a third party under the terms of this - License. - - (d) Notwithstanding Section 2.1(b) above, no patent license is granted: - (1) for code that You delete from the Original Software, or (2) for - infringements caused by: (i) the modification of the Original - Software, or (ii) the combination of the Original Software with - other software or devices. - - 2.2. Contributor Grant. - - Conditioned upon Your compliance with Section 3.1 below and subject to third - party intellectual property claims, each Contributor hereby grants You a - world-wide, royalty-free, non-exclusive license: - - (a) under intellectual property rights (other than patent or trademark) - Licensable by Contributor to use, reproduce, modify, display, - perform, sublicense and distribute the Modifications created by such - Contributor (or portions thereof), either on an unmodified basis, - with other Modifications, as Covered Software and/or as part of a - Larger Work; and - - (b) under Patent Claims infringed by the making, using, or selling of - Modifications made by that Contributor either alone and/or in - combination with its Contributor Version (or portions of such - combination), to make, use, sell, offer for sale, have made, and/or - otherwise dispose of: (1) Modifications made by that Contributor (or - portions thereof); and (2) the combination of Modifications made by - that Contributor with its Contributor Version (or portions of such - combination). - - (c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on - the date Contributor first distributes or otherwise makes the - Modifications available to a third party. - - (d) Notwithstanding Section 2.2(b) above, no patent license is granted: - (1) for any code that Contributor has deleted from the Contributor - Version; (2) for infringements caused by: (i) third party - modifications of Contributor Version, or (ii) the combination of - Modifications made by that Contributor with other software (except - as part of the Contributor Version) or other devices; or (3) under - Patent Claims infringed by Covered Software in the absence of - Modifications made by that Contributor. - -3. Distribution Obligations. - - 3.1. Availability of Source Code. - Any Covered Software that You distribute or otherwise make available in - Executable form must also be made available in Source Code form and that - Source Code form must be distributed only under the terms of this License. - You must include a copy of this License with every copy of the Source Code - form of the Covered Software You distribute or otherwise make available. - You must inform recipients of any such Covered Software in Executable form - as to how they can obtain such Covered Software in Source Code form in a - reasonable manner on or through a medium customarily used for software - exchange. - - 3.2. Modifications. - The Modifications that You create or to which You contribute are governed - by the terms of this License. You represent that You believe Your - Modifications are Your original creation(s) and/or You have sufficient - rights to grant the rights conveyed by this License. - - 3.3. Required Notices. - You must include a notice in each of Your Modifications that identifies - You as the Contributor of the Modification. You may not remove or alter - any copyright, patent or trademark notices contained within the Covered - Software, or any notices of licensing or any descriptive text giving - attribution to any Contributor or the Initial Developer. - - 3.4. Application of Additional Terms. - You may not offer or impose any terms on any Covered Software in Source - Code form that alters or restricts the applicable version of this License - or the recipients. rights hereunder. You may choose to offer, and to - charge a fee for, warranty, support, indemnity or liability obligations to - one or more recipients of Covered Software. However, you may do so only on - Your own behalf, and not on behalf of the Initial Developer or any - Contributor. You must make it absolutely clear that any such warranty, - support, indemnity or liability obligation is offered by You alone, and - You hereby agree to indemnify the Initial Developer and every Contributor - for any liability incurred by the Initial Developer or such Contributor as - a result of warranty, support, indemnity or liability terms You offer. - - 3.5. Distribution of Executable Versions. - You may distribute the Executable form of the Covered Software under the - terms of this License or under the terms of a license of Your choice, - which may contain terms different from this License, provided that You are - in compliance with the terms of this License and that the license for the - Executable form does not attempt to limit or alter the recipient.s rights - in the Source Code form from the rights set forth in this License. If You - distribute the Covered Software in Executable form under a different - license, You must make it absolutely clear that any terms which differ - from this License are offered by You alone, not by the Initial Developer - or Contributor. You hereby agree to indemnify the Initial Developer and - every Contributor for any liability incurred by the Initial Developer or - such Contributor as a result of any such terms You offer. - - 3.6. Larger Works. - You may create a Larger Work by combining Covered Software with other code - not governed by the terms of this License and distribute the Larger Work - as a single product. In such a case, You must make sure the requirements - of this License are fulfilled for the Covered Software. - -4. Versions of the License. - - 4.1. New Versions. - Sun Microsystems, Inc. is the initial license steward and may publish - revised and/or new versions of this License from time to time. Each - version will be given a distinguishing version number. Except as provided - in Section 4.3, no one other than the license steward has the right to - modify this License. - - 4.2. Effect of New Versions. - You may always continue to use, distribute or otherwise make the Covered - Software available under the terms of the version of the License under - which You originally received the Covered Software. If the Initial - Developer includes a notice in the Original Software prohibiting it from - being distributed or otherwise made available under any subsequent version - of the License, You must distribute and make the Covered Software - available under the terms of the version of the License under which You - originally received the Covered Software. Otherwise, You may also choose - to use, distribute or otherwise make the Covered Software available under - the terms of any subsequent version of the License published by the - license steward. - - 4.3. Modified Versions. - When You are an Initial Developer and You want to create a new license for - Your Original Software, You may create and use a modified version of this - License if You: (a) rename the license and remove any references to the - name of the license steward (except to note that the license differs from - this License); and (b) otherwise make it clear that the license contains - terms which differ from this License. - -5. DISCLAIMER OF WARRANTY. - - COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN .AS IS. BASIS, WITHOUT - WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT - LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, - MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK - AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD - ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL - DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY - SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN - ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS AUTHORIZED - HEREUNDER EXCEPT UNDER THIS DISCLAIMER. - -6. TERMINATION. - - 6.1. This License and the rights granted hereunder will terminate - automatically if You fail to comply with terms herein and fail to - cure such breach within 30 days of becoming aware of the breach. - Provisions which, by their nature, must remain in effect beyond the - termination of this License shall survive. - - 6.2. If You assert a patent infringement claim (excluding declaratory - judgment actions) against Initial Developer or a Contributor (the - Initial Developer or Contributor against whom You assert such claim - is referred to as .Participant.) alleging that the Participant - Software (meaning the Contributor Version where the Participant is a - Contributor or the Original Software where the Participant is the - Initial Developer) directly or indirectly infringes any patent, then - any and all rights granted directly or indirectly to You by such - Participant, the Initial Developer (if the Initial Developer is not - the Participant) and all Contributors under Sections 2.1 and/or 2.2 - of this License shall, upon 60 days notice from Participant terminate - prospectively and automatically at the expiration of such 60 day - notice period, unless if within such 60 day period You withdraw Your - claim with respect to the Participant Software against such - Participant either unilaterally or pursuant to a written agreement - with Participant. - - 6.3. In the event of termination under Sections 6.1 or 6.2 above, all end - user licenses that have been validly granted by You or any - distributor hereunder prior to termination (excluding licenses - granted to You by any distributor) shall survive termination. - -7. LIMITATION OF LIABILITY. - - UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING - NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY - OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF - ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, - INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT - LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, - COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR - LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF - SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR - DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY.S NEGLIGENCE TO THE EXTENT - APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE - EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS - EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. - -8. U.S. GOVERNMENT END USERS. - - The Covered Software is a .commercial item,. as that term is defined in 48 - C.F.R. 2.101 (Oct. 1995), consisting of .commercial computer software. (as - that term is defined at 48 C.F.R. ? 252.227-7014(a)(1)) and commercial - computer software documentation. as such terms are used in 48 C.F.R. 12.212 - (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 - through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered - Software with only those rights set forth herein. This U.S. Government Rights - clause is in lieu of, and supersedes, any other FAR, DFAR, or other clause or - provision that addresses Government rights in computer software under this - License. - -9. MISCELLANEOUS. - - This License represents the complete agreement concerning subject matter - hereof. If any provision of this License is held to be unenforceable, such - provision shall be reformed only to the extent necessary to make it - enforceable. This License shall be governed by the law of the jurisdiction - specified in a notice contained within the Original Software (except to the - extent applicable law, if any, provides otherwise), excluding such - jurisdiction's conflict-of-law provisions. Any litigation relating to this - License shall be subject to the jurisdiction of the courts located in the - jurisdiction and venue specified in a notice contained within the Original - Software, with the losing party responsible for costs, including, without - limitation, court costs and reasonable attorneys. fees and expenses. The - application of the United Nations Convention on Contracts for the - International Sale of Goods is expressly excluded. Any law or regulation - which provides that the language of a contract shall be construed against - the drafter shall not apply to this License. You agree that You alone are - responsible for compliance with the United States export administration - regulations (and the export control laws and regulation of any other - countries) when You use, distribute or otherwise make available any Covered - Software. - -10. RESPONSIBILITY FOR CLAIMS. - - As between Initial Developer and the Contributors, each party is responsible - for claims and damages arising, directly or indirectly, out of its - utilization of rights under this License and You agree to work with Initial - Developer and Contributors to distribute such responsibility on an equitable - basis. Nothing herein is intended or shall be deemed to constitute any - admission of liability. - - NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION - LICENSE (CDDL) - - The code released under the CDDL shall be governed by the laws of the State - of California (excluding conflict-of-law provisions). Any litigation relating - to this License shall be subject to the jurisdiction of the Federal Courts of - the Northern District of California and the state courts of the State of - California, with venue lying in Santa Clara County, California. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..3ef5f92 --- /dev/null +++ b/NOTICE @@ -0,0 +1,95 @@ +Compared to sahara-extra's icehouse branch https://github.com/openstack/sahara-extra/tree/icehouse-eol (where the majority of the code is not much different from the latest hadoop-openstack codebase in https://hadoop.apache.org/docs/r3.1.0/hadoop-openstack/index.html). This project has the following improvements of features: + +1. Multi-threaded parallel deletes +2. Multi-threaded parallel copies +3. Multi-threaded parallel renames +4. Fixed thread management in existing code and re-designed new custom thread management in general +5. Support large dynamic object partitioning (DLOs) and multi-part uploads to overcome limitations in object size in object storage +6. Added pagination for large number of object listing +7. Re-designed the range seek +8. Added lazy seek to hugely improve read performance +9. Introduced four upload policies: MULTIPART_SPLIT (default), MULTIPART_NO_SPLIT, MULTIPART_SINGLE_THREAD and MULTIPART_SPLIT_BLOCK +10. Added metrics and logging and monitoring for better trouble shooting + + +Newly Added: +src/main/java/org/apache/hadoop/fs/swifta/exceptions: SwiftMetricWrongParametersException.java +src/main/java/org/apache/hadoop/fs/swifta/http: DaemonThreadFactory.java +src/main/java/org/apache/hadoop/fs/swifta/http: HttpClientManager.java +src/main/java/org/apache/hadoop/fs/swifta/http: IdleConnectionMonitorThread.java +src/main/java/org/apache/hadoop/fs/swifta/http: SwiftClientConfig.java +src/main/java/org/apache/hadoop/fs/swifta/http: SwiftClientConfigFactory.java +src/main/java/org/apache/hadoop/fs/swifta/metrics: InputstreamMetrics.java +src/main/java/org/apache/hadoop/fs/swifta/metrics: MetricsFactory.java +src/main/java/org/apache/hadoop/fs/swifta/metrics: OutputstreamMetrics.java +src/main/java/org/apache/hadoop/fs/swifta/metrics: SwiftMetric.java +src/main/java/org/apache/hadoop/fs/swifta/metrics: SwiftRestClientMetrics.java +src/main/java/org/apache/hadoop/fs/swifta/metrics: SwiftaFileSystemMetrics.java +src/main/java/org/apache/hadoop/fs/swifta/metrics: SwiftaFileSystemStoreMetrics.java +src/main/java/org/apache/hadoop/fs/swifta/model: ListObjectsRequest.java +src/main/java/org/apache/hadoop/fs/swifta/model: ObjectsList.java +src/main/java/org/apache/hadoop/fs/swifta/snative: AsynchronousUpload.java +src/main/java/org/apache/hadoop/fs/swifta/snative: BackupFile.java +src/main/java/org/apache/hadoop/fs/swifta/snative: RangeInputStream.java +src/main/java/org/apache/hadoop/fs/swifta/snative: SwiftNativeOutputStreamMultiPartSingleThread.java +src/main/java/org/apache/hadoop/fs/swifta/snative: SwiftNativeOutputStreamMultipartNoSplit.java +src/main/java/org/apache/hadoop/fs/swifta/snative: SwiftNativeOutputStreamMultipartWithSplit.java +src/main/java/org/apache/hadoop/fs/swifta/snative: SwiftNativeOutputStreamMultipartWithSplitBlock.java +src/main/java/org/apache/hadoop/fs/swifta/snative: SwiftOutputStream.java +src/main/java/org/apache/hadoop/fs/swifta/util: JsonUtil.java +src/main/java/org/apache/hadoop/fs/swifta/util: PriorityThreadFactory.java +src/main/java/org/apache/hadoop/fs/swifta/util: ThreadManager.java +src/main/java/org/apache/hadoop/fs/swifta/util: ThreadUtils.java + +Changes: +src/main/java/org/apache/hadoop/fs/swifta/auth/ApiKeyAuthenticationRequest.java +src/main/java/org/apache/hadoop/fs/swifta/auth/ApiKeyCredentials.java +src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationRequest.java +src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationRequestWrapper.java +src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationResponse.java +src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationWrapper.java +src/main/java/org/apache/hadoop/fs/swifta/auth/KeyStoneAuthRequest.java +src/main/java/org/apache/hadoop/fs/swifta/auth/KeystoneApiKeyCredentials.java +src/main/java/org/apache/hadoop/fs/swifta/auth/PasswordAuthenticationRequest.java +src/main/java/org/apache/hadoop/fs/swifta/auth/PasswordCredentials.java +src/main/java/org/apache/hadoop/fs/swifta/auth/Roles.java +src/main/java/org/apache/hadoop/fs/swifta/auth/entities/AccessToken.java +src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Catalog.java +src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Endpoint.java +src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Tenant.java +src/main/java/org/apache/hadoop/fs/swifta/auth/entities/User.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftAuthenticationFailedException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftBadRequestException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConfigurationException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConnectionClosedException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConnectionException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftInternalStateException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftInvalidResponseException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftJsonMarshallingException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftNotDirectoryException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftOperationFailedException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftPathExistsException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftThrottledRequestException.java +src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftUnsupportedFeatureException.java +src/main/java/org/apache/hadoop/fs/swifta/http/CopyMethod.java +src/main/java/org/apache/hadoop/fs/swifta/http/ExceptionDiags.java +src/main/java/org/apache/hadoop/fs/swifta/http/HttpBodyContent.java +src/main/java/org/apache/hadoop/fs/swifta/http/HttpInputStreamWithRelease.java +src/main/java/org/apache/hadoop/fs/swifta/http/RestClientBindings.java +src/main/java/org/apache/hadoop/fs/swifta/http/SwiftProtocolConstants.java +src/main/java/org/apache/hadoop/fs/swifta/http/SwiftRestClient.java +src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftFileStatus.java +src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeFileSystem.java +src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeFileSystemStore.java +src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeInputStream.java +src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftObjectFileStatus.java +src/main/java/org/apache/hadoop/fs/swifta/util/Duration.java +src/main/java/org/apache/hadoop/fs/swifta/util/DurationStats.java +src/main/java/org/apache/hadoop/fs/swifta/util/DurationStatsTable.java +src/main/java/org/apache/hadoop/fs/swifta/util/SwiftObjectPath.java +src/main/java/org/apache/hadoop/fs/swifta/util/SwiftTestUtils.java +src/main/java/org/apache/hadoop/fs/swifta/util/SwiftUtils.java + +Unchanged: +src/main/java/org/apache/hadoop/fs/swifta/snative/StrictBufferedFSInputStream.java diff --git a/README.md b/README.md index 4aa4e89..eeac039 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,53 @@ -# bfd-ceph-swifta -A Hadoop Swift-API compatible file system driver, based on sahara-extra, that is tested against OpenStack Ceph. -## Usage: -1) Add the value of "fs.swifta.impl" in core-site.xml to "org.apache.hadoop.fs.swifta.snative.SwiftNativeFileSystem". +# hadoop-openstack-swifta -2) You may want to do the same for Hive, Spark or Presto if any core-site.xml presents. +This module enables Apache Hadoop applications including MapReduce jobs, read and write data to and from instances of the OpenStack Swift object store. It significantly rewrites the existing hadoop-openstack swift driver over the icehouse release of openstack sahara-extra project: https://github.com/openstack/sahara-extra/tree/icehouse-eol. It can be embedded into the the hadoop-openstack submodule of the hadoop codebase: https://github.com/apache/hadoop/tree/trunk/hadoop-tools/hadoop-openstack, in a way very similar to the huge efforts of the hadoop-aws s3a over s3n enhancements: https://hadoop.apache.org/docs/stable/hadoop-aws/tools/hadoop-aws/index.html. This codebase has been tested extensively against Swift-API compatible Ceph Jewel 10.2.7 object storage. -3) Copy hadoop-openstack-*.jar to $HADOOP_HOME/share/hadoop/tools/lib/ and link the same jar to $HADOOP_HOME/share/hadoop/hdfs/lib/ +## How to build and test -4) You are ready to go, make sure to use the same swifta:// protocol. +The hadoop-openstack-swifta codebase can be remotely tested against any public or private cloud infrastructure which supports the OpenStack Keystone authentication mechanism. It can also be tested against private OpenStack clusters. OpenStack Development teams are strongly encouraged to test the Hadoop swift filesystem client against any version of Swift that they are developing or deploying, to stress their cluster and to identify bugs early. +The module comes with a large suite of JUnit tests -tests that are only executed if the source tree includes credentials to test against a specific cluster. + +Create the file: + + src/test/resources/auth-keys.xml + +Into this file, insert the credentials needed to bond to the test filesystem, as decribed above. + +Next set the property test.fs.swifta.name to the URL of a swift container to test against. The tests expect exclusive access to this container do not keep any other data on it, or expect it to be preserved. + + + test.fs.swifta.name + swifta://test-container.test-region/ + + +Build swifta package: + + mvn clean package -DskipTests + +This builds a set of Hadoop JARs consistent with the hadoop-openstack module that is about to be tested. + + mvn test -Dtest=TestSwiftRestClient + +This runs some simple tests which include authenticating against the remote swift service. If these tests fail, so will all the rest. If it does fail: check your authentication. + +Once this test succeeds, you can run the full test suite: + + mvn test + + +## How to configurae a hadoop cluster with swifta: + +1) Build swifta: mvn clean package -DskipTests + +2) Add the following snippet to core-site.xml: + + + fs.swifta.impl + org.apache.hadoop.fs.swifta.snative.SwiftNativeFileSystem + + +3) Copy hadoop-openstack-*.jar to $HADOOP_HOME/share/hadoop/tools/lib/ and link the same jar to $HADOOP_HOME/share/hadoop/common/lib/ + +4) You are ready to go, make sure to use the swifta:// protocol, e.g.: hadoop fs -ls swifta://test-container.test-region/. -This branch adds a content-type to all dummy folders. For all files, even 0-byte one stays empty for the content_type. -#### This project only supports for Java 7 and above. diff --git a/pom.xml b/pom.xml index 657b6a6..1ebe29f 100644 --- a/pom.xml +++ b/pom.xml @@ -19,11 +19,11 @@ org.apache.hadoop hadoop-project - 3.2.0-SNAPSHOT + 3.1.0 ../../hadoop-project hadoop-openstack - 3.2.0-SNAPSHOT + 3.1.0 Apache Hadoop OpenStack support This module contains code to support integration with OpenStack. @@ -46,7 +46,7 @@ - false + true @@ -100,7 +100,7 @@ org.apache.hadoop hadoop-common - compile + provided org.apache.hadoop @@ -108,40 +108,11 @@ test test-jar - - org.apache.hadoop - hadoop-annotations - compile - - - - org.apache.httpcomponents - httpcore - - - commons-logging - commons-logging - compile - - junit junit provided - - com.fasterxml.jackson.core - jackson-annotations - - - com.fasterxml.jackson.core - jackson-databind - - - org.apache.httpcomponents - httpclient - compile - commons-httpclient commons-httpclient diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/ApiKeyAuthenticationRequest.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/ApiKeyAuthenticationRequest.java index e98480b..2877d3a 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/ApiKeyAuthenticationRequest.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/ApiKeyAuthenticationRequest.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; import java.util.Objects; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/ApiKeyCredentials.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/ApiKeyCredentials.java index 13f4fd0..919118f 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/ApiKeyCredentials.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/ApiKeyCredentials.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; import java.util.Objects; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationRequest.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationRequest.java index 93b3a92..19a742f 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationRequest.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationRequest.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; import java.util.Objects; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationRequestWrapper.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationRequestWrapper.java index d7c0975..d2ea169 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationRequestWrapper.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationRequestWrapper.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationResponse.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationResponse.java index 3c4dd6c..f3df432 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationResponse.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationResponse.java @@ -1,18 +1,20 @@ -/*Ï - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at +/* + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; import java.util.List; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationWrapper.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationWrapper.java index a3b7871..6b169e1 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationWrapper.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/AuthenticationWrapper.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/KeyStoneAuthRequest.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/KeyStoneAuthRequest.java index 2c0bd1c..37758c2 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/KeyStoneAuthRequest.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/KeyStoneAuthRequest.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; import java.util.Objects; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/KeystoneApiKeyCredentials.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/KeystoneApiKeyCredentials.java index 3c3a752..0686592 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/KeystoneApiKeyCredentials.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/KeystoneApiKeyCredentials.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; import java.util.Objects; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/PasswordAuthenticationRequest.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/PasswordAuthenticationRequest.java index 979471b..c9ef21b 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/PasswordAuthenticationRequest.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/PasswordAuthenticationRequest.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; import java.util.Objects; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/PasswordCredentials.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/PasswordCredentials.java index a38f52e..fd32647 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/PasswordCredentials.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/PasswordCredentials.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; import java.util.Objects; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/Roles.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/Roles.java index 99ac95e..f6e283e 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/Roles.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/Roles.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/AccessToken.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/AccessToken.java index 9350b76..21ae8e2 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/AccessToken.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/AccessToken.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth.entities; import java.util.Objects; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Catalog.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Catalog.java index a43055b..12de45f 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Catalog.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Catalog.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth.entities; import java.util.List; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Endpoint.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Endpoint.java index 064ee5c..477ad5c 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Endpoint.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Endpoint.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth.entities; import java.net.URI; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Tenant.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Tenant.java index 3931076..08f2d9f 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Tenant.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/Tenant.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth.entities; import org.codehaus.jackson.annotate.JsonIgnoreProperties; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/User.java b/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/User.java index 15383d0..b0a6540 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/User.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/auth/entities/User.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.auth.entities; import java.util.List; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftAuthenticationFailedException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftAuthenticationFailedException.java index fe9ad0b..d5fbedd 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftAuthenticationFailedException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftAuthenticationFailedException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; import java.net.URI; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftBadRequestException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftBadRequestException.java index 436abb4..7d23cc3 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftBadRequestException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftBadRequestException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; import java.net.URI; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConfigurationException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConfigurationException.java index 88f4553..161dfd0 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConfigurationException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConfigurationException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConnectionClosedException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConnectionClosedException.java index fa8cbba..47dba41 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConnectionClosedException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConnectionClosedException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConnectionException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConnectionException.java index 0435849..02504cd 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConnectionException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftConnectionException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftException.java index 4f98c85..6c66556 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; import java.io.IOException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftInternalStateException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftInternalStateException.java index 227c575..8ac69e8 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftInternalStateException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftInternalStateException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftInvalidResponseException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftInvalidResponseException.java index 880741e..211a751 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftInvalidResponseException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftInvalidResponseException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; import java.io.IOException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftJsonMarshallingException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftJsonMarshallingException.java index d8093ea..cc7ebe5 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftJsonMarshallingException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftJsonMarshallingException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftMetricWrongParametersException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftMetricWrongParametersException.java index 73b23fb..e1d8c09 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftMetricWrongParametersException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftMetricWrongParametersException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; import java.io.IOException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftNotDirectoryException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftNotDirectoryException.java index 92917e4..96c9267 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftNotDirectoryException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftNotDirectoryException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; import org.apache.hadoop.fs.Path; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftOperationFailedException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftOperationFailedException.java index 6aeaf88..52b1824 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftOperationFailedException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftOperationFailedException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftPathExistsException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftPathExistsException.java index 4c16d7d..f589f99 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftPathExistsException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftPathExistsException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftThrottledRequestException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftThrottledRequestException.java index 9570e5b..0f6d8bf 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftThrottledRequestException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftThrottledRequestException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; import java.net.URI; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftUnsupportedFeatureException.java b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftUnsupportedFeatureException.java index aa86aca..a3fec46 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftUnsupportedFeatureException.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/exceptions/SwiftUnsupportedFeatureException.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.exceptions; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/CopyMethod.java b/src/main/java/org/apache/hadoop/fs/swifta/http/CopyMethod.java index 09ed40c..2848e02 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/CopyMethod.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/CopyMethod.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import org.apache.commons.httpclient.methods.EntityEnclosingMethod; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/DaemonThreadFactory.java b/src/main/java/org/apache/hadoop/fs/swifta/http/DaemonThreadFactory.java index 9ff5aa1..f2f8b4b 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/DaemonThreadFactory.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/DaemonThreadFactory.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import java.util.concurrent.Executors; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/ExceptionDiags.java b/src/main/java/org/apache/hadoop/fs/swifta/http/ExceptionDiags.java index c91aa49..0c46941 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/ExceptionDiags.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/ExceptionDiags.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import java.io.IOException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/HttpBodyContent.java b/src/main/java/org/apache/hadoop/fs/swifta/http/HttpBodyContent.java index 404af20..f8f8494 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/HttpBodyContent.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/HttpBodyContent.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/HttpClientManager.java b/src/main/java/org/apache/hadoop/fs/swifta/http/HttpClientManager.java index d7d6f12..06d62fa 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/HttpClientManager.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/HttpClientManager.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import java.util.concurrent.Executors; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/HttpInputStreamWithRelease.java b/src/main/java/org/apache/hadoop/fs/swifta/http/HttpInputStreamWithRelease.java index 23a610b..e83ff6d 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/HttpInputStreamWithRelease.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/HttpInputStreamWithRelease.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import java.io.BufferedInputStream; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/IdleConnectionMonitorThread.java b/src/main/java/org/apache/hadoop/fs/swifta/http/IdleConnectionMonitorThread.java index 3d53b7b..82d887a 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/IdleConnectionMonitorThread.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/IdleConnectionMonitorThread.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/RestClientBindings.java b/src/main/java/org/apache/hadoop/fs/swifta/http/RestClientBindings.java index 6b3ed6f..555a1f5 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/RestClientBindings.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/RestClientBindings.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import static org.apache.hadoop.fs.swifta.http.SwiftProtocolConstants.DOT_APIKEY; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftClientConfig.java b/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftClientConfig.java index ee3251b..7b152ac 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftClientConfig.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftClientConfig.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import static org.apache.hadoop.fs.swifta.http.SwiftProtocolConstants.CACHE_LIVE_TIME; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftClientConfigFactory.java b/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftClientConfigFactory.java index e547d70..2d230dc 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftClientConfigFactory.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftClientConfigFactory.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import java.util.Map; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftProtocolConstants.java b/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftProtocolConstants.java index 02f515a..62a41f1 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftProtocolConstants.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftProtocolConstants.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import org.apache.hadoop.util.VersionInfo; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftRestClient.java b/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftRestClient.java index 20a83dd..b6faa9c 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftRestClient.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/http/SwiftRestClient.java @@ -1,19 +1,20 @@ /* - * - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import static org.apache.commons.httpclient.HttpStatus.SC_ACCEPTED; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/metrics/InputstreamMetrics.java b/src/main/java/org/apache/hadoop/fs/swifta/metrics/InputstreamMetrics.java index cf135c5..bcccbcf 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/metrics/InputstreamMetrics.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/metrics/InputstreamMetrics.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.metrics; import java.io.InputStream; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/metrics/MetricsFactory.java b/src/main/java/org/apache/hadoop/fs/swifta/metrics/MetricsFactory.java index cc28ccb..5a96151 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/metrics/MetricsFactory.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/metrics/MetricsFactory.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.metrics; import java.util.Map; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/metrics/OutputstreamMetrics.java b/src/main/java/org/apache/hadoop/fs/swifta/metrics/OutputstreamMetrics.java index 222efd7..c453be7 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/metrics/OutputstreamMetrics.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/metrics/OutputstreamMetrics.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.metrics; import java.io.OutputStream; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftMetric.java b/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftMetric.java index 0a9dcb7..06a5c44 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftMetric.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftMetric.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.metrics; import org.apache.hadoop.fs.swifta.exceptions.SwiftMetricWrongParametersException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftRestClientMetrics.java b/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftRestClientMetrics.java index 870243b..107832f 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftRestClientMetrics.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftRestClientMetrics.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.metrics; import java.util.Map; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftaFileSystemMetrics.java b/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftaFileSystemMetrics.java index c344b33..e07f0f9 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftaFileSystemMetrics.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftaFileSystemMetrics.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.metrics; import java.util.Map; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftaFileSystemStoreMetrics.java b/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftaFileSystemStoreMetrics.java index 363f730..c6cc471 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftaFileSystemStoreMetrics.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/metrics/SwiftaFileSystemStoreMetrics.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.metrics; import java.util.Map; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/model/ListObjectsRequest.java b/src/main/java/org/apache/hadoop/fs/swifta/model/ListObjectsRequest.java index 7a2b18a..1017d49 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/model/ListObjectsRequest.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/model/ListObjectsRequest.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.model; import java.io.IOException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/model/ObjectsList.java b/src/main/java/org/apache/hadoop/fs/swifta/model/ObjectsList.java index 506472e..a10b1c0 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/model/ObjectsList.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/model/ObjectsList.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.model; import java.util.Collections; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/package.html b/src/main/java/org/apache/hadoop/fs/swifta/package.html index e8b412b..2cd0a44 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/package.html +++ b/src/main/java/org/apache/hadoop/fs/swifta/package.html @@ -30,14 +30,15 @@

Introduction

-
This package provides support in Apache Hadoop for the Ceph Swift +
This package provides support in Apache Hadoop for the OpenStack-compatible Swift Key-Value store, allowing client applications -including MR Jobs- to - read and write data in Ceph Cloud. + read and write data in Swift.
Design Goals
  1. Give clients access to SwiftFS files, similar to S3a:
  2. +
  3. Support multi-part uploads that overcome Swift's limitation of 5GB files
  4. Support for data-locality if the Swift FS provides file location information
  5. Support access to multiple Swift filesystems in the same client/task.
  6. Authenticate using the Keystone APIs.
  7. @@ -45,7 +46,7 @@

    Introduction

-

Supporting multiple Swifta Filesystems

+

Supporting multiple Swift Filesystems

The goal of supporting multiple swift filesystems simultaneously changes how clusters are named and authenticated. In Hadoop's S3 and S3N filesystems, the "bucket" into diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/AsynchronousUpload.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/AsynchronousUpload.java index 7def366..9298c2e 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/AsynchronousUpload.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/AsynchronousUpload.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import java.util.List; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/BackupFile.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/BackupFile.java index f1ee21b..db208b7 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/BackupFile.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/BackupFile.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import java.io.BufferedOutputStream; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/CacheObject.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/CacheObject.java index a4ac1ad..7901b08 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/CacheObject.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/CacheObject.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; public class CacheObject { diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/LFUCache.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/LFUCache.java index e3630ea..6bab099 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/LFUCache.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/LFUCache.java @@ -10,9 +10,22 @@ public class LFUCache { private static final Log LOG = LogFactory.getLog(LFUCache.class); - /** - * Store node position in doubly linked list [key, Node]. - */ + /* + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + private Map positionNodes = new HashMap(); /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/RangeInputStream.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/RangeInputStream.java index e4d7bcc..0ac1728 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/RangeInputStream.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/RangeInputStream.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import java.io.IOException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/StrictBufferedFsInputStream.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/StrictBufferedFsInputStream.java index 63adc1f..3a1652e 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/StrictBufferedFsInputStream.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/StrictBufferedFsInputStream.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import java.io.IOException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftFileStatus.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftFileStatus.java index f3183c6..f3a66ac 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftFileStatus.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftFileStatus.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import org.apache.hadoop.fs.FileStatus; @@ -56,7 +58,7 @@ public SwiftFileStatus(long length, boolean isdir, int blockReplication, long bl */ @Override public boolean isDirectory() { - return super.isDirectory() || getLen() == 0; + return super.isDirectory(); } /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeFileSystem.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeFileSystem.java index 14ac866..a698dd7 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeFileSystem.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeFileSystem.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import java.io.FileNotFoundException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeFileSystemStore.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeFileSystemStore.java index faeb673..d3e2a82 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeFileSystemStore.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeFileSystemStore.java @@ -1,19 +1,21 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import org.apache.commons.httpclient.Header; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeInputStream.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeInputStream.java index 32d306a..9a5115f 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeInputStream.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeInputStream.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import java.io.EOFException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultiPartSingleThread.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultiPartSingleThread.java index cc1d0cf..00d699c 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultiPartSingleThread.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultiPartSingleThread.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import static org.apache.hadoop.fs.swifta.http.SwiftProtocolConstants.HADOOP_TMP_DIR; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartNoSplit.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartNoSplit.java index b67d4c5..e5ea55c 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartNoSplit.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartNoSplit.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import static org.apache.hadoop.fs.swifta.http.SwiftProtocolConstants.HADOOP_TMP_DIR; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartWithSplit.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartWithSplit.java index 4426a54..fea0187 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartWithSplit.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartWithSplit.java @@ -1,18 +1,20 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at +/* + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import static org.apache.hadoop.fs.swifta.http.SwiftProtocolConstants.DEFAULT_SWIFT_INPUT_STREAM_BUFFER_SIZE; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartWithSplitBlock.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartWithSplitBlock.java index d6e3eb8..23a8e31 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartWithSplitBlock.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftNativeOutputStreamMultipartWithSplitBlock.java @@ -1,18 +1,20 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at +/* + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import static org.apache.hadoop.fs.swifta.http.SwiftProtocolConstants.DEFAULT_SWIFT_INPUT_STREAM_BUFFER_SIZE; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftObjectFileStatus.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftObjectFileStatus.java index 7d585af..5aafee0 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftObjectFileStatus.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftObjectFileStatus.java @@ -1,18 +1,20 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at +/* + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import org.apache.hadoop.fs.swifta.http.SwiftProtocolConstants; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftOutputStream.java b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftOutputStream.java index 81aa452..ebd94d6 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftOutputStream.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/snative/SwiftOutputStream.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.snative; import java.io.OutputStream; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/util/Duration.java b/src/main/java/org/apache/hadoop/fs/swifta/util/Duration.java index bf5aff7..f072621 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/util/Duration.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/util/Duration.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.util; public class Duration { diff --git a/src/main/java/org/apache/hadoop/fs/swifta/util/DurationStats.java b/src/main/java/org/apache/hadoop/fs/swifta/util/DurationStats.java index d03848d..ede7658 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/util/DurationStats.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/util/DurationStats.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.util; /** diff --git a/src/main/java/org/apache/hadoop/fs/swifta/util/DurationStatsTable.java b/src/main/java/org/apache/hadoop/fs/swifta/util/DurationStatsTable.java index b93936a..f421c65 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/util/DurationStatsTable.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/util/DurationStatsTable.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.util; import java.util.ArrayList; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/util/JsonUtil.java b/src/main/java/org/apache/hadoop/fs/swifta/util/JsonUtil.java index 23e08a6..2afe8b3 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/util/JsonUtil.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/util/JsonUtil.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.util; import java.io.IOException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/util/PriorityThreadFactory.java b/src/main/java/org/apache/hadoop/fs/swifta/util/PriorityThreadFactory.java index 8694860..0c00224 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/util/PriorityThreadFactory.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/util/PriorityThreadFactory.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.util; import java.util.concurrent.ThreadFactory; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftObjectPath.java b/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftObjectPath.java index 011d6b9..ee3ddaa 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftObjectPath.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftObjectPath.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.util; import java.net.URI; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftTestUtils.java b/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftTestUtils.java index 489a112..6108d5a 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftTestUtils.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftTestUtils.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.util; import java.io.FileNotFoundException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftUtils.java b/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftUtils.java index 0213329..9b7df02 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftUtils.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/util/SwiftUtils.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.util; import java.io.IOException; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/util/ThreadManager.java b/src/main/java/org/apache/hadoop/fs/swifta/util/ThreadManager.java index 2e059fc..80c6e77 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/util/ThreadManager.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/util/ThreadManager.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.util; import java.util.concurrent.ExecutorService; diff --git a/src/main/java/org/apache/hadoop/fs/swifta/util/ThreadUtils.java b/src/main/java/org/apache/hadoop/fs/swifta/util/ThreadUtils.java index 3e59605..1ddabdc 100644 --- a/src/main/java/org/apache/hadoop/fs/swifta/util/ThreadUtils.java +++ b/src/main/java/org/apache/hadoop/fs/swifta/util/ThreadUtils.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.util; public class ThreadUtils { diff --git a/src/site/index.md b/src/site/index.md new file mode 100644 index 0000000..7ad6325 --- /dev/null +++ b/src/site/index.md @@ -0,0 +1,629 @@ + + +* [Hadoop OpenStack Support: Swift Object Store](#Hadoop_OpenStack_Support:_Swift_Object_Store) + * [Introduction](#Introduction) + * [Features](#Features) + * [Using the Hadoop Swift Filesystem Client](#Using_the_Hadoop_Swift_Filesystem_Client) + * [Concepts: services and containers](#Concepts:_services_and_containers) + * [Containers and Objects](#Containers_and_Objects) + * [Eventual Consistency](#Eventual_Consistency) + * [Non-atomic "directory" operations.](#Non-atomic_directory_operations.) + * [Working with Swift Object Stores in Hadoop](#Working_with_Swift_Object_Stores_in_Hadoop) + * [Swift Filesystem URIs](#Swift_Filesystem_URIs) + * [Installing](#Installing) + * [Configuring](#Configuring) + * [Example: Rackspace US, in-cluster access using API key](#Example:_Rackspace_US_in-cluster_access_using_API_key) + * [Example: Rackspace UK: remote access with password authentication](#Example:_Rackspace_UK:_remote_access_with_password_authentication) + * [Example: HP cloud service definition](#Example:_HP_cloud_service_definition) + * [General Swift Filesystem configuration options](#General_Swift_Filesystem_configuration_options) + * [Blocksize fs.swifta.blocksize](#Blocksize_fs.swifta.blocksize) + * [Partition size fs.swifta.partsize](#Partition_size_fs.swifta.partsize) + * [Request size fs.swifta.requestsize](#Request_size_fs.swifta.requestsize) + * [Connection timeout fs.swifta.connect.timeout](#Connection_timeout_fs.swifta.connect.timeout) + * [Connection timeout fs.swifta.socket.timeout](#Connection_timeout_fs.swifta.socket.timeout) + * [Connection Retry Count fs.swifta.connect.retry.count](#Connection_Retry_Count_fs.swifta.connect.retry.count) + * [Connection Throttle Delay fs.swifta.connect.throttle.delay](#Connection_Throttle_Delay_fs.swifta.connect.throttle.delay) + * [HTTP Proxy](#HTTP_Proxy) + * [Multi-part Upload configuration options](#Multi_part_upload_configuration_options) + * [Upload policy fs.swifta.write.policy](#Upload_policy_fs.swifta.write.policy) + * [Total HTTP connections per JVM fs.swifta.connections.max.total](#Total_HTTP_connections_per_JVM_fs.swifta.connections.max.total) + * [Total HTTP connections per JVM to a destination host fs.swifta.connections.max.host](#Total_HTTP_connections_per_JVM_to_a_destination_host_fs.swifta.connections.max.host) + * [Maximum background threads for delete operations fs.swifta.connections.max.delete](#Maximum_background_threads_delete_fs.swifta.connections.max.delete) + * [Maximum background threads for copy operations fs.swifta.connections.max.copy](#Maximum_background_threads_copy_fs.swifta.connections.max.copy) + * [Maximum parallel threads for multi-part upload operations fs.swifta.connections.max.upload](#Maximum_parallel_threads_upload_fs.swifta.connections.max.upload) + * [Troubleshooting](#Troubleshooting) + * [ClassNotFoundException](#ClassNotFoundException) + * [Failure to Authenticate](#Failure_to_Authenticate) + * [Timeout connecting to the Swift Service](#Timeout_connecting_to_the_Swift_Service) + * [Warnings](#Warnings) + * [Limits](#Limits) + * [Testing the hadoop-openstack module](#Testing_the_hadoop-openstack_module) + +Hadoop OpenStack Support: Swift Object Store +============================================ + +Introduction +------------ + +[OpenStack](http://www.openstack.org/) is an open source cloud infrastructure which can be accessed from multiple public IaaS providers, and deployed privately. It offers infrastructure services such as VM hosting (Nova), authentication (Keystone) and storage of binary objects (Swift). + +This module enables Apache Hadoop applications -including MapReduce jobs, read and write data to and from instances of the [OpenStack Swift object store](http://www.openstack.org/software/openstack-storage/). + +To make it part of Apache Hadoop's default classpath, simply make sure that +HADOOP_OPTIONAL_TOOLS in hadoop-env.sh has 'hadoop-openstack' in the list. + +Features +-------- + +* Read and write of data stored in a Swift object store + +* Support of a pseudo-hierachical file system (directories, subdirectories and + files) + +* Standard filesystem operations: `create`, `delete`, `mkdir`, + `ls`, `mv`, `stat`. + +* Can act as a source of data in a MapReduce job, or a sink. + +* Support for multiple OpenStack services, and multiple containers from a + single service. + +* Supports in-cluster and remote access to Swift data. + +* Supports OpenStack Keystone authentication with password or token. + +* Released under the Apache Software License + +* Tested against the Hadoop 3.x and 1.x branches, against multiple public + OpenStack clusters: Rackspace US, Rackspace UK, HP Cloud. + +* Tested against private OpenStack clusters, including scalability tests of + large file uploads. + +Using the Hadoop Swift Filesystem Client +---------------------------------------- + +### Concepts: services and containers + +OpenStack swift is an *Object Store*; also known as a *blobstore*. It stores arbitrary binary objects by name in a *container*. + +The Hadoop Swift filesystem library adds another concept, the *service*, which defines which Swift blobstore hosts a container -and how to connect to it. + +### Containers and Objects + +* Containers are created by users with accounts on the Swift filestore, and hold + *objects*. + +* Objects can be zero bytes long, or they can contain data. + +* Objects in the container can be up to 5GB; there is a special support for + larger files than this, which merges multiple objects in to one. + +* Each object is referenced by it's *name*; there is no notion of directories. + +* You can use any characters in an object name that can be 'URL-encoded'; the + maximum length of a name is 1034 characters -after URL encoding. + +* Names can have `/` characters in them, which are used to create the illusion of + a directory structure. For example `dir/dir2/name`. Even though this looks + like a directory, *it is still just a name*. There is no requirement to have + any entries in the container called `dir` or `dir/dir2` + +* A zero-byte object with an application/directory content_type metadata is + regarded as a directory, otherwise it is treated like a file. + +Client applications talk to Swift over HTTP or HTTPS, reading, writing and deleting objects using standard HTTP operations (GET, PUT and DELETE, respectively). There is also a COPY operation, that creates a new object in the container, with a new name, containing the old data. There is no rename operation itself, objects need to be copied -then the original entry deleted. + +### Eventual Consistency + +The Swift Filesystem is \*eventually consistent\*: an operation on an object may not be immediately visible to that client, or other clients. This is a consequence of the goal of the filesystem: to span a set of machines, across multiple datacenters, in such a way that the data can still be available when many of them fail. (In contrast, the Hadoop HDFS filesystem is \*immediately consistent\*, but it does not span datacenters.) + +Eventual consistency can cause surprises for client applications that expect immediate consistency: after an object is deleted or overwritten, the object may still be visible -or the old data still retrievable. The Swift Filesystem client for Apache Hadoop attempts to handle this, in conjunction with the MapReduce engine, but there may be still be occasions when eventual consistency causes surprises. + +### Non-atomic "directory" operations. + +Hadoop expects some operations to be atomic, especially `rename()`, which is something the MapReduce layer relies on to commit the output of a job, renaming data from a temp directory to the final path. Because a rename is implemented as a copy of every blob under the directory's path, followed by a delete of the originals, the intermediate state of the operation will be visible to other clients. If two Reducer tasks to rename their temp directory to the final path, both operations may succeed, with the result that output directory contains mixed data. This can happen if MapReduce jobs are being run with *speculation* enabled and Swift used as the direct output of the MR job (it can also happen against Amazon S3). + +Other consequences of the non-atomic operations are: + +1. If a program is looking for the presence of the directory before acting + on the data -it may start prematurely. This can be avoided by using + other mechanisms to co-ordinate the programs, such as the presence of a file + that is written *after* any bulk directory operations. + +2. A `rename()` or `delete()` operation may include files added under + the source directory tree during the operation, may unintentionally delete + it, or delete the 0-byte swift entries that mimic directories and act + as parents for the files. Try to avoid doing this. + +The best ways to avoid all these problems is not using Swift as the filesystem between MapReduce jobs or other Hadoop workflows. It can act as a source of data, and a final destination, but it doesn't meet all of Hadoop's expectations of what a filesystem is -it's a *blobstore*. + +Working with Swift Object Stores in Hadoop +------------------------------------------ + +Once installed, the Swift FileSystem client can be used by any Hadoop application to read from or write to data stored in a Swift container. + +Data stored in Swift can be used as the direct input to a MapReduce job -simply use the `swifta:` URL (see below) to declare the source of the data. + +This Swift Filesystem client is designed to work with multiple Swift object stores, both public and private. This allows the client to work with different clusters, reading and writing data to and from either of them. + +It can also work with the same object stores using multiple login details. + +These features are achieved by one basic concept: using a service name in the URI referring to a swift filesystem, and looking up all the connection and login details for that specific service. Different service names can be defined in the Hadoop XML configuration file, so defining different clusters, or providing different login details for the same object store(s). + +### Swift Filesystem URIs + +Hadoop uses URIs to refer to files within a filesystem. Some common examples are: + + local://etc/hosts + hdfs://cluster1/users/example/data/set1 + hdfs://cluster2.example.org:8020/users/example/data/set1 + +The Swift Filesystem Client adds a new URL type `swifta`. In a Swift Filesystem URL, the hostname part of a URL identifies the container and the service to work with; the path the name of the object. Here are some examples + + swifta://container.rackspace/my-object.csv + swifta://data.hpcloud/data/set1 + swifta://dmitry.privatecloud/out/results + +In the last two examples, the paths look like directories: it is not, they are simply the objects named `data/set1` and `out/results` respectively. + +### Installing + +The `hadoop-openstack` JAR must be on the classpath of the Hadoop program trying to talk to the Swift service. If installed in the classpath of the Hadoop MapReduce service, then all programs started by the MR engine will pick up the JAR automatically. This is the easiest way to give all Hadoop jobs access to Swift. + +Alternatively, the JAR can be included as one of the JAR files that an application uses. This lets the Hadoop jobs work with a Swift object store even if the Hadoop cluster is not pre-configured for this. + +The library also depends upon the Apache HttpComponents library, which must also be on the classpath. + +### Configuring + +To talk to a swift service, the user must must provide: + +1. The URL defining the container and the service. + +2. In the cluster/job configuration, the login details of that service. + +Multiple service definitions can co-exist in the same configuration file: just use different names for them. + +#### Example: Rackspace US, in-cluster access using API key + +This service definition is for use in a Hadoop cluster deployed within Rackspace's US infrastructure. + + + fs.swifta.service.rackspace.auth.url + https://auth.api.rackspacecloud.com/v2.0/tokens + Rackspace US (multiregion) + + + + fs.swifta.service.rackspace.username + user4 + + + + fs.swifta.service.rackspace.region + DFW + + + + fs.swifta.service.rackspace.apikey + fe806aa86dfffe2f6ed8 + + +Here the API key visible in the account settings API keys page is used to log in. No property for public/private access -the default is to use the private endpoint for Swift operations. + +This configuration also selects one of the regions, DFW, for its data. + +A reference to this service would use the `rackspace` service name: + + swifta://hadoop-container.rackspace/ + +#### Example: Rackspace UK: remote access with password authentication + +This connects to Rackspace's UK ("LON") datacenter. + + + fs.swifta.service.rackspaceuk.auth.url + https://lon.identity.api.rackspacecloud.com/v2.0/tokens + Rackspace UK + + + + fs.swifta.service.rackspaceuk.username + user4 + + + + fs.swifta.service.rackspaceuk.password + insert-password-here/value> + + + + fs.swifta.service.rackspace.public + true + + +This is a public access point connection, using a password over an API key. + +A reference to this service would use the `rackspaceuk` service name: + + swifta://hadoop-container.rackspaceuk/ + +Because the public endpoint is used, if this service definition is used within the London datacenter, all accesses will be billed at the public upload/download rates, *irrespective of where the Hadoop cluster is*. + +#### Example: HP cloud service definition + +Here is an example that connects to the HP Cloud object store. + + + fs.swifta.service.hpcloud.auth.url + https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens + + HP Cloud + + + + fs.swifta.service.hpcloud.tenant + FE806AA86 + + + + fs.swifta.service.hpcloud.username + FE806AA86DFFFE2F6ED8 + + + + fs.swifta.service.hpcloud.password + secret-password-goes-here + + + + fs.swifta.service.hpcloud.public + true + + +A reference to this service would use the `hpcloud` service name: + + swifta://hadoop-container.hpcloud/ + +### General Swift Filesystem configuration options + +Some configuration options apply to the Swift client, independent of the specific Swift filesystem chosen. + +#### Blocksize fs.swifta.blocksize + +Swift does not break up files into blocks, except in the special case of files over 5GB in length. Accordingly, there isn't a notion of a "block size" to define where the data is kept. + +Hadoop's MapReduce layer depends on files declaring their block size, so that it knows how to partition work. Too small a blocksize means that many mappers work on small pieces of data; too large a block size means that only a few mappers get started. + +The block size value reported by Swift, therefore, controls the basic workload partioning of the MapReduce engine -and can be an important parameter to tune for performance of the cluster. + +The property has a unit of kilobytes; the default value is `128*1024`: 128 MB + + + fs.swifta.blocksize + 131072 + + +This blocksize has no influence on how files are stored in Swift; it only controls what the reported size of blocks are - a value used in Hadoop MapReduce to divide work. + +Note that the MapReduce engine's split logic can be tuned independently by setting the `mapred.min.split.size` and `mapred.max.split.size` properties, which can be done in specific job configurations. + + + mapred.min.split.size + 524288 + + + + mapred.max.split.size + 1048576 + + +In an Apache Pig script, these properties would be set as: + + mapred.min.split.size 524288 + mapred.max.split.size 1048576 + +#### Partition size fs.swifta.partsize + +The Swift filesystem client breaks very large files into partitioned files, uploading each as it progresses, and writing any remaning data and an XML manifest when a partitioned file is closed. + +The partition size defaults to 4608 MB; 4.5GB, the maximum filesize that Swift can support. + +It is possible to set a smaller partition size, in the `fs.swifta.partsize` option. This takes a value in KB. + + + fs.swifta.partsize + 262144 + upload every MB + + +When should this value be changed from its default? + +While there is no need to ever change it for basic operation of the Swift filesystem client, it can be tuned + +* If a Swift filesystem is location aware, then breaking a file up into + smaller partitions scatters the data round the cluster. For best performance, + the property `fs.swifta.blocksize` should be set to a smaller value than the + partition size of files. + +* When writing to an unpartitioned file, the entire write is done in the + `close()` operation. When a file is partitioned, the outstanding data to + be written whenever the outstanding amount of data is greater than the + partition size. This means that data will be written more incrementally + +#### Request size fs.swifta.requestsize + +The Swift filesystem client reads files in HTTP GET operations, asking for a block of data at a time. + +The default value is 1024KB. A larger value may be more efficient over faster networks, as it reduces the overhead of setting up the HTTP operation. + +However, if the file is read with many random accesses, requests for data will be made from different parts of the file -discarding some of the previously requested data. The benefits of larger request sizes may be wasted. + +The property `fs.swifta.requestsize` sets the request size in KB. + + + fs.swifta.requestsize + 1024 + + +#### Connection timeout fs.swifta.connect.timeout + +This sets the timeout in milliseconds to connect to a Swift service. + + + fs.swifta.connect.timeout + 15000 + + +A shorter timeout means that connection failures are raised faster -but may trigger more false alarms. A longer timeout is more resilient to network problems -and may be needed when talking to remote filesystems. + +#### Connection timeout fs.swifta.socket.timeout + +This sets the timeout in milliseconds to wait for data from a connected socket. + + + fs.swifta.socket.timeout + 60000 + + +A shorter timeout means that connection failures are raised faster -but may trigger more false alarms. A longer timeout is more resilient to network problems -and may be needed when talking to remote filesystems. + +#### Connection Retry Count fs.swifta.connect.retry.count + +This sets the number of times to try to connect to a service whenever an HTTP request is made. + + + fs.swifta.connect.retry.count + 3 + + +The more retries, the more resilient it is to transient outages -and the less rapid it is at detecting and reporting server connectivity problems. + +#### Connection Throttle Delay fs.swifta.connect.throttle.delay + +This property adds a delay between bulk file copy and delete operations, to prevent requests being throttled or blocked by the remote service + + + fs.swifta.connect.throttle.delay + 0 + + +It is measured in milliseconds; "0" means do not add any delay. + +Throttling is enabled on the public endpoints of some Swift services. If `rename()` or `delete()` operations fail with `SwiftThrottledRequestException` exceptions, try setting this property. + +#### HTTP Proxy + +If the client can only access the Swift filesystem via a web proxy server, the client configuration must specify the proxy via the `fs.swifta.connect.proxy.host` and `fs.swifta.connect.proxy.port` properties. + + + fs.swifta.proxy.host + web-proxy + + + + fs.swifta.proxy.port + 8088 + + +If the host is declared, the proxy port must be set to a valid integer value. + +### Multi-part Upload Configuration Options + +#### Upload policy fs.swifta.write.policy + +There are four policies regarding uploading multi-part files to the object storage. The size of each part is determined by fs.swifta.partsize. + +MULTIPART_SINGLE_THREAD: When uploading a large file, split into multiple small parts, cache each part to local disk and upload each part sequentially in a single thread. After each part is uploaded, delete the local staging part. + +MULTIPART_NO_SPLIT: When uploading a large file, continuously cache to a single local file and upload the entire file once. This policy requires the most disk space locally. + +MULTIPART_SPLIT: When uploading a large file, split into multiple small parts, write them to local disk while simultaneously upload them in batches. When a batched upload has been finished, delete the local staging parts. + +MULTIPART_SPLIT_BLOCK: When uploading a large file, split into multiple small parts, write them to local disk while simulatenously upload them in batches. When the number of parts being uploaded is larger than a default number, it would block writing to the local disk. This policy might be useful in the scenario where the network bandwidth for upload is extremeley small, but might be less performant in normal scenarios than the MULTIPART_SPLIT policy. + +By default it uses the MULTIPART_SPLIT policy. + + + fs.swifta.write.policy + MULTIPART_SPLIT + + +#### Total HTTP connections Per JVM fs.swifta.connections.max.total + +The configuration, fs.swifta.connections.max.total, determines the maximum number of HTTP connections a single JVM would open (this value is being passed to the httpclient library), and it should be a multiplier of fs.swifta.connections.max.host. + +The default value is 12 * number of cores available on the VM. If the number of cores is 10, it would be 120. + + + fs.swifta.connections.max.total + 120 + + +#### Total HTTP Connections Per JVM To a Destination Host fs.swifta.connections.max.host + +The configuration, fs.swifta.connections.max.host, determines the maximum number of HTTP connections a single JVM would open to a destination host. + +The default value is 12 * number of cores available on the VM. If the number of cores is 10, it would be 120. + + + fs.swifta.connections.max.host + 120 + + +#### Maximum Background Threads For Delete Operations fs.swifta.connections.max.delete + +The configuration, fs.swifta.connections.max.delete, determines the maxinum number of background threads in parallel used to complete delete operations. + +The default value is 6 * number of cores available on the VM. If the number of cores is 10, it would be 60. + + + fs.swifta.connections.max.delete + 60 + + +#### Maximum Background Threads for copy operations fs.swifta.connections.max.copy + +The configuration, fs.swifta.connections.max.copy, determines the maximum number of background threads in parallel used to complete copy operations. + +The default value is 6 * number of cores available on the VM. If the number of cores is 10, it would be 60. + + + fs.swifta.connections.max.copy + 60 + + +#### Maximum parallel threads for multi-part upload operations fs.swifta.connections.max.upload + +The configuration, fs.swifta.connections.max.upload, determines the maximum number of background threads in parallel used to complete multi-part upload operations. This value would only affect MULTIPART_SPLIT and MULTIPART_SPLIT_BLOCK policies. + +The default is the minimum of the total number of parts to upload and 20, whichever is smaller. + + + fs.swifta.connections.max.upload + 20 + + +### Troubleshooting + +#### ClassNotFoundException + +The `hadoop-openstack` JAR -or any dependencies- may not be on your classpath. + +Make sure that the: +* JAR is installed on the servers in the cluster. +* 'hadoop-openstack' is on the HADOOP_OPTIONAL_TOOLS entry in hadoop-env.sh or that the job submission process uploads the JAR file to the distributed cache. + +#### Failure to Authenticate + +A `SwiftAuthenticationFailedException` is thrown when the client cannot authenticate with the OpenStack keystone server. This could be because the URL in the service definition is wrong, or because the supplied credentials are invalid. + +1. Check the authentication URL through `curl` or your browser + +2. Use a Swift client such as CyberDuck to validate your credentials + +3. If you have included a tenant ID, try leaving it out. Similarly, + try adding it if you had not included it. + +4. Try switching from API key authentication to password-based authentication, + by setting the password. + +5. Change your credentials. As with Amazon AWS clients, some credentials + don't seem to like going over the network. + +#### Timeout connecting to the Swift Service + +This happens if the client application is running outside an OpenStack cluster, where it does not have access to the private hostname/IP address for filesystem operations. Set the `public` flag to true -but remember to set it to false for use in-cluster. + +### Warnings + +1. Do not share your login details with anyone, which means do not log the + details, or check the XML configuration files into any revision control system + to which you do not have exclusive access. + +2. Similarly, do not use your real account details in any + documentation \*or any bug reports submitted online\* + +3. Prefer the apikey authentication over passwords as it is easier + to revoke a key -and some service providers allow you to set + an automatic expiry date on a key when issued. + +4. Do not use the public service endpoint from within a public OpenStack + cluster, as it will run up large bills. + +5. Remember: it's not a real filesystem or hierarchical directory structure. + Some operations (directory rename and delete) take time and are not atomic or + isolated from other operations taking place. + +6. Append is not supported. + +7. Unix-style permissions are not supported. All accounts with write access to + a repository have unlimited access; the same goes for those with read access. + +8. In the public clouds, do not make the containers public unless you are happy + with anyone reading your data, and are prepared to pay the costs of their + downloads. + +### Limits + +* Maximum length of an object path: 1024 characters + +* Maximum size of a binary object: no absolute limit. Files \> 5GB are + partitioned into separate files in the native filesystem, and merged during + retrieval. *Warning:* the partitioned/large file support is the + most complex part of the Hadoop/Swift FS integration, and, along with + authentication, the most troublesome to support. + +### Testing the hadoop-openstack module + +The `hadoop-openstack` can be remotely tested against any public or private cloud infrastructure which supports the OpenStack Keystone authentication mechanism. It can also be tested against private OpenStack clusters. OpenStack Development teams are strongly encouraged to test the Hadoop swift filesystem client against any version of Swift that they are developing or deploying, to stress their cluster and to identify bugs early. + +The module comes with a large suite of JUnit tests -tests that are only executed if the source tree includes credentials to test against a specific cluster. + +After checking out the Hadoop source tree, create the file: + + hadoop-tools/hadoop-openstack/src/test/resources/auth-keys.xml + +Into this file, insert the credentials needed to bond to the test filesystem, as decribed above. + +Next set the property `test.fs.swifta.name` to the URL of a swift container to test against. The tests expect exclusive access to this container -do not keep any other data on it, or expect it to be preserved. + + + test.fs.swifta.name + swifta://test.myswift/ + + +In the base hadoop directory, run: + + mvn clean install -DskipTests + +This builds a set of Hadoop JARs consistent with the `hadoop-openstack` module that is about to be tested. + +In the `hadoop-tools/hadoop-openstack` directory run + + mvn test -Dtest=TestSwiftRestClient + +This runs some simple tests which include authenticating against the remote swift service. If these tests fail, so will all the rest. If it does fail: check your authentication. + +Once this test succeeds, you can run the full test suite + + mvn test + +Be advised that these tests can take an hour or more, especially against a remote Swift service -or one that throttles bulk operations. + +Once the `auth-keys.xml` file is in place, the `mvn test` runs from the Hadoop source base directory will automatically run these OpenStack tests While this ensures that no regressions have occurred, it can also add significant time to test runs, and may run up bills, depending on who is providingthe Swift storage service. We recommend having a separate source tree set up purely for the Swift tests, and running it manually or by the CI tooling at a lower frequency than normal test runs. + +Finally: Apache Hadoop is an open source project. Contributions of code -including more tests- are very welcome. diff --git a/src/site/resources/css/site.css b/src/site/resources/css/site.css new file mode 100644 index 0000000..7315db3 --- /dev/null +++ b/src/site/resources/css/site.css @@ -0,0 +1,29 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +#banner { + height: 93px; + background: none; +} + +#bannerLeft img { + margin-left: 30px; + margin-top: 10px; +} + +#bannerRight img { + margin: 17px; +} diff --git a/src/site/site.xml b/src/site/site.xml new file mode 100644 index 0000000..d08acce --- /dev/null +++ b/src/site/site.xml @@ -0,0 +1,44 @@ + + + + + + + org.apache.maven.skins + maven-stylus-skin + ${maven-stylus-skin.version} + + + + + + + + + diff --git a/src/test/java/org/apache/hadoop/fs/swifta/AcceptAllFilter.java b/src/test/java/org/apache/hadoop/fs/swifta/AcceptAllFilter.java index 3d4828b..5a3d2f1 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/AcceptAllFilter.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/AcceptAllFilter.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.hadoop.fs.Path; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/SwiftFileSystemBaseTest.java b/src/test/java/org/apache/hadoop/fs/swifta/SwiftFileSystemBaseTest.java index 3b435ec..042551a 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/SwiftFileSystemBaseTest.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/SwiftFileSystemBaseTest.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import static org.apache.hadoop.fs.swifta.util.SwiftTestUtils.assertPathExists; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/SwiftTestConstants.java b/src/test/java/org/apache/hadoop/fs/swifta/SwiftTestConstants.java index 28d04c5..a278c26 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/SwiftTestConstants.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/SwiftTestConstants.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; /** diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestLogResources.java b/src/test/java/org/apache/hadoop/fs/swifta/TestLogResources.java index 0f3607b..e46d824 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestLogResources.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestLogResources.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.commons.logging.Log; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestReadPastBuffer.java b/src/test/java/org/apache/hadoop/fs/swifta/TestReadPastBuffer.java index 5d22735..4ddd00b 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestReadPastBuffer.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestReadPastBuffer.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.commons.logging.Log; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSeek.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSeek.java index fe34840..d3c050e 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSeek.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSeek.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.commons.logging.Log; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftConfig.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftConfig.java index 9a5079d..1ddbf50 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftConfig.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftConfig.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import static org.apache.hadoop.fs.swifta.http.SwiftProtocolConstants.DOT_AUTH_URL; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBasicOps.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBasicOps.java index 8427d2c..449a045 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBasicOps.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBasicOps.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import static org.apache.hadoop.fs.swifta.util.SwiftTestUtils.assertFileHasLength; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBlockLocation.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBlockLocation.java index e6edaf4..220bfde 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBlockLocation.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBlockLocation.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.hadoop.fs.BlockLocation; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBlocksize.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBlocksize.java index 49c48ce..13737dc 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBlocksize.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemBlocksize.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.hadoop.fs.FileStatus; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemConcurrency.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemConcurrency.java index 5740682..c118792 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemConcurrency.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemConcurrency.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.commons.logging.Log; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemDelete.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemDelete.java index f27cb28..661103e 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemDelete.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemDelete.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.hadoop.fs.Path; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemDirectories.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemDirectories.java index 75b8c72..0b7b320 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemDirectories.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemDirectories.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.hadoop.fs.FileStatus; @@ -39,7 +41,7 @@ public void testZeroByteFilesAreDirectories() throws Exception { Path src = path("/test/testZeroByteFilesAreFiles"); // create a zero byte file SwiftTestUtils.touch(fs, src); - SwiftTestUtils.assertIsDirectory(fs, src); + SwiftTestUtils.assertIsFile(fs, src); } @Test(timeout = SWIFT_TEST_TIMEOUT) @@ -80,7 +82,7 @@ public void testDirectoriesOffRootHaveMatchingFileStatus() throws Exception { statusString = statusToString(test.toString(), statuses); assertEquals("Wrong number of elements in file status " + statusString, 1, statuses.length); SwiftFileStatus stat = (SwiftFileStatus) statuses[0]; - assertTrue("isDirectory(): Not a directory: " + stat, stat.isDirectory()); + assertFalse("isDirectory(): Not a directory: " + stat, stat.isDirectory()); extraStatusAssertions(stat); } diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemExtendedContract.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemExtendedContract.java index 96721d7..3454a42 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemExtendedContract.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemExtendedContract.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.hadoop.conf.Configuration; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemLsOperations.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemLsOperations.java index dbef8b9..bc49331 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemLsOperations.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemLsOperations.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import static org.apache.hadoop.fs.swifta.util.SwiftTestUtils.assertListStatusFinds; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemPartitionedUploads.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemPartitionedUploads.java index 2982961..21476db 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemPartitionedUploads.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemPartitionedUploads.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import static org.apache.hadoop.fs.swifta.util.SwiftTestUtils.assertPathExists; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemRead.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemRead.java index ed8758a..8789d63 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemRead.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemRead.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import static org.apache.hadoop.fs.swifta.util.SwiftTestUtils.readBytesToString; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemRename.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemRename.java index 083e294..0890735 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemRename.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftFileSystemRename.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import static org.apache.hadoop.fs.swifta.util.SwiftTestUtils.compareByteArrays; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftObjectPath.java b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftObjectPath.java index 998cce5..c77825e 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftObjectPath.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/TestSwiftObjectPath.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta; import org.apache.commons.logging.Log; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/http/TestRestClientBindings.java b/src/test/java/org/apache/hadoop/fs/swifta/http/TestRestClientBindings.java index cfd6538..3a6ffe5 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/http/TestRestClientBindings.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/http/TestRestClientBindings.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import org.apache.hadoop.conf.Configuration; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/http/TestSwiftRestClient.java b/src/test/java/org/apache/hadoop/fs/swifta/http/TestSwiftRestClient.java index 3723ae7..8e885f0 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/http/TestSwiftRestClient.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/http/TestSwiftRestClient.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.http; import org.apache.commons.httpclient.Header; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/scale/SwiftScaleTestBase.java b/src/test/java/org/apache/hadoop/fs/swifta/scale/SwiftScaleTestBase.java index e40ace7..7a043d3 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/scale/SwiftScaleTestBase.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/scale/SwiftScaleTestBase.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.scale; import org.apache.hadoop.fs.swifta.SwiftFileSystemBaseTest; diff --git a/src/test/java/org/apache/hadoop/fs/swifta/scale/TestWriteManySmallFiles.java b/src/test/java/org/apache/hadoop/fs/swifta/scale/TestWriteManySmallFiles.java index 5efa76a..affa8aa 100644 --- a/src/test/java/org/apache/hadoop/fs/swifta/scale/TestWriteManySmallFiles.java +++ b/src/test/java/org/apache/hadoop/fs/swifta/scale/TestWriteManySmallFiles.java @@ -1,18 +1,20 @@ /* - * Licensed to the Apache Software Foundation (ASF) under one or more contributor license - * agreements. See the NOTICE file distributed with this work for additional information regarding - * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. You may obtain a - * copy of the License at + * Copyright (c) [2018]-present, Walmart Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + package org.apache.hadoop.fs.swifta.scale; import org.apache.commons.logging.Log;