Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-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 81C9817728 for ; Mon, 30 Mar 2015 14:34:12 +0000 (UTC) Received: (qmail 46806 invoked by uid 500); 30 Mar 2015 14:34:10 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 46762 invoked by uid 500); 30 Mar 2015 14:34:10 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 46745 invoked by uid 99); 30 Mar 2015 14:34:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 14:34:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of josh.elser@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qc0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 14:34:02 +0000 Received: by qcbjx9 with SMTP id jx9so72589892qcb.0 for ; Mon, 30 Mar 2015 07:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=UnhPn4VNqdZNb/75G6bVQFFYawgJpiUskDPBUT+Euas=; b=bkWNgbgiIlDrdQLZc3lsN1kM3fp8wmEqff3WKMiPJP4vy7H0rv+rpszK2yuyavmyjL YL0En5bLIwExAPnM0SEeqzqspHy2QBjGaHNaKJ/Kr3U7UwTP+cuIZLczOnf4M+ooVzQ7 RxgbEclYNcfsC8stwMbmnG+J7jZGr1ecYabyzCWHJ3VPwuf6YjLBbBQjal9n47vF/ISu YPbs81tTr7ptPPOsFY3Y9srnpuDO5h2RS3HSruG2fQOlgI+cE9T4vZTP9YqO/37DNZKP 9ZXpqRqVfDzcMKm0MWv+kCG9kdg70DDSLAX+MJweX1co+TPBwv57EVhPxfLZc8sl4NUE uPcQ== X-Received: by 10.55.48.21 with SMTP id w21mr68065896qkw.13.1427726022017; Mon, 30 Mar 2015 07:33:42 -0700 (PDT) Received: from hw10447.local (pool-72-81-135-153.bltmmd.fios.verizon.net. [72.81.135.153]) by mx.google.com with ESMTPSA id j92sm7796600qkh.16.2015.03.30.07.33.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Mar 2015 07:33:41 -0700 (PDT) Message-ID: <55195EC3.706@gmail.com> Date: Mon, 30 Mar 2015 10:33:39 -0400 From: Josh Elser User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: user@accumulo.apache.org Subject: Re: init method being called multiple times of WrappingIterator. References: <5513F321.8090705@orkash.com> <55141372.9040903@gmail.com> <5518D10B.10205@orkash.com> <55193E2D.1090009@orkash.com> In-Reply-To: <55193E2D.1090009@orkash.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Why are you using a print writer to get output from your iterator? Just use a logger and look in $ACCUMULO_HOME/logs/tserver_$hostname.debug.log (or wherever you configured logging). Create a log4j or slf4j Logger and use that instead of a print writer. (It's possible that your print writer is also what is slowing things down) In most real deployments, iterators should be faster on the server side than your client because you have N servers performing the work instead of your one client. It's not unheard of that a programming error is slowing down your iterator. Looking at what your iterator does (via logging) should help. Alternatively, you can use a remote debugger, connect a the tabletserver, and set breakpoints inside your iterator. shweta.agrawal wrote: > On Monday 30 March 2015 09:58 AM, shweta.agrawal wrote: >> Hi, >> >> Actually i am working on iterator, which i ran on server side by >> making jar and also on client side on same data, but on server side >> jar which i made is working slow than on client side. I am not able to >> find what went wrong. is it possible to work same logic more fast on >> client side than on accumulo iterators? >> >> time on client side:8s >> time on server side:30s >> >> And to get the output i am writing output on text file through print >> writer. To perform my task, i am calling my method on next method and >> i am writing output to a file in next method. So actually i want to >> know the final method which is called, so that i can write my output >> to a file after performing all the task. >> >> Thanks and Regards >> Shweta >