From user-return-7456-archive-asf-public=cust-asf.ponee.io@accumulo.apache.org Tue Jul 16 22:01:51 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6774318064E for ; Wed, 17 Jul 2019 00:01:51 +0200 (CEST) Received: (qmail 75521 invoked by uid 500); 16 Jul 2019 22:01:46 -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 75508 invoked by uid 99); 16 Jul 2019 22:01:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jul 2019 22:01:46 +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 BAD031A3328 for ; Tue, 16 Jul 2019 22:01:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.8 X-Spam-Level: * X-Spam-Status: No, score=1.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 4eIkwklVveHz for ; Tue, 16 Jul 2019 22:01:44 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::742; helo=mail-qk1-x742.google.com; envelope-from=mhdwrkoffice@gmail.com; receiver= Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id B80827E20D for ; Tue, 16 Jul 2019 22:01:43 +0000 (UTC) Received: by mail-qk1-x742.google.com with SMTP id r4so15822974qkm.13 for ; Tue, 16 Jul 2019 15:01:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=bJ9QZSLgTzsm3dHPUBRGrFUWgjfFUyuZUXxz9OMrB7I=; b=FVJGNBqvXvL+rCbrdVJhq+E0mIFkAIjq33ok9ZdhAuccyFdkZtiCN6wqDBMp5+1cC1 OrWbr5rsIWzJ47og/83E8h3p1rXFprSDLBRwGO22BaX2xc9alB/AXKlNwp7BwP6zMjFQ uOIIAQn0SXQMHx/BG5cu6RqNZXufVU9Fnw1K8HdIin28xGBoyIA+1JbWLkOC3jMmUFzz GCHCcI3E95hX6KofQNba9wJ0/Rb5G0scAv9Vo9joAeS61FyKf1Lr1Uz6P3x5tOLkCZ/i UJ3OIktmmnBmeQ/w9f3lkzovkIyp95ZfztcKAC3+anx1TVVFTTMz/WuWcUe6sK0IlQh6 tyDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=bJ9QZSLgTzsm3dHPUBRGrFUWgjfFUyuZUXxz9OMrB7I=; b=hTzg8imIv/dFh5xpxu2fyrfcPgzVM+EPTUWQfjyB2a/7DI1PvaAmmV7MDnPtQAY7ge nyr/SvZC2aY/GKqVzItCmAbR8Bp/z0QCQ5J0Ffl1b4XhWwaqzoBQ9TdJTAtUZ8jCluw/ LknDXj09WHAGEYAVH7ajapUpLnsgjIFIr/9qaThCZW0Xd9QxnXqYyhp7B9nKKRXGJkg4 lzv8ocZVYPlhEdQDSLLVt7FPfcqnedvUyyuI9LLHq1A+0EPN49JNuvn0ONyVUupFQtTK ClchtLCXsujRMULS5ihArnndJJGR9LsgkGVf7CaVDAOxG1pxpjksla9ejY0y0JowMw/0 TeJw== X-Gm-Message-State: APjAAAX3UCfKJIkx7f0N2YlcQzKYBXyfYv68Ctbb0rqJ+qbXWYXABXEB ym5Lin41Y4SkrxkyUgkSeZpZ95uIL+WflAieT9faPaZd X-Google-Smtp-Source: APXvYqy857XADrZkHIFHXmlHPm/+ym/hzJ/w6T9n078dGciPEEqapr3A7s0AVw+2GbmRNkab25mtO59B7K1XoY/nBJw= X-Received: by 2002:a37:a397:: with SMTP id m145mr22592510qke.271.1563314502346; Tue, 16 Jul 2019 15:01:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: mhd wrk Date: Tue, 16 Jul 2019 15:01:31 -0700 Message-ID: Subject: Re: scan ignores custom Formatter To: user@accumulo.apache.org Content-Type: multipart/alternative; boundary="00000000000095acfd058dd3855c" --00000000000095acfd058dd3855c Content-Type: text/plain; charset="UTF-8" Yes the jar is on all the tservers and I tried `config`command and `formatter` commands as alternatives. Unfortunately no luck yet. On Tue, Jul 16, 2019 at 1:30 PM Michael Wall wrote: > Couple of thoughts > > 1 - Are you putting the jar on all the tservers and restarting everthing? > 2 - Have you tried setting the formatter on the table as opposed to the > scan command. Something like > 'config -t mytable -s table.formatter=com.example.MyFormatter' > > Mike > > On Tue, Jul 16, 2019 at 2:50 PM mhd wrk wrote: > >> I'm trying to use a custom formatter with scan command in Accumulo shell, but seems that scan simply ignores the custom formatter and uses the default one! >> >> The steps I follow are: >> >> 1- Create custom Formatter by extending org.apache.accumulo.core.util.format.Formatter >> >> 2- Copy the jar to ${ACCUMULO_HOME}/lib >> >> 3- Restart Accumulo to make sure everything is reloaded. >> >> 4- run `accumulo shell` >> >> 5- run `classpath` and confirm that the formatter jar is included in the path. >> >> 5- `scan -f 50 -fm com.example.MyFormatter -st -t mytable` >> >> >> Accumulo version: 1.7.2 >> >> >> Any known issues? >> >> >> Thanks, >> >> Mohammad >> >> >> >> --00000000000095acfd058dd3855c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes the jar is on all the tservers and I tried `config`com= mand and `formatter` commands as alternatives.
Unfortunately no luck ye= t.

On Tue, Jul 16, 2019 at 1:30 PM Michael Wall <mjwall@apache.org> wrote:
Couple of thought= s

1 - Are you putting the jar on all the tservers and r= estarting everthing?
2 - Have you tried setting the formatter on the ta= ble as opposed to the scan command.=C2=A0 Something like
'con= fig -t mytable -s table.formatter=3Dcom.example.MyFormatter'
<= div>
Mike

On Tue, Jul 16, 2019 at 2:50 PM mhd wrk <<= a href=3D"mailto:mhdwrkoffice@gmail.com" target=3D"_blank">mhdwrkoffice@gma= il.com> wrote:
I'm trying to use a custom formatter=
 with scan command in Accumulo shell, but seems that scan simply ignores th=
e custom formatter and uses the default one!
The steps I f=
ollow are:
1- Create custom Formatter by extending org.apa=
che.accumulo.core.util.format.Formatter
2- Copy the jar to=
 ${ACCUMULO_HOME}/lib
3- Restart Accumulo to make sure everything=
 is reloaded.
4- run =
`accumulo shell`
5- r=
un `classpath` and confirm that the formatter jar is included in the path.<=
/span>
5- `scan -f 50 -fm com.example.MyFormatter -st -t m=
ytable`

Accumulo version: 1.7.2
<= /pre>

Any known issues?

Thanks,
Mohammad


--00000000000095acfd058dd3855c--