zoukankan      html  css  js  c++  java
  • Phoenix Tips (12) 跟踪 Tracing

    只支持Hadoop2


    配置 hadoop-metrics2-phoenix.properties


    # Sample from all the sources every 10 seconds
    *.period=10
    
    # Write Traces to Phoenix
    ##########################
    # ensure that we receive traces on the server
    phoenix.sink.tracing.class=org.apache.phoenix.trace.PhoenixMetricsSink
    # Tell the sink where to write the metrics
    phoenix.sink.tracing.writer-class=org.apache.phoenix.trace.PhoenixTableMetricsWriter
    # Only handle traces with a context of "tracing"
    phoenix.sink.tracing.context=tracing

    配置 hadoop-metrics2-hbase.properties


    # ensure that we receive traces on the server
    hbase.sink.tracing.class=org.apache.phoenix.trace.PhoenixMetricsSink
    # Tell the sink where to write the metrics
    hbase.sink.tracing.writer-class=org.apache.phoenix.trace.PhoenixTableMetricsWriter
    # Only handle traces with a context of "tracing"
    hbase.sink.tracing.context=tracing

    配置 hbase-site.xml

    <configuration>
      <property>
    	<name>phoenix.trace.frequency</name>
        <value>always</value>
      </property>
    </configuration>
    

     
      <property>
        <name>phoenix.trace.statsTableName</name>
        <value><your custom tracing table name></value>
      </property>

    The tracing table is initialized via the ddl:

        CREATE TABLE SYSTEM.TRACING_STATS (
          trace_id BIGINT NOT NULL,
          parent_id BIGINT NOT NULL,
          span_id BIGINT NOT NULL,
          description VARCHAR,
          start_time BIGINT,
          end_time BIGINT,
          hostname VARCHAR,
          tags.count SMALLINT,
          annotations.count SMALLINT,
          CONSTRAINT pk PRIMARY KEY (trace_id, parent_id, span_id)





  • 相关阅读:
    Thrift的安装以及问题
    nodejs安装和配置
    angularjs ng-bind-html中的ng-model不生效
    设计模式之美---接口和抽象类的区别
    angular 8 不兼容IE11
    Xamarin 打包生成 Android apk 文件
    微服务的4个设计原则和19个解决方案
    RESTful API设计规范
    windows下 安装 rabbitMQ
    关于C#应用的授权认证
  • 原文地址:https://www.cnblogs.com/leeeee/p/7276364.html
Copyright © 2011-2022 走看看