The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Flume Forum

Windows 2012 STD R2 Server – Flume Errors

  • #51386
    S R

    I am getting the following error message and it goes on a loop. Appreciate if someone has already fixed. I am using agent Source as spoolDir. The Syslog is sitting in the Ingest folder and also I see data.<Number>.seq file in HDFS

    09 Apr 2014 14:57:51,469 ERROR [pool-9-thread-1] (org.apache.flume.source.SpoolDirectorySource$ – Uncaught exception in Runnable
    java.lang.IllegalStateException: Serializer has been closed
    at org.apache.flume.serialization.LineDeserializer.ensureOpen(
    at org.apache.flume.serialization.LineDeserializer.readEvents(
    at org.apache.flume.client.avro.ReliableSpoolingFileEventReader.readEvents(
    at org.apache.flume.source.SpoolDirectorySource$
    at java.util.concurrent.Executors$
    at java.util.concurrent.FutureTask.runAndReset(
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
    at java.util.concurrent.ScheduledThreadPoolExecutor$
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
    at java.util.concurrent.ThreadPoolExecutor$

    Software Versions
    HDP Version : 2.0
    OS : Windows 2012 Standard Server R2

    Flume Configuration File:
    # Name the components on this agent
    agent.sources = WinHadoopC1Source
    agent.sinks = WinHadoopC1Sink1
    agent.channels = WinHadoopC1Channel1

    # Describe/configure the source
    agent.sources.WinHadoopC1Source.spoolDir = C:/flume_spooldir
    agent.sources.WinHadoopC1Source.fileHeader = true

    # Describe the sink
    agent.sinks.WinHadoopC1Sink1.hdfs.path = hdfs://WIN-ATKSGSRL5DL/logspooldir
    agent.sinks.WinHadoopC1Sink1.hdfs.fileType = SequenceFile
    agent.sinks.WinHadoopC1Sink1.hdfs.filePrefix = data
    agent.sinks.WinHadoopC1Sink1.hdfs.fileSuffix = .seq

    # Use a channel which buffers events in memory
    agent.channels.WinHadoopC1Channel1.type = memory
    agent.channels.WinHadoopC1Channel1.capacity = 100000
    agent.channels.WinHadoopC1Channel1.transactionCapacity = 10000

    # Bind the source and sink to the channel
    agent.sources.WinHadoopC1Source.channels = WinHadoopC1Channel1 = WinHadoopC1Channel1
    Thanks, Satya Raju

  • Author
  • #51844
    S R

    Was able to test successfully on Windows single node installation. Gave Read/Write permissions on the Spool Dir for Hadoop User and after that it started working. Interestingly I went back and removed the ‘Hadoop’ user Object from that Folder and still it works. It works but not sure of the root cause.

The forum ‘Flume’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.