beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Liu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEAM-592) StackOverflowError Failed example/java/WordCount When Using SparkRunner
Date Fri, 26 Aug 2016 18:23:20 GMT
Mark Liu created BEAM-592:
-----------------------------

             Summary: 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


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