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)





  • 相关阅读:
    Android 统一配置依赖管理
    Android图片压缩工具MCompressor
    Android Studio 打包自定义apk文件名
    sourceTree的下载与安装
    Mac环境下SVN的配置和使用
    AndroidStudio环境搭建
    设计模式之策略模式
    设计模式之状态模式
    设计模式之观察者模式
    mysql 查询小demo
  • 原文地址:https://www.cnblogs.com/leeeee/p/7276364.html
Copyright © 2011-2022 走看看