Forráskód Böngészése

AMBARI-5307 Add support for multivolumes in GlusterFS stack

Erin A Boyd 11 éve
szülő
commit
d77a1913bd

+ 20 - 8
ambari-server/src/main/resources/stacks/HDP/2.1.GlusterFS/services/GLUSTERFS/configuration/core-site.xml

@@ -50,15 +50,27 @@
          literal string "local" or a host:port for NDFS.</description>
   </property>
 
-<property>
-<name>fs.AbstractFileSystem.glusterfs.impl</name>
-<value>org.apache.hadoop.fs.local.GlusterFs</value>
-</property>
+  <property>
+  <name>fs.AbstractFileSystem.glusterfs.impl</name>
+  <value>org.apache.hadoop.fs.local.GlusterFs</value>
+  </property>
 
-<property>
-<name>fs.glusterfs.impl</name>
-<value>org.apache.hadoop.fs.glusterfs.GlusterFileSystem</value>
-</property>
+  <property>
+  <name>fs.glusterfs.impl</name>
+  <value>org.apache.hadoop.fs.glusterfs.GlusterFileSystem</value>
+  </property>
+
+  <property>
+  <name>fs.glusterfs.volumes</name>
+    <description>The name of the gluster volume(s) you would like Hadoop to use.  Values should be seperated by commas i.e. gv0, gv1</description>
+  <value>gv0</value>
+  </property>
+
+  <property>
+   <name>fs.glusterfs.volume.fuse.gv0</name>
+  <decription>The mount point that corresponds to the fs.glusterfs.volumes value</description>
+    <value>/mnt/gv0</value>
+  </property>
 
 
 <!-- Properties that I am removing to get rid of service errors -->

+ 19 - 0
ambari-web/app/data/HDP2/site_properties.js

@@ -1697,6 +1697,25 @@ module.exports =
       "serviceName": "GLUSTERFS",
       "category": "General"
     },
+    {
+      "id": "site property",
+      "name": "fs.glusterfs.volumes",
+      "displayName": "Gluster volume name(s)",
+      "displayType": "string",
+      "filename": "core-site.xml",
+      "serviceName": "GLUSTERFS",
+      "category": "General"
+    },
+    {
+      "id": "site property",
+      "name": "fs.glusterfs.volume.fuse.gv0",
+      "displayName": "Gluster mount point for volume",
+      "displayType": "string",
+      "filename": "core-site.xml",
+      "serviceName": "GLUSTERFS",
+      "category": "General"
+    },
+
               
   /********************************************* flume-agent *****************************/
     {

+ 18 - 0
ambari-web/app/data/site_properties.js

@@ -903,6 +903,24 @@ module.exports =
       "filename": "core-site.xml",
       "serviceName": "GLUSTERFS",
       "category": "General"
+    },
+    {
+      "id": "site property",
+      "name": "fs.glusterfs.volumes",
+      "displayName": "Gluster volume name(s)",
+      "displayType": "string",
+      "filename": "core-site.xml",
+      "serviceName": "GLUSTERFS",
+      "category": "General"
+    },
+    {
+      "id": "site property",
+      "name": "fs.glusterfs.volume.fuse.gv0",
+      "displayName": "Gluster mount point for volume",
+      "displayType": "string",
+      "filename": "core-site.xml",
+      "serviceName": "GLUSTERFS",
+      "category": "General"
     }
   ]
 };