mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Revert "example for kernel die and request stuck"
This reverts commit c9ec0335cd.
This commit is contained in:
parent
f37d5f95dc
commit
73424d17de
3 changed files with 0 additions and 51 deletions
|
|
@ -1,10 +0,0 @@
|
|||
FROM python:3.6.5-slim-jessie
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD [ "python", "-u", "python/ipython_server.py", "50053" ]
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
import grpc
|
||||
|
||||
import ipython_pb2
|
||||
import ipython_pb2_grpc
|
||||
|
||||
|
||||
def run():
|
||||
channel = grpc.insecure_channel('localhost:50053')
|
||||
stub = ipython_pb2_grpc.IPythonStub(channel)
|
||||
response = stub.execute(ipython_pb2.ExecuteRequest(code="import time\nlist = []\nfor i in range(0, 1000):\n\tlist.append(bytearray(1024 * 1000 * 50))\n\tprint(i)\n\ttime.sleep(0.5)"))
|
||||
for r in response:
|
||||
print("output:" + r.output)
|
||||
|
||||
response = stub.execute(ipython_pb2.ExecuteRequest(code="range?"))
|
||||
for r in response:
|
||||
print(r)
|
||||
|
||||
if __name__ == '__main__':
|
||||
run()
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
grpcio==1.12.1
|
||||
protobuf==3.6.1
|
||||
ipython==5.7.0
|
||||
ipykernel==4.8.2
|
||||
jupyter-client==5.2.3
|
||||
py4j==0.10.7
|
||||
Loading…
Reference in a new issue