答案 0 :(得分:1)
请查看documentation以获取服务监视器插件及其配置文件。有两个部分,一个用于CDH(Cloudera),另一个用于HDP(Hortonworks)。
<强> CDH 强>
在/opt/kylo/kylo-services/plugin
安装服务监视器插件jar并在/opt/kylo/kylo-services/conf/
配置其属性文件。
cp /opt/kylo/setup/plugins/kylo-service-monitor-cloudera-service-<version>.jar /opt/kylo/kylo-services/plugin
chown kylo:kylo /opt/kylo/kylo-services/plugin/kylo-service-monitor-cloudera-service-<version>.jar
创建属于Kylo运行的用户的服务配置文件/opt/kylo/kylo-services/conf/cloudera.properties
。根据Cloudera Manager的配置填充这些属性并根据需要更改值。 请注意cloudera.services.status
属性,该属性定义了Kylo将监控的群集服务。
clouderaRestClientConfig.username=cloudera
clouderaRestClientConfig.password=cloudera
clouderaRestClientConfig.serverUrl=127.0.0.1
clouderaRestClientConfig.port=7180
cloudera.services.status=HDFS/[DATANODE,NAMENODE,SECONDARYNAMENODE],HIVE/[HIVEMETASTORE,HIVESERVER2],YARN,SQOOP`
重启Kylo服务
service kylo-services restart
<强> HDP 强>
在/opt/kylo/kylo-services/plugin
安装服务监视器插件jar并在/opt/kylo/kylo-services/conf/
配置其属性文件。
cp /opt/kylo/setup/plugins/kylo-service-monitor-ambari-<version>.jar /opt/kylo/kylo-services/plugin
chown kylo:kylo /opt/kylo/kylo-services/plugin/kylo-service-monitor-ambari-<version>.jar
创建属于Kylo运行的用户的服务配置文件/opt/kylo/kylo-services/conf/ambari.properties
。根据Ambari的配置填充这些属性并根据需要更改值。 请注意ambari.services.status
属性,该属性定义了Kylo将监控的群集服务。
ambariRestClientConfig.host=127.0.0.1
ambariRestClientConfig.port=8080
ambariRestClientConfig.username=admin
ambariRestClientConfig.password=admin
ambari.services.status=HDFS/[DATANODE,NAMENODE,SECONDARYNAMENODE],HIVE/[HIVEMETASTORE,HIVESERVER2],YARN,SQOOP
重启Kylo服务
service kylo-services restart
答案 1 :(得分:0)
根据您使用的是CDH还是HDP,需要安装服务插件。
http://kylo.readthedocs.io/en/latest/how-to-guides/ServiceMonitorPlugins.html
安装插件JAR文件:
cp /opt/kylo/setup/plugins/kylo-service-monitor-cloudera-service-<version>.jar /opt/kylo/kylo-services/plugin
chown kylo:kylo /opt/kylo/kylo-services/plugin/kylo-service-monitor-cloudera-service-<version>.jar
创建/opt/kylo/kylo-services/conf/cloudera.properties
配置文件:
clouderaRestClientConfig.username=cloudera
clouderaRestClientConfig.password=cloudera
clouderaRestClientConfig.serverUrl=127.0.0.1
clouderaRestClientConfig.port=7180
cloudera.services.status=HDFS/[DATANODE,NAMENODE,SECONDARYNAMENODE],HIVE/[HIVEMETASTORE,HIVESERVER2],YARN,SQOOP
然后重启Kylo:
sudo service kylo-services restart
安装插件JAR文件:
cp /opt/kylo/setup/plugins/kylo-service-monitor-ambari-<version>.jar /opt/kylo/kylo-services/plugin
chown kylo:kylo /opt/kylo/kylo-services/plugin/kylo-service-monitor-ambari-<version>.jar
创建/opt/kylo/kylo-services/conf/ambari.properties
配置文件:
ambariRestClientConfig.host=127.0.0.1
ambariRestClientConfig.port=8080
ambariRestClientConfig.username=admin
ambariRestClientConfig.password=admin
ambari.services.status=HDFS/[DATANODE,NAMENODE,SECONDARYNAMENODE],HIVE/[HIVEMETASTORE,HIVESERVER2],YARN,SQOOP
然后重启Kylo:
sudo service kylo-services restart