You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@chukwa.apache.org by Ying Tang <iv...@gmail.com> on 2010/11/03 13:41:46 UTC

collector PatternSyntaxException

I setup agent , collector and HDFS.

But the agent throws
    I/O exception (java.net.SocketException) caught when processing request:
Broken pipe
    2010-11-03 20:35:17,708 INFO HTTP post thread HttpMethodDirector -
Retrying request
    2010-11-03 20:35:17,729 INFO HTTP post thread HttpMethodDirector - I/O
exception (java.net.SocketException) caught when processing request:
Connection reset
    2010-11-03 20:35:17,729 INFO HTTP post thread HttpMethodDirector -
Retrying request
    2010-11-03 20:35:17,744 INFO HTTP post thread HttpMethodDirector - I/O
exception (java.net.SocketException) caught when processing request: Broken
pipe

And the collector throws
    got connection from   (agent's ip)
    2010-11-03 20:35:59,757 WARN Thread-3460 SocketTeeWriter -
java.util.regex.PatternSyntaxException: bad command 'POST' -- starts with
neither 'RAW' nor 'WRITABLE nor HEADER'.


And the data to HDFS is incomplete .

I saw the source code of SocketTeeWriter , and it says the exception be
thrown because the data sent by agent is missing the RAW\WRITABLE\HEADER.

How this happened?


-- 
Best regards,

Ivy Tang

Re: collector PatternSyntaxException

Posted by Ying Tang <iv...@gmail.com>.
Ingore me , i  found i mistake the port.

On Wed, Nov 3, 2010 at 8:41 PM, Ying Tang <iv...@gmail.com> wrote:

> I setup agent , collector and HDFS.
>
> But the agent throws
>     I/O exception (java.net.SocketException) caught when processing
> request: Broken pipe
>     2010-11-03 20:35:17,708 INFO HTTP post thread HttpMethodDirector -
> Retrying request
>     2010-11-03 20:35:17,729 INFO HTTP post thread HttpMethodDirector - I/O
> exception (java.net.SocketException) caught when processing request:
> Connection reset
>     2010-11-03 20:35:17,729 INFO HTTP post thread HttpMethodDirector -
> Retrying request
>     2010-11-03 20:35:17,744 INFO HTTP post thread HttpMethodDirector - I/O
> exception (java.net.SocketException) caught when processing request: Broken
> pipe
>
> And the collector throws
>     got connection from   (agent's ip)
>     2010-11-03 20:35:59,757 WARN Thread-3460 SocketTeeWriter -
> java.util.regex.PatternSyntaxException: bad command 'POST' -- starts with
> neither 'RAW' nor 'WRITABLE nor HEADER'.
>
>
> And the data to HDFS is incomplete .
>
> I saw the source code of SocketTeeWriter , and it says the exception be
> thrown because the data sent by agent is missing the RAW\WRITABLE\HEADER.
>
> How this happened?
>
>
> --
> Best regards,
>
> Ivy Tang
>
>
>
>


-- 
Best regards,

Ivy Tang