Re: How to use web sockets with Zeppellin

2016-09-08 Thread Corneau Damien
There might actually be another way to do that using python or scala code. I don't have experience in those, but I guess the overall idea behind it would be to have this type of code in a paragraph that you run: // Include python websocket library // pythonWebsocketOpenConnection(myServerWithDa

Re: How to use web sockets with Zeppellin

2016-09-08 Thread Corneau Damien
To reply to 1) The type of charts and its options are set in the UI, and saved as settings in the note. So the queries do not have any effect on it. The front-end receive data as a result of a query. for example: You can type ``` %sql select * from bank ``` And the front-end will receive a t

Re: How to use web sockets with Zeppellin

2016-09-08 Thread kant kodali
@Corneau The links you have pointed out doesnt show how I can retrieve messages through websocket and tie to chars. I would stress again and say how do i tie all this up to charts? On Thu, Sep 8, 2016 at 12:17 AM, kant kodali wrote: > Hi Corneau, > > I appreciate the responses but again I am rea

Re: How to use web sockets with Zeppellin

2016-09-08 Thread kant kodali
Hi Corneau, I appreciate the responses but again I am really looking for a specific answer 1. "This protocol looks interesting but how do I construct messages such that I can see different visualizations of charts?" This question is not being addressed. 2. How can I use an existing interpreter a

Re: How to use web sockets with Zeppellin

2016-09-08 Thread Corneau Damien
You will probably need to make an interpreter for it, or use an existing one. https://zeppelin.apache.org/docs/0.7.0-SNAPSHOT/manual/interpreters.html You will find the list of existing interpreters in the menu. If you do need to create one, then you can refer to this guide https://zeppelin.apac

Re: How to use web sockets with Zeppellin

2016-09-07 Thread kant kodali
@spacewalkman Just an FYI I don't have anything to do with Spark at the moment. I just have a node.js server which is capable of websocket connections and ready to push data needed for charts. This protocol looks interesting but how do I construct messages such that I can see different visualizati

Re: How to use web sockets with Zeppellin

2016-09-07 Thread spacewalk...@163.com
maybe a custom SparkStreamingInterpreter can handle this. zeppelin WS protocol is defined in: https://github.com/apache/zeppelin/blob/master/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/socket/Message.java

Re: How to use web sockets with Zeppellin

2016-09-07 Thread kant kodali
ok here is a concrete example. I am still trying to connect the dots..If I were to split Zeppelin as both front end and backend then I wouldn't choose to use Zeppelin in the first place. The main motivation for me to explore Zeppelin is that I don't have to spend time developing different visualizt

Re: How to use web sockets with Zeppellin

2016-09-07 Thread spacewalk...@163.com
i thought it was a separating zeppelin backend and frontend problem, but what @corneadoug say is a high-level WS description, maybe i misinterpretation @kant kodali’s issue > 在 2016年9月8日,09:48,Corneau Damien 写道: > > This change wouldn't solve your issue, it is the address where the front-end

Re: How to use web sockets with Zeppellin

2016-09-07 Thread Corneau Damien
This change wouldn't solve your issue, it is the address where the front-end send his API requests and listen to WS (zeppelin server) I guess your requirements are different. The way Zeppelin works is usually pretty simple: 1) You type your code in the front-end 2) That code is sent to Zeppelin s

Re: How to use web sockets with Zeppellin

2016-09-07 Thread spacewalk...@163.com
@kan kodali, i’m not a front guy either.i’v got the same requirement as you recently, i have to separate zeppelin backend and frontend to different servers, i did as what the previous mail says,i works. for you questions: 1. AFAK,is not configurable. if you are familiar with Grunt ,maybe a cust

Re: How to use web sockets with Zeppellin

2016-09-07 Thread kant kodali
Hi! Thanks for this but I still see the big picture. I have not used Angular before nor I am a frontend guy. so I have the following questions. 1. Why do we need to change the source code? isn't this configurable or isn't there a way to pass url as a parameter? If you think it is the easiest w

Re: How to use web sockets with Zeppellin

2016-09-07 Thread spacewalk...@163.com
@kant kodali change zeppelin-web\ src\components\baseUrl\baseUrl.service.js like this: this.getWebsocketUrl = function() { var wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:'; return wsProtocol + ‘//your_ip_address:' + this.getPort() + skipTrailingSlash(location.pathname)