from streamsx.topology import schema
from streamsx.topology.topology import Topology
import streamsx.topology.context
import json
topo = Topology("observation_visualization")
data = topo.subscribe('some_topic', schema.CommonSchema.Json) \
.transform(ident_func) \
.sink(print)
streamsx.topology.context.submit("DISTRIBUTED", topo)
The submission fails with the following errors:
May 09, 2017 7:59:00 AM com.ibm.streamsx.topology.internal.streams.InvokeMakeToolkit invoke
INFO: Invoking spl-make-toolkit
May 09, 2017 7:59:00 AM com.ibm.streamsx.topology.internal.streams.InvokeMakeToolkit invoke
INFO: /opt/ibm/InfoSphere_Streams/4.2.0.0/bin/spl-make-toolkit --make-operator -i /home/streamsadmin/git/streamsx.health/samples/SimpleJupyterDemo/notebooks/tk2459320530487866919
May 09, 2017 7:59:00 AM com.ibm.streamsx.topology.internal.streams.InvokeMakeToolkit invoke
INFO: spl-make-toolkit complete: return code=0
May 09, 2017 7:59:00 AM com.ibm.streamsx.topology.internal.streams.InvokeSc getToolkitPath
INFO: ToolkitPath:/home/streamsadmin/git/streamsx.topology/com.ibm.streamsx.topology:/opt/ibm/InfoSphere_Streams/4.2.0.0/toolkits
May 09, 2017 7:59:00 AM com.ibm.streamsx.topology.internal.streams.InvokeSc invoke
INFO: Invoking SPL compiler (sc) for main composite: ipythoninput12605787ad34c5::repo
May 09, 2017 7:59:00 AM com.ibm.streamsx.topology.internal.streams.InvokeSc invoke
INFO: /opt/ibm/InfoSphere_Streams/4.2.0.0/bin/sc --rebuild-toolkits --optimized-code-generation --num-make-threads=4 -M ipythoninput12605787ad34c5::repo -t /home/streamsadmin/git/streamsx.topology/com.ibm.streamsx.topology:/opt/ibm/InfoSphere_Streams/4.2.0.0/toolkits
May 09, 2017 7:59:03 AM com.ibm.streamsx.topology.internal.process.ProcessOutputToLogger run
SEVERE: ipythoninput12605787ad34c5/repo.spl:17:118: CDISP0086E ERROR: The following input stream alias is identical to an input stream name: Op_OUT0.
May 09, 2017 7:59:03 AM com.ibm.streamsx.topology.internal.process.ProcessOutputToLogger run
SEVERE: ipythoninput12605787ad34c5/repo.spl:31:88: CDISP0086E ERROR: The following input stream alias is identical to an input stream name: ident_func.
May 09, 2017 7:59:03 AM com.ibm.streamsx.topology.internal.process.ProcessOutputToLogger run
SEVERE:
May 09, 2017 7:59:03 AM com.ibm.streamsx.topology.internal.process.ProcessOutputToLogger run
SEVERE: CDISP0092E ERROR: Because of previous compilation errors, the compile process cannot continue.
May 09, 2017 7:59:03 AM com.ibm.streamsx.topology.internal.streams.InvokeSc invoke
INFO: SPL compiler complete: return code=1
Exception in thread "main" java.lang.Exception: SPL compilation failed!
at com.ibm.streamsx.topology.internal.streams.InvokeSc.invoke(InvokeSc.java:133)
at com.ibm.streamsx.topology.internal.context.BundleStreamsContext.doSPLCompile(BundleStreamsContext.java:108)
at com.ibm.streamsx.topology.internal.context.BundleStreamsContext.submit(BundleStreamsContext.java:78)
at com.ibm.streamsx.topology.internal.context.DistributedStreamsContext.submit(DistributedStreamsContext.java:64)
at com.ibm.streamsx.topology.context.StreamsContextSubmit.main(StreamsContextSubmit.java:30)
I cloned the repo yesterday (May 8, 2017) and I am using the python topology from the master branch.
I have the following notebook cells:
Cell 1:
Cell 2:
Cell 3:
The submission fails with the following errors:
The generated SPL appears to be incorrect: