kibana-riya
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
25 lines (19 loc) • 647 B
JavaScript
;
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.ensureNotTribe = ensureNotTribe;
var _lodash = require('lodash');
function ensureNotTribe(callWithInternalUser) {
return callWithInternalUser('nodes.info', {
nodeId: '_local',
filterPath: 'nodes.*.settings.tribe'
}).then(function (info) {
var nodeId = Object.keys(info.nodes || {})[0];
var tribeSettings = (0, _lodash.get)(info, ['nodes', nodeId, 'settings', 'tribe']);
if (tribeSettings) {
throw new Error('Kibana does not support using tribe nodes as the primary elasticsearch connection.');
}
return true;
});
}