def _copy_hive_configs(self, cluster_context, hue_instance): hive_server = cluster_context.get_instance(hive.HIVE_SERVER_2) if not hive_server or hive_server == hue_instance: LOG.debug('No Hive Servers found. Skip') return hive_service = cluster_context.get_service(hive.HIVE_SERVER_2) hive_conf_dir = hive_service.conf_dir(cluster_context) g.copy(hive_conf_dir, hive_server, hive_conf_dir, hue_instance, 'root')
def _install_jt_plugin(self, cluster_context, hue_instance): LOG.debug("Copying Hue JobTracker plugin") job_trackers = cluster_context.get_instances(mr.JOB_TRACKER) if not job_trackers: LOG.debug('No JobTrackers found. Skip') return jt_plugin_src = self.jt_plugin_path(cluster_context) jt_plugin_dest = cluster_context.hadoop_lib + '/jt_plugin.jar' for jt in job_trackers: g.copy(jt_plugin_src, hue_instance, jt_plugin_dest, jt, 'root')