错误如下 (http://slave:8042/node/containerlogs/container_1495180985612_0001_01_000002/ubuntu/stderr?start=-4096)

nd = serializer.loads(command.value)
File "/home/ubuntu/Download/spark-2.1.1/python/pyspark/serializers.py", line 454, in loads return pickle.loads(obj)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/distkeras/workers.py", line 13, in from distkeras.utils import deserialize_keras_model
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/distkeras/utils.py", line 5, in from keras import backend as K
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/keras/init.py", line 3, in from . import activations
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/keras/activations.py", line 4, in from . import backend as K
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/keras/backend/init.py", line 73, in from .tensorflow_backend import
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 1, in import tensorflow as tf
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow/init.py", line 24, in from tensorflow.python import

File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow/python/init.py", line 54, in from tensorflow.core.framework.graph_pb2 import *
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 6, in
from google.protobuf import descriptor as _descriptor
ImportError: No module named google.protobuf

1.确定需要导入的库是否正确安装
2.PYTHONPATH中是否指定路径

export PYTHONPATH=/home/ubuntu/Download/spark-2.1.1/python:/home/ubuntu/anaconda2/lib/python2.7/site-packages

There is another possibility, if you are running a python 2.7.11 or other similar versions,

    sudo pip install protobuf

is ok. But if you are in a anaconda environment, you should use

    sudo conda install protobuf