flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Senthil Kumar <senthi...@vmware.com>
Subject Re: Location of flink-s3-fs-hadoop plugin (Flink 1.9.0 on EMR)
Date Thu, 23 Jan 2020 19:03:26 GMT
Could you tell us how to turn on debug level logs?

We attempted this (on driver)

sudo stop hadoop-yarn-resourcemanager

followed the instructions here


sudo start hadoop-yarn-resourcemanager

but we still don’t see any debug level logs

Any further info is much appreciated!

From: Aaron Langford <aaron.langford31@gmail.com>
Date: Tuesday, January 21, 2020 at 10:54 AM
To: Senthil Kumar <senthilku@vmware.com>
Cc: Yang Wang <danrtsey.wy@gmail.com>, "user@flink.apache.org" <user@flink.apache.org>
Subject: Re: Location of flink-s3-fs-hadoop plugin (Flink 1.9.0 on EMR)


One of the key steps in debugging this for me was enabling debug level logs on my cluster,
and then looking at the logs in the resource manager. The failure you are after happens before
the exceptions you have reported here. When your Flink application is starting, it will attempt
to load various file system implementations. You can see which ones it successfully loaded
when you have the debug level of logs configured. You will have to do some digging, but this
is a good place to start. Try to discover if your application is indeed loading the s3 file
system, or if that is not happening. You should be able to find the file system implementations
that were loaded by searching for the string "Added file system".

Also, do you mind sharing the bootstrap action script that you are using to get the s3 file
system in place?


On Tue, Jan 21, 2020 at 8:39 AM Senthil Kumar <senthilku@vmware.com<mailto:senthilku@vmware.com>>
Yang, I appreciate your help! Please let me know if I can provide with any other info.

I resubmitted my executable jar file as a step to the flink EMR and here’s are all the 
exceptions. I see two of them.

I fished them out of /var/log/Hadoop/<STEP-ID>/syslog

2020-01-21 16:31:37,587 ERROR org.apache.flink.streaming.runtime.tasks.StreamTask (Split Reader:
Custom File Source -> Sink: Unnamed (11/16)): Error during di

sposal of stream operator.


        at org.apache.flink.streaming.api.functions.source.ContinuousFileReaderOperator.dispose(ContinuousFileReaderOperator.java:165)

        at org.apache.flink.streaming.runtime.tasks.StreamTask.disposeAllOperators(StreamTask.java:582)

        at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:481)

        at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:705)

        at org.apache.flink.runtime.taskmanager.Task.run(Task.java:530)

        at java.lang.Thread.run(Thread.java:748)

2020-01-21 16:31:37,591 INFO org.apache.flink.runtime.taskmanager.Task (Split Reader: Custom
File Source -> Sink: Unnamed (8/16)): Split Reader: Custom File Source -> Sink: Unnamed
(8/16) (865a5a078c3e40cbe2583afeaa0c601e) switched from RUNNING to FAILED.

java.lang.UnsupportedOperationException: Recoverable writers on Hadoop are only supported
for HDFS and for Hadoop version 2.7 or newer

        at org.apache.flink.runtime.fs.hdfs.HadoopRecoverableWriter.<init>(HadoopRecoverableWriter.java:57)

        at org.apache.flink.runtime.fs.hdfs.HadoopFileSystem.createRecoverableWriter(HadoopFileSystem.java:202)

        at org.apache.flink.core.fs.SafetyNetWrapperFileSystem.createRecoverableWriter(SafetyNetWrapperFileSystem.java:69)

        at org.apache.flink.streaming.api.functions.sink.filesystem.Buckets.<init>(Buckets.java:112)

        at org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink$RowFormatBuilder.createBuckets(StreamingFileSink.java:242)

        at org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.initializeState(StreamingFileSink.java:327)

        at org.apache.flink.streaming.util.functions.StreamingFunctionUtils.tryRestoreFunction(StreamingFunctionUtils.java:178)

        at org.apache.flink.streaming.util.functions.StreamingFunctionUtils.restoreFunctionState(StreamingFunctionUtils.java:160)

        at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.initializeState(AbstractUdfStreamOperator.java:96)

        at org.apache.flink.streaming.api.operators.AbstractStreamOperator.initializeState(AbstractStreamOperator.java:281)

        at org.apache.flink.streaming.runtime.tasks.StreamTask.initializeState(StreamTask.java:878)

        at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:392)

        at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:705)

        at org.apache.flink.runtime.taskmanager.Task.run(Task.java:530)

        at java.lang.Thread.run(Thread.java:748)

From: Yang Wang <danrtsey.wy@gmail.com<mailto:danrtsey.wy@gmail.com>>
Date: Saturday, January 18, 2020 at 7:58 PM
To: Senthil Kumar <senthilku@vmware.com<mailto:senthilku@vmware.com>>
Cc: "user@flink.apache.org<mailto:user@flink.apache.org>" <user@flink.apache.org<mailto:user@flink.apache.org>>
Subject: Re: Location of flink-s3-fs-hadoop plugin (Flink 1.9.0 on EMR)

I think this exception is not because the hadoop version isn't high enough.
It seems that the "s3" URI scheme could not be recognized by `S3FileSystemFactory`. So it
fallbacks to
the `HadoopFsFactory`.

Could you share the debug level jobmanager/taskmanger logs so that we could confirm whether
classpath and FileSystem are loaded correctly.


Senthil Kumar <senthilku@vmware.com<mailto:senthilku@vmware.com>> 于2020年1月17日周五

Hello all,

Newbie here!

We are running in Amazon EMR with the following installed in the EMR Software Configuration

Hadoop 2.8.5

JupyterHub 1.0.0

Ganglia 3.7.2

Hive 2.3.6

Flink 1.9.0

I am trying to get a Streaming job from one S3 bucket into an another S3 bucket using the

I got the infamous exception:

Caused by: java.lang.UnsupportedOperationException: Recoverable writers on Hadoop are only
supported for HDFS and for Hadoop version 2.7 or newer

According to this, I needed to install flink-s3-fs-hadoop-1.9.0.jar in /usr/lib/flink/lib


That did not work.

Further googling, revealed for Flink 1.9.0 and above:  (according to this)


it seems that I need to install the jar file in the plugins directory (/usr/lib/flink/plugins/s3-fs-hadoop)

That did not work either.

At this point, I am not sure what to do and would appreciate some help!



View raw message