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 server to be run 3) The server send it to the right processing engine 4) Processing engine send back the result 5) Zeppelin Server send a websocket event 6) Front-end show whatever he receives You might be able to find a few Notebook examples on how some people used Spark Streaming here: https://www.zeppelinhub.com/viewer/showcases/Streaming On Thu, Sep 8, 2016 at 3:30 AM, kant kodali <kanth...@gmail.com> wrote: > 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 way sure I can change that. > 2. How change this let me grab data from my websocket server and > display it with the charts/graphs (simple to graphs we see when we run sql > on Zeppelin notebook) > 3. if there is a simple example that would be awesome. > > Thanks again! > > > > On Wed, Sep 7, 2016 5:05 AM, spacewalk...@163.com spacewalk...@163.com > wrote: > >> @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) + '/ws'; >> }; >> >> this.getRestApiBase = function() { >> return location.protocol + '//your_ip_address:' + this.getPort() + >> skipTrailingSlash(location.pathname) + >> '/api'; >> }; >> >> 在 2016年9月7日,15:39,kant kodali <kanth...@gmail.com> 写道: >> >> HI Guys, >> >> I have a server which can handle websocket connections. Now I would like >> to see if there is a way to tell apache zeppellin to create to websocket >> connect to my server and display the whatever it received? >> >> Thanks, >> Kant >> >> >>