summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd.c
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2019-07-09 16:32:36 -0700
committerVijay Bellur <vbellur@redhat.com>2019-07-09 21:41:56 -0700
commitb82743a5822626e83b233956803421fda9b1c3f9 (patch)
treea799c827d4ee6d1756347811bfe4ce627fea0458 /xlators/mgmt/glusterd/src/glusterd.c
parentad828d2e0c930b31b870c92fbaeac7a43fee08da (diff)
Remove hadoop related code from the codebase
As Hadoop is no longer supported, dropping code for handling Hadoop access. Fixes: bz#1728417 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Change-Id: I8fcf4faacb364f1c9a8abb0c48faec337087f845
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c28
1 files changed, 3 insertions, 25 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index 131a3c2b7f2..0961f904b04 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -1018,26 +1018,19 @@ _install_mount_spec(dict_t *opts, char *key, data_t *value, void *data)
glusterd_conf_t *priv = THIS->private;
char *label = NULL;
gf_boolean_t georep = _gf_false;
- gf_boolean_t ghadoop = _gf_false;
char *pdesc = value->data;
char *volname = NULL;
int rv = 0;
gf_mount_spec_t *mspec = NULL;
char *user = NULL;
- char *volfile_server = NULL;
label = strtail(key, "mountbroker.");
- /* check for presence of geo-rep/hadoop label */
+ /* check for presence of geo-rep label */
if (!label) {
label = strtail(key, "mountbroker-" GEOREP ".");
if (label)
georep = _gf_true;
- else {
- label = strtail(key, "mountbroker-" GHADOOP ".");
- if (label)
- ghadoop = _gf_true;
- }
}
if (!label)
@@ -1048,7 +1041,7 @@ _install_mount_spec(dict_t *opts, char *key, data_t *value, void *data)
goto err;
mspec->label = label;
- if (georep || ghadoop) {
+ if (georep) {
volname = gf_strdup(pdesc);
if (!volname)
goto err;
@@ -1059,18 +1052,7 @@ _install_mount_spec(dict_t *opts, char *key, data_t *value, void *data)
} else
user = label;
- if (georep)
- rv = make_georep_mountspec(mspec, volname, user);
-
- if (ghadoop) {
- volfile_server = strchr(user, ':');
- if (volfile_server)
- *volfile_server++ = '\0';
- else
- volfile_server = "localhost";
-
- rv = make_ghadoop_mountspec(mspec, volname, user, volfile_server);
- }
+ rv = make_georep_mountspec(mspec, volname, user);
GF_FREE(volname);
if (rv != 0)
@@ -2157,10 +2139,6 @@ struct volume_options options[] = {
.type = GF_OPTION_TYPE_ANY,
},
{
- .key = {"mountbroker-" GHADOOP ".*"},
- .type = GF_OPTION_TYPE_ANY,
- },
- {
.key = {GEOREP "-log-group"},
.type = GF_OPTION_TYPE_ANY,
},