Return-Path: X-Original-To: apmail-samza-dev-archive@minotaur.apache.org Delivered-To: apmail-samza-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 794311830E for ; Wed, 6 Jan 2016 20:18:50 +0000 (UTC) Received: (qmail 17958 invoked by uid 500); 6 Jan 2016 20:18:50 -0000 Delivered-To: apmail-samza-dev-archive@samza.apache.org Received: (qmail 17892 invoked by uid 500); 6 Jan 2016 20:18:50 -0000 Mailing-List: contact dev-help@samza.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@samza.apache.org Delivered-To: mailing list dev@samza.apache.org Received: (qmail 17880 invoked by uid 99); 6 Jan 2016 20:18:50 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 20:18:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 96A85C0597 for ; Wed, 6 Jan 2016 20:18:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.151 X-Spam-Level: *** X-Spam-Status: No, score=3.151 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MuNtDksjSUGu for ; Wed, 6 Jan 2016 20:18:40 +0000 (UTC) Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 3CB59231B6 for ; Wed, 6 Jan 2016 20:18:40 +0000 (UTC) Received: by mail-io0-f176.google.com with SMTP id q21so229684197iod.0 for ; Wed, 06 Jan 2016 12:18:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=dx7ogdaEEajdLz+X1XMOf99mP6qJDV6z00Rwx+eBz0c=; b=MbEHUazsCu6tj4qbf8/jxuepjd9RSTsncGJdbgANHzxkDPzRk2pNbQKATfpYEf0mw6 Xy3ozggrqN/jDUqrJaqwhbpOl7O9962KwXsq0QtO3j7iO9dK7DK1hLxqFvBMo7XWhy7R xtYcNICxs5HHzmqq6Emy8LhPeU/iPVKk5sKb54q5sI8eBOsibfghUwQDRVm2h9TZNd8l EArYf7BraDA2RltW/38hjDcuhf8koqOzTxEhHwQ1zWmR18rmnwe9aTxV+uB/5frrVwsP xEfq3i46yVOZEaKA7khVOASC6w07BkSHM9Rp+9OCkVeDL0FdbC9nEev0CAxR79cKJy9j Nh1A== MIME-Version: 1.0 X-Received: by 10.107.160.208 with SMTP id j199mr89195080ioe.23.1452111519690; Wed, 06 Jan 2016 12:18:39 -0800 (PST) Received: by 10.36.37.136 with HTTP; Wed, 6 Jan 2016 12:18:39 -0800 (PST) In-Reply-To: References: Date: Wed, 6 Jan 2016 12:18:39 -0800 Message-ID: Subject: Re: hello-samza doesn't run on CDH5.4 From: Yi Pan To: dev@samza.apache.org Content-Type: multipart/alternative; boundary=001a1140bfd84e60140528b00fc5 --001a1140bfd84e60140528b00fc5 Content-Type: text/plain; charset=UTF-8 Token expiration is still a problem w/o Kerberos in YARN 2.6.0 client. But the exception stack trace from that bug is also different from yours. I am suspecting there is some incompatible dependency libraries between CDH5.4 distro and Samza that caused your serialization problems here. On Wed, Jan 6, 2016 at 11:50 AM, Stanislav Los wrote: > Hi Yi, > > Our cluster doesn't have Kerberos security in place, so I don't know how it > could be related. > CDH5.4 runs on YARN 2.6.0. > I compiled Samza with YARN 2.6.0 and YARN 2.6.1. > In both cases I get the same error. > Should token expiration be a problem for the cluster without Kerberos? > > Regards. > > On Wed, Jan 6, 2016 at 2:39 PM, Yi Pan wrote: > > > Hi, Stanislav, > > > > Could it be related to SAMZA-727? Your exception stack trace is different > > though. Besides that, Samza 0.10 requires minimum YARN 2.6.1 now, due to > a > > token expiration issue in YARN 2.6.0 client lib. > > > > -Yi > > > > On Wed, Jan 6, 2016 at 7:52 AM, Stanislav Los > > wrote: > > > > > Hi, > > > > > > Any ideas why Samza can't start a container while running hello-samza > on > > > CDH5.4? > > > > > > It runs fine on local grid. But when running on cluster I can see it > > talks > > > fine to YARN's ResourceManager and Kafka, get's resources, but fails > to > > > start container. At first, I thought it's because CDH5.4 uses YARN > 2.6.0, > > > while Samza uses 2.6.1, so I recompiled Samza with YARN 2.6.0 and > > > re-assambled hello-samza. No luck so far. Also, I thought it's because > of > > > different protobuf version, but I checked, it's the same in CDH and > > Samza. > > > > > > Followed > > > http://samza.apache.org/learn/tutorials/0.10/deploy-samza-to-CDH.html > to > > > deploy. > > > > > > See full logs: > > > Samza Deploy Script output http://pastebin.com/0K8HVMzt > > > YARN logs http://pastebin.com/UvNp6240 > > > > > > An error is: > > > > > > java version "1.7.0_80" > > > > > > Java(TM) SE Runtime Environment (build 1.7.0_80-b15) > > > > > > Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) > > > > > > com.google.protobuf.InvalidProtocolBufferException: Protocol message > > > contained an invalid tag (zero). > > > > > > at > > > > > > > > > com.google.protobuf.InvalidProtocolBufferException.invalidTag(InvalidProtocolBufferException.java:89) > > > > > > at > > com.google.protobuf.CodedInputStream.readTag(CodedInputStream.java:108) > > > > > > at > > > > > > > > > org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos$AMRMTokenIdentifierProto.(YarnSecurityTokenProtos.java:1078) > > > > > > at > > > > > > > > > org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos$AMRMTokenIdentifierProto.(YarnSecurityTokenProtos.java:1042) > > > > > > at > > > > > > > > > org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos$AMRMTokenIdentifierProto$1.parsePartialFrom(YarnSecurityTokenProtos.java:1138) > > > > > > at > > > > > > > > > org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos$AMRMTokenIdentifierProto$1.parsePartialFrom(YarnSecurityTokenProtos.java:1133) > > > > > > at > > > > > > > > > com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:200) > > > > > > at > com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:217) > > > > > > at > com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:223) > > > > > > at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49) > > > > > > at > > > > > > > > > org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos$AMRMTokenIdentifierProto.parseFrom(YarnSecurityTokenProtos.java:1307) > > > > > > at > > > > > > > > > org.apache.hadoop.yarn.security.AMRMTokenIdentifier.readFields(AMRMTokenIdentifier.java:81) > > > > > > at > > org.apache.hadoop.security.token.Token.decodeIdentifier(Token.java:142) > > > > > > at > > > > > > > > > org.apache.samza.job.yarn.ContainerUtil.startContainer(ContainerUtil.java:181) > > > > > > at > > > > > > > > > org.apache.samza.job.yarn.ContainerUtil.runContainer(ContainerUtil.java:119) > > > > > > at > > > > > > > > > org.apache.samza.job.yarn.ContainerAllocator.run(ContainerAllocator.java:65) > > > > > > at java.lang.Thread.run(Thread.java:745) > > > > > > Exception in thread "Container Allocator Thread" > > > org.apache.samza.SamzaException: IO Exception when writing credentials > to > > > output buffer > > > > > > at > > > > > > > > > org.apache.samza.job.yarn.ContainerUtil.startContainer(ContainerUtil.java:190) > > > > > > at > > > > > > > > > org.apache.samza.job.yarn.ContainerUtil.runContainer(ContainerUtil.java:119) > > > > > > at > > > > > > > > > org.apache.samza.job.yarn.ContainerAllocator.run(ContainerAllocator.java:65) > > > > > > at java.lang.Thread.run(Thread.java:745) > > > > > > > > > Regards, > > > Stan > > > > > > --001a1140bfd84e60140528b00fc5--