Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1DB10200CE6 for ; Fri, 15 Sep 2017 11:38:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1C5601609CF; Fri, 15 Sep 2017 09:38:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 61F831609D1 for ; Fri, 15 Sep 2017 11:38:04 +0200 (CEST) Received: (qmail 21409 invoked by uid 500); 15 Sep 2017 09:38:03 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 21394 invoked by uid 99); 15 Sep 2017 09:38:03 -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; Fri, 15 Sep 2017 09:38:03 +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 109C01A6E6A for ; Fri, 15 Sep 2017 09:38:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id OfO7qC8cdi3L for ; Fri, 15 Sep 2017 09:38:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 79DE35F6C8 for ; Fri, 15 Sep 2017 09:38:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F114BE0EE9 for ; Fri, 15 Sep 2017 09:38:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5B1FA25389 for ; Fri, 15 Sep 2017 09:38:00 +0000 (UTC) Date: Fri, 15 Sep 2017 09:38:00 +0000 (UTC) From: "Pawel Bartoszek (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-2948) Unable to find registrar when restoring flink job from savepoint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 15 Sep 2017 09:38:05 -0000 [ https://issues.apache.org/jira/browse/BEAM-2948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16167625#comment-16167625 ] Pawel Bartoszek commented on BEAM-2948: --------------------------------------- For anybody running into similar issue before the PR is merged - we used `RocksDBStateBackend` as a state backed and it fixed the problem. > Unable to find registrar when restoring flink job from savepoint > ---------------------------------------------------------------- > > Key: BEAM-2948 > URL: https://issues.apache.org/jira/browse/BEAM-2948 > Project: Beam > Issue Type: Bug > Components: runner-flink > Environment: Flink v1.2.1 job on a EMR cluster using Beam v2.0.0 > Reporter: Luke Cwik > Assignee: Aljoscha Krettek > Priority: Minor > > Reported: https://lists.apache.org/thread.html/d113707e84d7562e6d0d891830a8d85d76a497435105fe3ed1e06e13@%3Cdev.beam.apache.org%3E > When I try to restore job from savepoint on one task manager I get the > exception *Unable to find registrar for s3n*. > The job can write files to s3 acting as a sink. So S3 access works except > when restoring from savepoint. > I am passing the following configuration as the pipeline > HadoopFileSystemOptions > options: > Configuration configuration = new Configuration(); > configuration.set("fs.defaultFS", String.format("s3n://%s", > jobOptions.getOutputFileSystemRoot())); > configuration.set("fs.default.name", String.format("s3n://%s", > jobOptions.getOutputFileSystemRoot())); > configuration.set("fs.s3.impl", > "org.apache.hadoop.fs.s3native.NativeS3FileSystem"); > configuration.set("fs.s3n.awsAccessKeyId", > jobOptions.getAwsAccessKey()); > configuration.set("fs.s3n.awsSecretAccessKey", > jobOptions.getAwsSecretKey()); > From my investigation it looks like Beam FileSystems. > setDefaultPipelineOptions method is not called before > org.apache.beam.sdk.io.FileBasedSink$FileResultCoder relay on initialised > FileSystems.SCHEME_TO_FILESYSTEM map > java.lang.IllegalStateException: Could not initialize keyed state backend. > at > org.apache.flink.streaming.api.operators.AbstractStreamOperator.initKeyedState(AbstractStreamOperator.java:293) > at > org.apache.flink.streaming.api.operators.AbstractStreamOperator.initializeState(AbstractStreamOperator.java:204) > at > org.apache.flink.streaming.runtime.tasks.StreamTask.initializeOperators(StreamTask.java:653) > at > org.apache.flink.streaming.runtime.tasks.StreamTask.initializeState(StreamTask.java:640) > at > org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:246) > at org.apache.flink.runtime.taskmanager.Task.run(Task.java:665) > at java.lang.Thread.run(Thread.java:748) > Caused by: java.lang.IllegalStateException: Unable to find registrar for s3n > at > org.apache.beam.sdk.io.FileSystems.getFileSystemInternal(FileSystems.java:447) > at org.apache.beam.sdk.io.FileSystems.matchNewResource(FileSystems.java:523) > at > org.apache.beam.sdk.io.FileBasedSink$FileResultCoder.decode(FileBasedSink.java:1059) > at > org.apache.beam.sdk.io.FileBasedSink$FileResultCoder.decode(FileBasedSink.java:1020) > at > org.apache.beam.runners.flink.translation.types.CoderTypeSerializer.deserialize(CoderTypeSerializer.java:87) > at > org.apache.flink.runtime.state.ArrayListSerializer.deserialize(ArrayListSerializer.java:87) > at > org.apache.flink.runtime.state.ArrayListSerializer.deserialize(ArrayListSerializer.java:27) > at > org.apache.flink.runtime.state.heap.HeapKeyedStateBackend.readStateTableForKeyGroup(HeapKeyedStateBackend.java:370) > at > org.apache.flink.runtime.state.heap.HeapKeyedStateBackend.restorePartitionedState(HeapKeyedStateBackend.java:340) > at > org.apache.flink.runtime.state.heap.HeapKeyedStateBackend.restore(HeapKeyedStateBackend.java:243) > at > org.apache.flink.streaming.runtime.tasks.StreamTask.createKeyedStateBackend(StreamTask.java:788) > at > org.apache.flink.streaming.api.operators.AbstractStreamOperator.initKeyedState(AbstractStreamOperator.java:284) > ... 6 more -- This message was sent by Atlassian JIRA (v6.4.14#64029)