beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviem Zur (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-592) StackOverflowError Failed example/java/WordCount When Using SparkRunner
Date Sat, 27 Aug 2016 10:39:20 GMT

    [ https://issues.apache.org/jira/browse/BEAM-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15441229#comment-15441229
] 

Aviem Zur commented on BEAM-592:
--------------------------------

Yeah, I encountered this as well, andthat is the way to solve it.

Cause:
jul-to-slf4j.jar and slf4j-jdk14.jar cannot be present simultaneously
http://slf4j.org/legacy.html#jul-to-slf4j

> StackOverflowError Failed example/java/WordCount When Using SparkRunner
> -----------------------------------------------------------------------
>
>                 Key: BEAM-592
>                 URL: https://issues.apache.org/jira/browse/BEAM-592
>             Project: Beam
>          Issue Type: Bug
>            Reporter: Mark Liu
>            Assignee: Mark Liu
>             Fix For: 0.3.0-incubating
>
>
> WordCount(example/java/WordCount) failed running with sparkRunner in following command:
> {code}
> mvn clean compile exec:java -Dexec.mainClass=org.apache.beam.examples.WordCount -Dexec.args="--inputFile=/tmp/kinglear.txt
--runner=SparkRunner --sparkMaster=local --tempLocation=/tmp/out"
> {code}
> Following is part of stacktrace:
> {code}
> Caused by: java.lang.StackOverflowError
> 	at java.util.concurrent.CopyOnWriteArrayList.toArray(CopyOnWriteArrayList.java:374)
> 	at java.util.logging.Logger.accessCheckedHandlers(Logger.java:1782)
> 	at java.util.logging.LogManager$RootLogger.accessCheckedHandlers(LogManager.java:1668)
> 	at java.util.logging.Logger.getHandlers(Logger.java:1776)
> 	at java.util.logging.Logger.log(Logger.java:735)
> 	at org.slf4j.impl.JDK14LoggerAdapter.log(JDK14LoggerAdapter.java:580)
> 	at org.slf4j.impl.JDK14LoggerAdapter.log(JDK14LoggerAdapter.java:650)
> 	at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:224)
> 	at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:301)
> 	at java.util.logging.Logger.log(Logger.java:738)
> 	at org.slf4j.impl.JDK14LoggerAdapter.log(JDK14LoggerAdapter.java:580)
> 	at org.slf4j.impl.JDK14LoggerAdapter.log(JDK14LoggerAdapter.java:650)
> 	at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:224)
> 	at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:301)
> ...
> {code}
> According to [http://slf4j.org/legacy.html#jul-to-slf4j] and in particular section: "jul-to-slf4j.jar
and slf4j-jdk14.jar cannot be present simultaneously".
> Change slf4j-jdk14 dependency scope to test solve the above problem, but WordCountIT
still failed in same reason. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message