From dev-return-16782-archive-asf-public=cust-asf.ponee.io@nifi.apache.org Mon Mar 26 00:46:06 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id DCB9918063B for ; Mon, 26 Mar 2018 00:46:05 +0200 (CEST) Received: (qmail 12075 invoked by uid 500); 25 Mar 2018 22:46:04 -0000 Mailing-List: contact dev-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list dev@nifi.apache.org Received: (qmail 12059 invoked by uid 99); 25 Mar 2018 22:46:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Mar 2018 22:46:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A7D8FC00CD for ; Sun, 25 Mar 2018 22:46:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.042 X-Spam-Level: *** X-Spam-Status: No, score=3.042 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_10_20=1.162, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=interset.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id QjjsryPDNIBY for ; Sun, 25 Mar 2018 22:46:01 +0000 (UTC) Received: from mail-ot0-f175.google.com (mail-ot0-f175.google.com [74.125.82.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 65C6560D8C for ; Sun, 25 Mar 2018 22:46:01 +0000 (UTC) Received: by mail-ot0-f175.google.com with SMTP id l12-v6so18678260otj.7 for ; Sun, 25 Mar 2018 15:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interset.com; s=google; h=user-agent:date:subject:from:to:message-id:thread-topic :mime-version; bh=ydlYMj02Znv6th7j/XrUMa8tp0MFSBIYrik2Vyv5QMA=; b=ejRb7fVjhwyS5NB3OIeIFetIGH1AXSfdUKefantd1xIunzthm2SUIjJlkx2ZheOcfP WnlBSZK/t2/hkibqAMztqiMokcgypXHbCeB6gIvUbv1RJW7lMQ+BFIAP/9I12XVmiG5a +ZHJrIYUfE2T9d5HFCRXk/4RP5EADb8FTkfzDA+ddt9mt8trCN8qJHKA7GvT9biktjfJ 1/RzShQmNG6MPuqSNgVeNuh2QrNce9HRHQ84gf6g0xOjnYObgrJO0t11ZOgdKG/w5hOm qS4b0zC+2RJVQSuhapNTh6is5+1uxuJ5ub71cacfxTzx5UKdqyVmFwvG7XfYzgDv7yM9 HmNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:date:subject:from:to:message-id :thread-topic:mime-version; bh=ydlYMj02Znv6th7j/XrUMa8tp0MFSBIYrik2Vyv5QMA=; b=sKU2Ig+4OZ/6JKHutlDbIV5zGd1lzJnxeCa2ZZ9CkWkWsBt+eFetaeCgRtAinJDItN jd6AL/eVXtfeHvDxPoA1v4VLVtx2RUoby0K+yXacTnwsJ4n0rGRTxsMuU7EnR2NJHJis XnECkTIbW0l9YUD8XhmAP0RdxyKsRW8eVkxGKj5JzrGz4yOPJPAK70KzSfvF49DXmwAp cu6wyTJZGpr6Tcmkt/OtM7ki2rm1AELIcd9TfdWJG/G7X5kAp0/icdrKdZHf2lgOoVhY WkHyuAxMl8dnpLi0rQ6cKYoLoI97BVkFP09ppwCtJmMK1keglJaweJJXanNajAVsUFao xEpA== X-Gm-Message-State: AElRT7HKoTVrxQ3H4eZep6iDFht3hXXp4DV/2oGIRQYflvSVQUH0QO1T 82+2rLrHdHFmfviojML/ExmgwfsLIY0ZCC/GcE/ec16njhHmr2gzmQP8piwcPontv0BxbvIt1DW RsIz9gJClimZpbI9go8zbE2o/VXPxwtBQr5C+pgMStFwzJ93qHlf294LuoIcn X-Google-Smtp-Source: AIpwx4+Gl/7RgtGSqZZFWP0qn/aGVGygsCo2J5DYBeCmlghlm+oIEQiPN72+RWdFEw1SpaiNsNEvuA== X-Received: by 2002:a9d:1b2a:: with SMTP id l39-v6mr12580891otl.81.1522017954661; Sun, 25 Mar 2018 15:45:54 -0700 (PDT) Received: from [192.168.1.94] ([2600:1700:1960:2390:b184:67bd:a6ce:9fd5]) by smtp.gmail.com with ESMTPSA id h12-v6sm8097082oti.17.2018.03.25.15.45.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Mar 2018 15:45:53 -0700 (PDT) User-Agent: Microsoft-MacOutlook/f.29.0.171205 Date: Sun, 25 Mar 2018 18:45:52 -0400 Subject: published by PublishKafkaRecord_0_10 doesn't embed schema. From: Milan Das To: "dev@nifi.apache.org" Message-ID: <26C077FA-210E-4F66-AA21-B7F134F8DAA1@interset.com> Thread-Topic: published by PublishKafkaRecord_0_10 doesn't embed schema. Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3604848353_431845315" --B_3604848353_431845315 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: quoted-printable Hello Nifi Users, Apparently, it seems like PublishKafkaRecord_0_10 doesn't embed schema even= if it Avro Record writer is configured with =E2=80=9CEmbed Avro Schema=E2=80=9D. I have seen the following post from Bryan Brende.=C2=A0 Wondering if it is a kn= own issue or if I am missing anything here. =20 https://community.hortonworks.com/questions/110652/cant-consume-avro-messag= es-whcih-are-published-by.html =20 =20 This is how message looks in Kafka-console-consumer, when published using =E2= =80=9CPublishKafkaRecord_0_11=E2=80=9D =20 =20 $ bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic = test --from-beginning =20 =EF=BF=BDSUCCESS6controller1.ad.interset.com=EF=BF=BDH22018-03-15T09:07:04-04:00CONTROL= LER1$=EF=BF=BDzpA =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 =EF=BF=BD=3Dh*=EF=BF=BDp=EF=BF=BD=EF=BF=BDl =EF=BF=BDSUCCESS6controller1.ad.interset.com=EF=BF=BDH22018-03-15T09:07:04-04:00CONTROL= LER1$+=EF=BF=BD=3D=EF=BF=BD=D8=AA=EF=BF=BD=EF=BF=BD;=EF=BF=BD.Y7 =EF=BF=BDSUCCESS6controller1.ad.interset.com=EF=BF=BDH22018-03-15T09:07:04-04:00CONTROL= LER1$=EF=BF=BDD=EF=BF=BDp=EF=BF=BD=EF=BF=BD"B=EF=BF=BD=EF=BF=BD=C2=A0=C2=A0 r0 =EF=BF=BDSUCCESS6controller1.ad.interset.com=EF=BF=BDH22018-03-15T09:07:04-04:00CONTROL= LER1$ekLl=EF=BF=BD;]=EF=BF=BD,Y=EF=BF=BD=CD=99=EF=BF=BD =EF=BF=BDSUCCESS6controller1.ad.interset.com=EF=BF=BDH22018-03-15T09:07:04-04:00CONTROL= LER1$=EF=BF=BDz=EF=BF=BD=EF=BF=BDkl=C5=A4=EF=BF=BD1=EF=BF=BD'=EF=BF=BDz=EF=BF=BD =EF=BF=BDSUCCESS6controller1.ad.interset.com=EF=BF=BDH22018-03-15T09:07:04-04:00CONTROL= LER1$=EF=BF=BD=EF=BF=BD=EF=BF=BD=CE=BEu=EF=BF=BD=EF=BF=BD5=EF=BF=BDV}>=EF=BF=BD_ =EF=BF=BDSUCCESS6controller1.ad.interset.com=EF=BF=BDH22018-03-15T09:07:04-04:00CONTROL= LER1$=EF=BF=BD=EF=BF=BD=3D%=EF=BF=BD=EF=BF=BDV=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BDbK=EF=BF=BD =EF=BF=BD=EF=BF=BD'~=EF=BF=BD=EF=BF=BD=EF=BF=BDX=EF=BF=BDcontroller1.ad.interset.com=EF=BF=BDH22018-03-15T09:07:04-04= :00CONTROLLER1$=EF=BF=BD=EF=BF=BD0 =20 =20 When I publish the message using my java class output from console consumer= prints the avro schema. =20 Objavro.schema=EF=BF=BDP{"type":"record","name":"ActiveDirectoryRecord","namespac= e":"com.xxxx.schema","doc":"for more info, refer to http://docs.splunk.com/D= ocumentation/CIM/4.2.0/User/Resource","fields":[{"name":"action","type":"str= ing","doc":"The action performed on the resource."},{"name":"dest","type":"s= tring","doc":"The target involved in the authentication. May be aliased from= more specific fields, such as dest_host, dest_ip, or dest_nt_host."},{"name= ":"signature_id","type":"int","doc":"Description of the change performed (in= teger)"},{"name":"time","type":"string","doc":"ISO 8601 timestamp of the eve= ntl <=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6TRUNCATED=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6..=C2=A0 >,{"name":"privileges","type":= ["null",{"type":"array","items":"string"}],"doc":"The list of privileges ass= ociated with a Privilege Escalation event","default":null},{"name":"subcode"= ,"type":["null","string"],"doc":"The error subcode for auth;=EF=BF=BD=EF=BF=BDd=EF=BF=BD=EF=BF=BDg%=EF= =BF=BDz=EF=BF=BDSUCCESS6controller1.ad.interset.com=EF=BF=BDH22018-03-15T09:07:04-04:00usedi= d1Pz=EF=BF=BD=EF=BF=BD =20 =20 Regards, Milan Das --B_3604848353_431845315--