Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
configs['hbase-site']['hbase.zookeeper.quorum'] = zks.join(',');
}
if (configs['accumulo-site']) {
configs['accumulo-site']['instance.zookeeper.host'] = zksWithPort;
}
if (configs['webhcat-site']) {
configs['webhcat-site']['templeton.zookeeper.hosts'] = zksWithPort;
}
if (configs['hive-site']) {
configs['hive-site']['hive.cluster.delegation.token.store.zookeeper.connectString'] = zksWithPort;
}
if (configs['storm-site']) {
configs['storm-site']['storm.zookeeper.servers'] = JSON.stringify(zks).replace(/"/g, "'");
}
if (App.get('isRMHaEnabled')) {
configs['yarn-site']['yarn.resourcemanager.zk-address'] = zksWithPort;
}
if (App.get('isHadoop22Stack')) {
if (configs['hive-site']) {
configs['hive-site']['hive.zookeeper.quorum'] = zksWithPort;
}
if (configs['yarn-site']) {
configs['yarn-site']['hadoop.registry.zk.quorum'] = zksWithPort;
configs['yarn-site']['yarn.resourcemanager.zk-address'] = zksWithPort;
}
}
return true;
},