无法在kylo ui中看到所有服务

时间:2018-01-16 11:58:45

标签: kylo

我无法在服务部分的Kylo UI上获得HDFS,Hive和Spark。 enter image description here

有没有人对此有所了解。

2 个答案:

答案 0 :(得分:1)

请查看documentation以获取服务监视器插件及其配置文件。有两个部分,一个用于CDH(Cloudera),另一个用于HDP(Hortonworks)。

<强> CDH

  1. /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
  2. 创建属于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`
    
  3. 重启Kylo服务

    service kylo-services restart
  4. <强> HD​​P

    1. /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
    2. 创建属于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
      
    3. 重启Kylo服务

      service kylo-services restart

答案 1 :(得分:0)

根据您使用的是CDH还是HDP,需要安装服务插件。

http://kylo.readthedocs.io/en/latest/how-to-guides/ServiceMonitorPlugins.html

Cloudera Manager

安装插件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

Ambari

安装插件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