apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Weise (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (APEXMALHAR-2542) enricher.ApplicationTest access to hard coded /tmp location
Date Tue, 26 Sep 2017 20:18:00 GMT

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

Thomas Weise commented on APEXMALHAR-2542:
------------------------------------------

Please never use /tmp, but rather the Java tmp directory. In this case it appears the only
thing the unit test needs to do is set the property to the location under resources in the
build workspace, if it is immutable.


> enricher.ApplicationTest access to hard coded /tmp location
> -----------------------------------------------------------
>
>                 Key: APEXMALHAR-2542
>                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-2542
>             Project: Apache Apex Malhar
>          Issue Type: Bug
>            Reporter: Thomas Weise
>            Assignee: Ananth
>
> {code}
> 2017-09-25 18:34:37,900 [3/Enrich:POJOEnricher] WARN  util.LoggerUtil shouldFetchLogFileInformation
- Log information is unavailable. To enable log information log4j/logging should be configured
with single FileAppender that has immediateFlush set to true and log level set to ERROR or
greater.
> 2017-09-25 18:34:37,916 [3/Enrich:POJOEnricher] ERROR engine.StreamingContainer run -
Abandoning deployment of operator OperatorDeployInfo[id=3,name=Enrich,type=GENERIC,checkpoint={ffffffffffffffff,
0, 0},inputs=[OperatorDeployInfo.InputDeployInfo[portName=input,streamId=Enrich,sourceNodeId=2,sourcePortName=out,locality=<null>,partitionMask=0,partitionKeys=<null>]],outputs=[OperatorDeployInfo.OutputDeployInfo[portName=output,streamId=Console,bufferServer=localhost]]]
due to setup failure.
> java.lang.RuntimeException: Unable to initialize cache manager
> 	at com.datatorrent.contrib.enrich.AbstractEnricher.activate(AbstractEnricher.java:191)
> 	at com.datatorrent.contrib.enrich.POJOEnricher.activate(POJOEnricher.java:234)
> 	at com.datatorrent.stram.engine.Node.activate(Node.java:644)
> 	at com.datatorrent.stram.engine.GenericNode.activate(GenericNode.java:212)
> 	at com.datatorrent.stram.engine.StreamingContainer.setupNode(StreamingContainer.java:1364)
> 	at com.datatorrent.stram.engine.StreamingContainer.access$100(StreamingContainer.java:129)
> 	at com.datatorrent.stram.engine.StreamingContainer$2.run(StreamingContainer.java:1413)
> Caused by: java.io.IOException: Provided path /tmp/circleMapping.txt is not a file
> 	at com.datatorrent.contrib.enrich.FSLoader.connect(FSLoader.java:190)
> 	at com.datatorrent.lib.db.cache.CacheManager.initialize(CacheManager.java:109)
> 	at com.datatorrent.contrib.enrich.AbstractEnricher.activate(AbstractEnricher.java:189)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message