Comments (2)
It should send something on the shell channel, it's done here.
Are you sure the problem couldn't come from the ZMQ setup? Like socket
being a ZMQ.REQ
. shell
channels should be router / dealer ones I think (so says your link). They're setup this way in jupyter-scala.
from almond.
Thanks for your quick response.
After some hours of debugging I finally found the problem, you are right that your application was preparing to send the execution confirmation, but it was actually never send. The problem there is that the ZMQ Router silently drops messages if it has no identifier information where to send it. Here is the relevant part of the documentation, I could easily solve this problem by setting an identifier explicitly in my code:
val socket = context.socket(ZMQ.REQ)
socket.setIdentity("manager_id".getBytes(ZMQ.CHARSET))
socket.connect("tcp://127.0.0.1:53886")
So this issue is actually my fault (as you expected)
But one problem I encountered while debugging this issue is that in your message receiving method, you require the user to use a non-empty key. Otherwise the code will try to use the identifier, which is the first part of the message, as the header, because the check for the delimiter is ignored. Although the workaround is of course easy, if you know the problem is, I think this could be fixed without much effort.
from almond.
Related Issues (20)
- Lots of output messages cause kernel to stuck HOT 1
- Create NotebookSparkSession error on windows HOT 4
- Create NotebookSparkSession on windows error Failed to connect to timeline server
- Add section in docs about custom Toree magics
- Almond on windows is not use spark config in spark-default and hadoop config in hadoop config dir
- Docker ivy command stalls with a mounted volume
- named imports cannot follow wildcard imports HOT 1
- Scala 2.13.8 Almond 0.13.14 issue
- version compatibility with almond-sh on windows when use spark HOT 1
- Almond 0.13.2: InterpreterToIOInterpreter Error for Scala mixin type parameter constraint HOT 1
- Could not find or load main class coursier.bootstrap.launcher.Launcher HOT 2
- Installing the Scala kernel in standalone mode can execute code 5X slower than normal mode!! HOT 1
- Getting sbt-coursier error when upgrading from sbt version 1.3.13 to 1.9.4
- Spark 3.1.2 failing to create SparkSession in Almond 0.14.0-RC12 HOT 1
- Pre-fetching jars in docker environment fails to populate classpath HOT 4
- Reexecuting a Scala 3.3.1 cell with circe imports fails with `an identifier expected, but 'export' found` HOT 4
- Failed to import spark HOT 3
- Installed version is not aligned with dependencies
- Recent versions of Spark not supported ? (ClassCastException error) HOT 1
- Specified to use Scala 3 but Scala 2 still being used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from almond.