Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76B5A18593 for ; Thu, 23 Jul 2015 04:09:02 +0000 (UTC) Received: (qmail 40142 invoked by uid 500); 23 Jul 2015 04:08:50 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 40080 invoked by uid 500); 23 Jul 2015 04:08:49 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 40069 invoked by uid 99); 23 Jul 2015 04:08:49 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2015 04:08:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3B3131A76D6 for ; Thu, 23 Jul 2015 04:08:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id eJWvW4Tz_DX0 for ; Thu, 23 Jul 2015 04:08:40 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 9D7582122A for ; Thu, 23 Jul 2015 04:08:40 +0000 (UTC) Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id BD2272435303 for ; Wed, 22 Jul 2015 21:08:44 -0700 (PDT) Date: Wed, 22 Jul 2015 21:08:39 -0700 (MST) From: Priyanka B To: user@hbase.apache.org Message-ID: <1437624519561-4073462.post@n3.nabble.com> Subject: Htrace spans not generated for hbase client side code MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit My question is similar to the below thread, http://apache-hbase.679495.n3.nabble.com/HTrace-td4056705.html I have enabled htrace logging on server side using the below configuration in hbase-site.xml hbase.trace.spanreceiver.classes org.cloudera.htrace.impl.LocalFileSpanReceiver hbase.local-file-span-receiver.path /tmp/Server_htrace.out On the client side, I maintain a different configuration file hbase-client.xml hbase.trace.spanreceiver.classes org.cloudera.htrace.impl.LocalFileSpanReceiver hbase.local-file-span-receiver.path /tmp/Client_htrace.out I am able to see the htrace spans when I start/close spans using the hbase shell. However, when I start and close span in my client side code, I see only the server side span traces without the root parent span that is initiating the server rpc calls. Here is how I made changes to the client side code: this.spanReceiverHost = SpanReceiverHost.getInstance(conf); I have initialized the spanReceiverHost like above. The conf is hbase-client.xml here. Then before a "Get" call I have done a start and close of trace: TraceScope ts = Trace.startSpan("Gets", Sampler.ALWAYS); try { result = getTable(table).get(g); } catch (IOException e) { throw new DatabaseException("Error fetching data: " + e.getMessage()); } finally { if (ts != null) { ts.close(); } } For all the gets I see spans from the server side but no span with "Gets" in the description. I cannot make a graph out of the spans since it is missing the parent span. Am I missing something? It will be great if someone could help me on this. I have one region server, one master running in my environment and I am using hbase-0.98.8 -- View this message in context: http://apache-hbase.679495.n3.nabble.com/Htrace-spans-not-generated-for-hbase-client-side-code-tp4073462.html Sent from the HBase User mailing list archive at Nabble.com.