mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Add X-Watcher-Key in request header for watcher client
This commit is contained in:
parent
e2d3053a95
commit
8f7e1b3134
1 changed files with 2 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ import org.apache.zeppelin.notebook.repo.zeppelinhub.websocket.scheduler.Schedul
|
|||
import org.apache.zeppelin.notebook.repo.zeppelinhub.websocket.scheduler.ZeppelinHeartbeat;
|
||||
import org.apache.zeppelin.notebook.socket.Message;
|
||||
import org.apache.zeppelin.notebook.socket.Message.OP;
|
||||
import org.apache.zeppelin.util.WatcherSecurityKey;
|
||||
import org.eclipse.jetty.util.ssl.SslContextFactory;
|
||||
import org.eclipse.jetty.websocket.api.Session;
|
||||
import org.eclipse.jetty.websocket.client.ClientUpgradeRequest;
|
||||
|
|
@ -168,6 +169,7 @@ public class ZeppelinClient {
|
|||
|
||||
private Session openWatcherSession() {
|
||||
ClientUpgradeRequest request = new ClientUpgradeRequest();
|
||||
request.setHeader(WatcherSecurityKey.HTTP_HEADER, WatcherSecurityKey.getKey());
|
||||
WatcherWebsocket socket = WatcherWebsocket.createInstace();
|
||||
Future<Session> future = null;
|
||||
Session session = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue