-
Notifications
You must be signed in to change notification settings - Fork 2
/
mapr.json
7757 lines (7757 loc) · 376 KB
/
mapr.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"swagger": "2.0",
"info": {
"title": "MapR API",
"description": "The information about the MapR REST API",
"contact": {
"url": "http://maprdocs.mapr.com"
},
"version": "5.2"
},
"basePath": "/rest",
"schemes": [
"https"
],
"produces": [
"application/json"
],
"paths": {
"/acl/edit": {
"get": {
"tags": [
"acl"
],
"summary": "Modifies a specific user's access to a cluster or volume.",
"description": "The `acl edit` command grants one or more specific volume or cluster permissions to a user. To use the `acl edit` command, you must have administrative (a) permissions on the volume and cluster for which you are running the command. The permissions are specified as a comma-separated list of permission codes. See [acl](http://maprdocs.mapr.com/home/ReferenceGuide/acl.html). You must specify either a `user` or a `group`. When the `type` is `volume`, a volume name must be specified using the `name` parameter.",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/acl-edit.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "The cluster on which to run the command.",
"type": "string"
},
{
"name": "group",
"in": "query",
"description": "Groups and allowed actions for each group. See [acl](http://maprdocs.mapr.com/home/ReferenceGuide/acl.html). Format: `<group>:<action>[,<action>...][ <group>:<action>[,<action...]]`",
"type": "string"
},
{
"name": "name",
"in": "query",
"description": "The object name.",
"type": "string"
},
{
"name": "type",
"in": "query",
"description": "The object type (`cluster` or `volume`).",
"required": true,
"type": "string",
"enum": [
"cluster",
"volume"
]
},
{
"name": "user",
"in": "query",
"description": "Users and allowed actions for each user. See [acl](http://maprdocs.mapr.com/home/ReferenceGuide/acl.html). Format: `<user>:<action>[,<action>...][ <user>:<action>[,<action...]]`",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/acl/set": {
"get": {
"tags": [
"acl"
],
"summary": "Modifies the ACL for a cluster or volume.",
"description": "The `acl set` command specifies the entire ACL for a cluster or volume. Any previous permissions are overwritten by the new values, and any permissions omitted are removed. To use the `acl set` command, you must have administrative (a) permissions on the volume and cluster for which you are running the command. The permissions are specified as a comma-separated list of permission codes. See [acl](http://maprdocs.mapr.com/home/ReferenceGuide/acl.html). You must specify either a `user` or a `group`. When the `type` is `volume`, a volume name must be specified using the `name` parameter.\n\n \n\nNote: The `acl set` command removes any previous ACL values. If you wish to preserve some of the permissions, you should either use the [`acl edit`](http://maprdocs.mapr.com/home/ReferenceGuide/acl-edit.html) command instead of `acl set`, or use [`acl show`](http://maprdocs.mapr.com/home/ReferenceGuide/acl-show.html) to list the values before overwriting them.",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/acl-set.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "The cluster on which to run the command.",
"type": "string"
},
{
"name": "group",
"in": "query",
"description": "Groups and allowed actions for each group. See [acl](http://maprdocs.mapr.com/home/ReferenceGuide/acl.html). Format: `<group>:<action>[,<action>...][ <group>:<action>[,<action...]]`",
"type": "string"
},
{
"name": "name",
"in": "query",
"description": "The object name.",
"type": "string"
},
{
"name": "type",
"in": "query",
"description": "The object type (`cluster` or `volume`).",
"required": true,
"type": "string",
"enum": [
"cluster",
"volume"
]
},
{
"name": "user",
"in": "query",
"description": "Users and allowed actions for each user. See [acl](http://maprdocs.mapr.com/home/ReferenceGuide/acl.html). Format: `<user>:<action>[,<action>...][ <user>:<action>[,<action...]]`",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/acl/show": {
"get": {
"tags": [
"acl"
],
"summary": "Displays the ACL associated with an object (cluster or a volume).",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/acl-show.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "The name of the cluster on which to run the command.",
"type": "string"
},
{
"name": "group",
"in": "query",
"description": "The group for which to display permissions.",
"type": "string"
},
{
"name": "name",
"in": "query",
"description": "The cluster or volume name.",
"type": "string"
},
{
"name": "output",
"in": "query",
"description": "The output format:\n\n \n \n* long \n* short \n* terse",
"type": "string",
"enum": [
"long",
"short",
"terse"
]
},
{
"name": "perm",
"in": "query",
"description": "When this option is specified, `acl show` displays the permissions available for the object type specified in the `type` parameter.",
"type": "string"
},
{
"name": "type",
"in": "query",
"description": "Value can be: `cluster` or `volume`.",
"required": true,
"type": "string",
"enum": [
"cluster",
"volume"
]
},
{
"name": "user",
"in": "query",
"description": "The user for which to display permissions",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/alarm/clear": {
"get": {
"tags": [
"alarm"
],
"summary": "Clears one or more alarms. Permissions required: fc or a .",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/alarm-clear.html"
},
"parameters": [
{
"name": "alarm",
"in": "query",
"description": "The named alarm to clear. See [Alarm Types](http://maprdocs.mapr.com/home/ReferenceGuide/alarm.html).",
"required": true,
"type": "string"
},
{
"name": "cluster",
"in": "query",
"description": "The cluster on which to run the command.",
"type": "string"
},
{
"name": "entity",
"in": "query",
"description": "The entity on which to clear the alarm.",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/alarm/clearall": {
"get": {
"tags": [
"alarm"
],
"summary": "Clears all alarms. Permissions required: fc or a .",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/alarm-clearall.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "The cluster on which to run the command.",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/alarm/config/load": {
"get": {
"tags": [
"alarm"
],
"summary": "Displays the configuration of alarm notifications. Permission required: login",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/alarm-config-load.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "The cluster on which to run the command.",
"type": "string"
},
{
"name": "output",
"in": "query",
"description": "Whether the output should be terse or verbose.",
"type": "string",
"enum": [
"terse",
"verbose"
]
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/alarm/config/save": {
"get": {
"tags": [
"alarm"
],
"summary": "Sets notification preferences for alarms. Permissions required: fc or a .",
"description": "Alarm notifications can be sent to the default email address and a specific email address for each named alarm. If `individual` is set to `1` for a specific alarm, then notifications for that alarm are sent to the default email address for the alarm type. If a custom email address is provided, notifications are sent there regardless of whether they are also sent to the default email address.",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/alarm-config-save.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "The cluster on which to run the command.",
"type": "string"
},
{
"name": "values",
"in": "query",
"description": "A comma-separated list of configuration values for one or more alarms, in the following format: `<alarm>,<individual>,<email>` See [Alarm Notification Fields](http://maprdocs.mapr.com/home/ReferenceGuide/alarm.html).",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/alarm/list": {
"get": {
"tags": [
"alarm"
],
"summary": "Lists alarms in the system. Permissions required: login .",
"description": "You can list all alarms, alarms by type (Cluster, Node or Volume), or alarms on a particular node or volume. To retrieve a count of all alarm types, pass `1` in the `summary` parameter. You can specify the alarms to return by filtering on type and entity. Use `start` and `limit` to retrieve only a specified window of data.",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/alarm-list.html"
},
"parameters": [
{
"name": "alarm",
"in": "query",
"description": "The alarm name for which to return information.",
"type": "string"
},
{
"name": "cluster",
"in": "query",
"description": "The cluster on which to list alarms.",
"type": "string"
},
{
"name": "entity",
"in": "query",
"description": "The name of the cluster, node, volume, user, or group to check for alarms.",
"type": "string"
},
{
"name": "limit",
"in": "query",
"description": "The number of records to retrieve. Default: 2147483647",
"type": "string"
},
{
"name": "output",
"in": "query",
"description": "Whether the output should be terse or verbose. Default: 0",
"type": "string",
"enum": [
"terse",
"verbose"
]
},
{
"name": "start",
"in": "query",
"description": "The list offset at which to start. Default: 0.",
"type": "string"
},
{
"name": "summary",
"in": "query",
"description": "Specifies the type of data to return:\n \n* 1 = count by alarm type \n* 0 = List of alarms \n\n Default: 0",
"type": "boolean",
"enum": [
"1",
"0"
]
},
{
"name": "type",
"in": "query",
"description": "The entity type:\n\n \n \n* `cluster` \n* `node` \n* `volume` \n* `ae`",
"type": "string",
"enum": [
"cluster",
"node",
"volume",
"AE"
]
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/alarm/names": {
"get": {
"tags": [
"alarm"
],
"summary": "Displays a list of alarm names. Permissions required: login",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/alarm-names.html"
},
"parameters": [],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/alarm/raise": {
"get": {
"tags": [
"alarm"
],
"summary": "Raises a specified alarm or alarms. Permissions required: fc or a .",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/alarm-raise.html"
},
"parameters": [
{
"name": "alarm",
"in": "query",
"description": "The alarm type to raise. See [Alarm Types](http://maprdocs.mapr.com/home/ReferenceGuide/alarm.html).",
"required": true,
"type": "string"
},
{
"name": "cluster",
"in": "query",
"description": "The cluster on which to run the command.",
"type": "string"
},
{
"name": "description",
"in": "query",
"description": "A brief description.",
"type": "string"
},
{
"name": "entity",
"in": "query",
"description": "The entity on which to raise alarms.",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/audit/cluster": {
"get": {
"tags": [
"audit"
],
"summary": "Enables and disables auditing of operations that are related to the administration of a MapR cluster.",
"description": "Only the `mapr` user for the cluster can run this command. For more information about the mapr user, see [Managing Users and Groups](http://maprdocs.mapr.com/home/AdministratorGuide/c-managing-users-and-groups.html#Managing-Users-and-Groups-rootisusedtoinstallM-d3e62).\n\n \n\nFor information about auditing cluster-administration operations, see [Auditing of Activity Related to Cluster Administration](http://maprdocs.mapr.com/home/SecurityGuide/AuditingClusterAdminActivity.html#AuditingofActivityRelatedtoClusterAdministration).",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/audit-cluster.html"
},
"parameters": [
{
"name": "enabled",
"in": "query",
"description": "The value `true` enables auditing, the value `false` disables it.",
"type": "boolean",
"enum": [
"true",
"false"
]
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/audit/data": {
"get": {
"tags": [
"audit"
],
"summary": "Enables and disables auditing of filesystem and table operations.",
"description": "For a list of these operations, see [Auditing of Filesystem Operations and Table Operations](http://maprdocs.mapr.com/home/SecurityGuide/Auditing-FilesystemTableOperations.html#AuditingofFilesystemOperationsandTableOperations).\n\n \n\nOnly the `mapr` user for the cluster can run this command. For more information about the mapr user, see [Managing Users and Groups](http://maprdocs.mapr.com/home/AdministratorGuide/c-managing-users-and-groups.html).",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/audit-data.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "The path and name of a remote MapR cluster.",
"type": "string"
},
{
"name": "enabled",
"in": "query",
"description": "The value `true` enables auditing, the value `false` disables it.",
"type": "boolean",
"enum": [
"true",
"false"
]
},
{
"name": "maxsize",
"in": "query",
"description": "The size in GB at which an alarm is sent to the dashboard in the MapR Control Service. The alarm is to notify the cluster administrator that the audit log is becoming large enough that the administrator might want to take action. For more information about this parameter, the alarm, and possible actions to take, see [Managing Audit Logs for Filesystem and Table Operations](http://maprdocs.mapr.com/home/SecurityGuide/ManagingAuditLogs-FS-DB-Operations.html#ManagingAuditLogsforFilesystemandTableOperations). \n\nThe audit log continues to grow until the administrator takes action or until the retention period ends.\n\n \n\nThe default value is 32.",
"type": "string"
},
{
"name": "retention",
"in": "query",
"description": "The period of time in days for which to keep the data in the audit log for the data access. After this period elapses, the content of the file is deleted and new entries are added to the file until the next retention period elapses.",
"type": "string"
},
{
"name": "coalesce",
"in": "query",
"description": "Sets an interval during which READ, WRITE, or GETATTR operations on one file from one client IP address are logged only once.\n\nFor example, suppose that a client application reads a single file three times in 6 minutes, so that there is one read at 0 minutes, another at 3 minutes, and a final read at 6 minutes. If the coalesce interval is at least 6 minutes, then only the first read operation is logged. However, if the interval is between 4 minutes, then only the first and third read operations are logged. If the interval is 2 minutes, all three read operations are logged.\n\n \n\nYou can set this interval on individual volumes. The default value is 60 minutes. Setting this field to a larger number helps prevent audit logs from growing quickly.",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/audit/info": {
"get": {
"tags": [
"audit"
],
"summary": "Displays whether auditing of cluster-management operations and auditing data-access operations are enabled. Also, displays the maxSize and retention values for these two levels of auditing.",
"description": "Only the `mapr` user for the cluster can run this command. For more information about the `mapr` user, see [Managing Users and Groups](http://maprdocs.mapr.com/home/AdministratorGuide/c-managing-users-and-groups.html#Managing-Users-and-Groups-rootisusedtoinstallM-d3e62).",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/audit-info.html"
},
"parameters": [],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/cluster/gateway/delete": {
"get": {
"tags": [
"cluster"
],
"summary": "Deletes the list of MapR gateways from a source MapR cluster.",
"description": "Source MapR clusters can use such lists to locate the gateways that enable replication of table data to a particular MapR cluster or indexing of table data in a particular Elasticsearch cluster. You create lists of gateways by running the `maprcli cluster gateway set` command.\n\n \n\nThere are three methods of specifying the location of gateways to a MapR cluster that is a source for table replication or indexing in Elasticsearch. If a source MapR cluster relies on DNS records to find out where gateways are located, or the cluster relies on the `mapr-clusters.conf` file to locate gateways, there is no list for the cluster gateway delete command to delete. \n\n \n\nNote: Deleting a list of gateways with the `maprcli cluster gateway delete` command does not uninstall the listed gateways from the MapR cluster where they are located.",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/cluster-gateway-delete.html"
},
"parameters": [
{
"name": "dstcluster",
"in": "query",
"description": "The name of the cluster on which the gateways are located.\n\n \n\nIf you are replicating table data to another MapR cluster, specify the name of that destination cluster. This destination cluster could be the source cluster if you are performing intracluster replication.\n\n \n\nIf you are indexing table data in an Elasticsearch cluster, specify the name of the source MapR cluster because that is where the gateways are located.",
"type": "string"
},
{
"name": "cluster",
"in": "query",
"description": "If you are not on the source cluster, provide the name of the source cluster that this command should be run on,",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/cluster/gateway/get": {
"get": {
"tags": [
"cluster"
],
"summary": "Lists the MapR gateways that a source MapR cluster is using.",
"description": "The source MapR cluster could be using the MapR gateways either for replication of table data to a destination MapR cluster or for the indexing of data in an Elasticsearch cluster.\n\n \n\nThis list of gateways is created by the `maprcli cluster gateway set` command.",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/cluster-gateway-get.html"
},
"parameters": [
{
"name": "dstcluster",
"in": "query",
"description": "The name of the cluster on which the gateways are located.\n\n \n\nIf you are replicating table data to another MapR cluster, specify the name of that destination cluster. This destination cluster could be the source cluster if you are performing intracluster replication.\n\n \n\nIf you are indexing table data in an Elasticsearch cluster, specify the name of the source MapR cluster because that is where the gateways are located.",
"type": "string"
},
{
"name": "cluster",
"in": "query",
"description": "If you are not on the source cluster, provide the name of the source cluster that this command should be run on.",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/cluster/gateway/list": {
"get": {
"tags": [
"cluster"
],
"summary": "Lists all of the gateways that a source MapR cluster is using.",
"description": "The source MapR cluster is using gateways either for replication of table data to destination MapR clusters or for the indexing of table data in Elasticsearch clusters.\n\n \n\nThis list is created by the `maprcli cluster gateway set` command.",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/cluster-gateway-list.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "If you are not on the source cluster, provide the name of the source cluster that this command should be run on.",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/cluster/gateway/local": {
"get": {
"tags": [
"cluster"
],
"summary": "Lists the gateways that are configured on the MapR cluster where this command is run.",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/cluster-gateway-local.html"
},
"parameters": [
{
"name": "format",
"in": "query",
"description": "The output format. Value types: `dns` or `text`. Default: `text`. \n\nNote: \n \n* If the output is formatted as DNS, you can copy and paste the output into a DNS record in the zone file for your domain. The source MapR cluster can then locate the gateways by doing a DNS lookup. \n* If the output is formatted as text, you can copy and paste that text into the `-gateways` parameter of the `maprcli cluster gateway set` command. Running this command is an alternative way of specifying the location of these gateways to the source MapR cluster.",
"type": "string",
"enum": [
"dns",
"text"
]
},
{
"name": "cluster",
"in": "query",
"description": "If you are not on a MapR cluster where one or more gateways are configured, provide the name of the cluster. \n \n* When replicating MapR-DB table data to one or more replicas on this cluster, then the cluster is a destination MapR cluster. \n* When indexing MapR-DB table data in one or more Elasticsearch cluster, then the current cluster is a source MapR cluster where the tables being indexed are located.",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/cluster/gateway/resolve": {
"get": {
"tags": [
"cluster"
],
"summary": "Lists the gateways configured on MapR cluster that are up and running at the time that the command is issued.",
"description": "Execute this command on a source MapR cluster to find out how many gateways are available for table replication to a destination MapR cluster or for indexing table data in an Elasticsearch cluster.\n\n \n\nThis command uses the following criteria to get the list:\n\n \n \n* \n\nIf the locations of the gateways were specified with the `marpcli cluster gateway set` command, the maprcli cluster gateway resolve command returns the list of the gateways.\n\n \n* \n\nIf the locations of the gateways were specified with a DNS record only, this command performs a DNS lookup for gateways on the specified MapR cluster and returns the list that it finds.\n\n \n* \n\nIf neither of the previous methods was used to specify the locations of the gateways, this command assumes that gateways are located on the CLDB nodes configured in the `mapr-clusters.conf` file on the MapR cluster where the command is executed.\n\n \n\n \n\nNote: Unresponsive gateways are not included in the list.\n\n \n\nFor more information about gateways, see [ MapR Gateways](http://maprdocs.mapr.com/home/Gateways/MapRGateways.html).",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/cluster-gateway-resolve.html"
},
"parameters": [
{
"name": "dstcluster",
"in": "query",
"description": "The name of the cluster for which you want to list the available gateways.\n\n \n\nIf you are replicating table data to another MapR cluster, specify the name of that destination cluster. This destination cluster could be the source cluster if you are performing intracluster replication.\n\n \n\nIf you are indexing table data in an Elasticsearch cluster, specify the name of the source MapR cluster because that is where the gateways are located.",
"type": "string"
},
{
"name": "cluster",
"in": "query",
"description": "If you are not on the source MapR cluster, provide the name of the source cluster that this command should be run on.",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/cluster/gateway/set": {
"get": {
"tags": [
"cluster"
],
"summary": "Specifies the locations of the MapR gateways that a source MapR cluster can use for table replication to a destination MapR cluster or for indexing table data in an Elasticsearch cluster.",
"description": "In addition to this method, there are two other methods that you can use to specify the locations of gateways that a source MapR cluster can use when replicating to a particular MapR cluster or when indexing in an Elasticsearch cluster. See [Configuring a MapR Gateway Master-Slave Topology](http://maprdocs.mapr.com/home/Gateways/ConfiguringMapRGatewaysForTRAndI.html) for details about them.",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/cluster-gateway-set.html"
},
"parameters": [
{
"name": "dstcluster",
"in": "query",
"description": "The name of the MapR cluster in which the gateways are located.\n\n \n\nIf you are replicating table data to another MapR cluster, specify the name of that destination cluster. This destination cluster could be the source cluster if you are performing intracluster replication.\n\n \n\nIf you are indexing table data in an Elasticsearch cluster, specify the name of the source MapR cluster because that is where the gateways are located.",
"type": "string"
},
{
"name": "gateways",
"in": "query",
"description": "A space-delimited list of gateway hostnames or IP addresses. Place double quotation marks around the list of gateways, as in this example: `-gateways \"gateway1 gateway2\"`",
"type": "string"
},
{
"name": "cluster",
"in": "query",
"description": "If you are not on the source MapR cluster, provide the name of that cluster.",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/cluster/mapreduce/get": {
"get": {
"tags": [
"cluster"
],
"summary": "Displays the cluster-wide default for the MapReduce mode.",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/cluster-mapreduce-get.html"
},
"parameters": [],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/cluster/mapreduce/set": {
"get": {
"tags": [
"cluster"
],
"summary": "Sets the cluster-wide MapReduce mode.",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/cluster-mapreduce-set.html"
},
"parameters": [
{
"name": "mode",
"in": "query",
"description": "The MapReduce mode of the cluster. Enter one of the following:\n\n \n \n* `classic`: Use JobTracker and TaskTracker to run MapReduce Jobs. \n* `yarn`: Use Resource Manager and Node Manager to run MapReduce jobs or applications.",
"type": "string",
"enum": [
"yarn",
"classic"
]
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/config/load": {
"get": {
"tags": [
"config"
],
"summary": "Displays information about the cluster configuration.",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/config-load.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "The cluster for which to display values.",
"type": "string"
},
{
"name": "keys",
"in": "query",
"description": "This parameter is used to specify which information to display. Comma-separated fields are used to display values; see the [Configuration Fields](http://maprdocs.mapr.com/home/ReferenceGuide/config.html) table.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/config/save": {
"get": {
"tags": [
"config"
],
"summary": "Saves configuration information, specified as key/value pairs. Permissions required: fc or a .",
"description": "See the [Configuration Fields](http://maprdocs.mapr.com/home/ReferenceGuide/config.html) table.",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/config-save.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "The cluster on which to run the command.",
"type": "string"
},
{
"name": "values",
"in": "query",
"description": "A JSON object containing configuration fields; see the [Configuration Fields](http://maprdocs.mapr.com/home/ReferenceGuide/config.html) table.",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/dashboard/info": {
"get": {
"tags": [
"dashboard info"
],
"summary": "Displays a summary of information about the cluster.",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/dashboard-info.html"
},
"parameters": [
{
"name": "cluster",
"in": "query",
"description": "The cluster on which to run the command.",
"type": "string"
},
{
"name": "multi_cluster_info",
"in": "query",
"description": "Specifies whether to display cluster information from multiple clusters. \n\n \n\nValues: true/false. Default: false",
"type": "boolean",
"enum": [
"true",
"false"
]
},
{
"name": "version",
"in": "query",
"description": "Specifies whether to display the version. Values: true/false. Default: false",
"type": "boolean",
"enum": [
"true",
"false"
]
},
{
"name": "zkconnect",
"in": "query",
"description": "[ZooKeeper Connect String](http://maprdocs.mapr.com/home/ReferenceGuide/maprcli-REST-API-Syntax-CommonParameters.html#concept_ymb_yxz_5t)",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/dialhome/ackdial": {
"get": {
"tags": [
"dialhome"
],
"summary": "Acknowledges the most recent Dial Home on the cluster. Permissions required: login",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/dialhome-ackdial.html"
},
"parameters": [
{
"name": "forDay",
"in": "query",
"description": "Date for which the recorded metrics were successfully dialed home. Accepted values: UTC timestamp or a UTC date in MM/DD/YY format. Default: yesterday",
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/dialhome/enable": {
"get": {
"tags": [
"dialhome"
],
"summary": "Enables Dial Home on the cluster. Permissions required: fc or a",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/dialhome-enable.html"
},
"parameters": [
{
"name": "enable",
"in": "query",
"description": "Specifies whether to enable or disable Dial Home:\n\n \n \n* 0 - Disable \n* 1 - Enable",
"type": "string",
"enum": [
"0",
"1"
]
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/dialhome/lastdialed": {
"get": {
"tags": [
"dialhome"
],
"summary": "Displays the date of the last successful Dial Home call. Permissions required: fc or a .",
"description": "",
"externalDocs": {
"url": "http://maprdocs.mapr.com/home/ReferenceGuide/dialhome-lastdialed.html"
},
"parameters": [],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/dialhome/metrics": {
"get": {
"tags": [
"dialhome"
],
"summary": "Returns a compressed metrics object. Permissions required: login.",
"description": "",