ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amag...@apache.org
Subject [ambari] 14/15: AMBARI-22121. Create mpack for Isilon OneFS (amagyar)
Date Wed, 10 Jan 2018 11:00:15 GMT
This is an automated email from the ASF dual-hosted git repository.

amagyar pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git

commit 97bd0d8623620f8689923b3732b642f2baea477b
Author: Attila Magyar <amagyar@hortonworks.com>
AuthorDate: Fri Jan 5 16:28:56 2018 +0100

    AMBARI-22121. Create mpack for Isilon OneFS (amagyar)
---
 .../src/main/resources/addon-services/ONEFS/1.0.0/metainfo.xml     | 2 +-
 .../addon-services/ONEFS/1.0.0/package/scripts/onefs_client.py     | 7 +++++++
 .../addon-services/ONEFS/1.0.0/package/scripts/params_linux.py     | 2 ++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/metainfo.xml
b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/metainfo.xml
index 06a90d9..907ef7c 100644
--- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/metainfo.xml
+++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/metainfo.xml
@@ -32,7 +32,7 @@
           <category>CLIENT</category>
           <componentType>HCFS_CLIENT</componentType>
           <cardinality>1+</cardinality>
-          <versionAdvertised>true</versionAdvertised>
+          <versionAdvertised>false</versionAdvertised>
           <commandScript>
             <script>scripts/onefs_client.py</script>
             <scriptType>PYTHON</scriptType>
diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/onefs_client.py
b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/onefs_client.py
index dbf1331..b8ae3de 100644
--- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/onefs_client.py
+++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/onefs_client.py
@@ -16,6 +16,8 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 """
+from resource_management.libraries.functions import format
+from resource_management import File, StaticFile
 from resource_management.core.exceptions import ClientComponentHasNoStatus
 from resource_management.libraries.script import Script
 from resource_management.libraries.resources.xml_config import XmlConfig
@@ -51,6 +53,11 @@ class OneFsClient(Script):
             mode=0644
     )
 
+    File(format("{params.ambari_libs_dir}/fast-hdfs-resource.jar"),
+         mode=0644,
+         content=StaticFile("/var/lib/ambari-agent/cache/stack-hooks/before-START/files/fast-hdfs-resource.jar")
+         )
+
 if __name__ == "__main__":
   OneFsClient().execute()
 
diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_linux.py
b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_linux.py
index 79aff8f..bfed8cf 100644
--- a/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_linux.py
+++ b/contrib/management-packs/isilon-onefs-mpack/src/main/resources/addon-services/ONEFS/1.0.0/package/scripts/params_linux.py
@@ -47,6 +47,8 @@ default_fs = config['configurations']['core-site']['fs.defaultFS']
 java64_home = config['hostLevelParams']['java_home']
 java_exec = format("{java64_home}/bin/java")
 
+ambari_libs_dir = "/var/lib/ambari-agent/lib"
+
 import functools
 #create partial functions with common arguments for every HdfsResource call
 #to create/delete/copyfromlocal hdfs directories/files we need to call params.HdfsResource
in code

-- 
To stop receiving notification emails like this one, please contact
"commits@ambari.apache.org" <commits@ambari.apache.org>.

Mime
View raw message