stuck in feeding train data
I tried many ways, but still didn't work,hope someone can help me,thanks.
the spark-submit as follow:
${SPARK_HOME}/bin/spark-submit
--master ${MASTER}
--executor-cores 1
--num-executors 3
--queue default
--py-files ${TFoS_HOME}/tfspark.zip,${TFoS_HOME}/examples/mnist/spark/mnist_dist.py
--conf spark.cores.max=${TOTAL_CORES}
--conf spark.dynamicAllocation.enabled=false
--conf spark.task.cpus=${CORES_PER_WORKER}
--conf spark.executorEnv.JAVA_HOME="$JAVA_HOME"
--conf spark.executorEnv.LD_LIBRARY_PATH=$LIB_JVM:$LIB_HDFS
--conf spark.executorEnv.HADOOP_HDFS_HOME=$HADOOP_HDFS_HOME
--conf spark.yarn.maxAppAttempts=1
--conf spark.executorEnv.CLASSPATH=$($HADOOP_HOME/bin/hadoop classpath --glob)
${TFoS_HOME}/examples/mnist/spark/mnist_spark.py
--cluster_size ${SPARK_WORKER_INSTANCES}
--images /examples/mnist/csv/train/images
--labels /examples/mnist/csv/train/labels
--format csv
--steps 10
--mode train
--model /mnist_model
some of the logs:
2019-05-10 04:28:00,638 INFO (MainThread-32956) Feeding training data 2019-05-10 04:28:00 INFO SparkContext:54 - Starting job: collect at PythonRDD.scala:153 2019-05-10 04:28:00 INFO DAGScheduler:54 - Got job 2 (collect at PythonRDD.scala:153) with 10 output partitions 2019-05-10 04:28:00 INFO DAGScheduler:54 - Final stage: ResultStage 2 (collect at PythonRDD.scala:153) 2019-05-10 04:28:00 INFO DAGScheduler:54 - Parents of final stage: List() 2019-05-10 04:28:00 INFO DAGScheduler:54 - Missing parents: List() 2019-05-10 04:28:00 INFO DAGScheduler:54 - Submitting ResultStage 2 (PythonRDD[11] at RDD at PythonRDD.scala:48), which has no missing parents 2019-05-10 04:28:00 INFO MemoryStore:54 - Block broadcast_4 stored as values in memory (estimated size 46.1 KB, free 911.6 MB) 2019-05-10 04:28:00 INFO MemoryStore:54 - Block broadcast_4_piece0 stored as bytes in memory (estimated size 11.9 KB, free 911.6 MB) 2019-05-10 04:28:00 INFO BlockManagerInfo:54 - Added broadcast_4_piece0 in memory on hadoop-maste:44195 (size: 11.9 KB, free: 912.2 MB) 2019-05-10 04:28:00 INFO SparkContext:54 - Created broadcast 4 from broadcast at DAGScheduler.scala:1039 2019-05-10 04:28:00 INFO DAGScheduler:54 - Submitting 10 missing tasks from ResultStage 2 (PythonRDD[11] at RDD at PythonRDD.scala:48) (first 15 tasks are for partitions Vector(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)) 2019-05-10 04:28:00 INFO TaskSchedulerImpl:54 - Adding task set 2.0 with 10 tasks 2019-05-10 04:28:01 INFO TaskSetManager:54 - Starting task 0.0 in stage 2.0 (TID 2, 172.16.0.3, executor 0, partition 0, ANY, 8512 bytes) 2019-05-10 04:28:01 INFO TaskSetManager:54 - Finished task 0.0 in stage 1.0 (TID 1) in 1670 ms on 172.16.0.3 (executor 0) (1/1) 2019-05-10 04:28:01 INFO TaskSchedulerImpl:54 - Removed TaskSet 1.0, whose tasks have all completed, from pool 2019-05-10 04:28:01 INFO DAGScheduler:54 - ResultStage 1 (foreachPartition at /root/TensorFlowOnSpark/tfspark.zip/tensorflowonspark/TFCluster.py:320) finished in 1.680 s 2019-05-10 04:28:01 INFO DAGScheduler:54 - Job 1 finished: foreachPartition at /root/TensorFlowOnSpark/tfspark.zip/tensorflowonspark/TFCluster.py:320, took 1.686167 s 2019-05-10 04:28:01 INFO BlockManagerInfo:54 - Added broadcast_4_piece0 in memory on 172.16.0.3:34491 (size: 11.9 KB, free: 912.2 MB)
@downcastboy have you been able to follow these instructions on a single node installation of Spark?
Otherwise, pls take a look at the Spark executor logs for any additional errors.
I have follow the instructions,and i can run the BigDL.So I really don't know what's wrong.And I check the $SPARK_HOME/logs,there is no additional errors.And I found that $SPARK_HOME/work is empty even i have run this commond ${SPARK_HOME}/sbin/start-master.sh -d $SPARK_WORKER_DIR.
I guess the problem is at the code "unionRDD.foreachPartition(TFSparkNode.train(self.cluster_info, self.cluster_meta, feed_timeout=feed_timeout, qname=qname))".I want to check the log.However,it seems like if using the foreachPartition function,the logs can't be show in the terminal, and i can't find the logs in the $SPARK_WORKER_DIR either.
You can view the logs for each executor in the Spark UI -> Executors tab -> stderr (per executor). The terminal only shows the logs from the driver.
I find this and I guess these are the logs.

Because I run the spark in the docker.So i run the common curl stderr in the docker.And stderr just like this [1] 7046 [2] 7047 But it seem to be not the logs.
It seems to be stuck in here.The joinThr didn't finish.
# wait for consumers to finish processing all items in queue before "finishing" this iterator
joinThr = Thread(target=queue.join)
joinThr.start()
timeout = feed_timeout
while (joinThr.isAlive()):
if (not equeue.empty()):
e_str = equeue.get()
equeue.task_done()
raise Exception("exception in worker:\n" + e_str)
time.sleep(1)
timeout -= 1
if timeout <= 0:
raise Exception("Timeout while feeding partition")
Yeah, in general, this will be where the Spark side blocks... because it's waiting for the Tensorflow side to consume data. If the tensorflow side doesn't consume the data (for whatever reason), you'll see the "Timeout while feeding partition".
The trick is to see what the TensorFlow side is doing... which is in the stderr logs of the executors. Are you at least able to click the "stderr" links shown there? Also, I haven't run Spark in docker, so I'm not sure if there any other issues with that... Are you able to run the single-node standalone example without Docker?
I finally find the stderr.But it seems nothing wrong.
2019-05-16 02:40:19,533 INFO (MainThread-3297) Starting TensorFlow ps:0 as ps on cluster node 0 on background process
2019-05-16 02:40:19,669 INFO (MainThread-3309) 0: ======== ps:0 ========
2019-05-16 02:40:19,670 INFO (MainThread-3309) 0: Cluster spec: {'ps': ['172.16.0.3:38007'], 'worker': ['172.16.0.4:36519']}
2019-05-16 02:40:19,670 INFO (MainThread-3309) 0: Using CPU
2019-05-16 02:40:19.671320: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-05-16 02:40:19.674645: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:215] Initialize GrpcChannelCache for job ps -> {0 -> localhost:38007}
2019-05-16 02:40:19.674682: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:215] Initialize GrpcChannelCache for job worker -> {0 -> 172.16.0.4:36519}
2019-05-16 02:40:19.676865: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:324] Started server with target: grpc://localhost:38007
And I wonder if you have some test or experience on the tensorflowonspark's speed compared with others.
That's actually the logs of the PS node. Can you see what the worker node was doing?
As for TFoS speed, since TFoS essentially just launches a TF cluster on top of the Spark executors, it's only marginally slower than natively standing up separate TF nodes on physical machines (due to the overhead of running Spark on the same host) for InputMode.TENSORFLOW. For InputMode.SPARK, it can be a bit slower, since we're using a Spark RDD that ships data to each executor and then passes it to the TF processes via a Python queue. So if performance is an absolute concern, I'd recommend just using InputMode.TENSORFLOW, but if you're already familiar with Spark and/or you have upstream Spark data pipelines, it can be easier to integrate via InputMode.SPARK.
Closing due to inactivity. Feel free to re-open if still an issue.
hi,i have the same question,how did you resolve it?
19/08/07 09:57:39 INFO executor.CoarseGrainedExecutorBackend: Started daemon with process name: 4115@mf05
19/08/07 09:57:39 INFO util.SignalUtils: Registered signal handler for TERM
19/08/07 09:57:39 INFO util.SignalUtils: Registered signal handler for HUP
19/08/07 09:57:39 INFO util.SignalUtils: Registered signal handler for INT
19/08/07 09:57:39 INFO spark.SecurityManager: Changing view acls to: yarn,root
19/08/07 09:57:39 INFO spark.SecurityManager: Changing modify acls to: yarn,root
19/08/07 09:57:39 INFO spark.SecurityManager: Changing view acls groups to:
19/08/07 09:57:39 INFO spark.SecurityManager: Changing modify acls groups to:
19/08/07 09:57:39 INFO spark.SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(yarn, root); groups with view permissions: Set(); users with modify permissions: Set(yarn, root); groups with modify permissions: Set()
19/08/07 09:57:40 INFO client.TransportClientFactory: Successfully created connection to mf05/192.168.199.194:44569 after 55 ms (0 ms spent in bootstraps)
19/08/07 09:57:40 INFO spark.SecurityManager: Changing view acls to: yarn,root
19/08/07 09:57:40 INFO spark.SecurityManager: Changing modify acls to: yarn,root
19/08/07 09:57:40 INFO spark.SecurityManager: Changing view acls groups to:
19/08/07 09:57:40 INFO spark.SecurityManager: Changing modify acls groups to:
19/08/07 09:57:40 INFO spark.SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(yarn, root); groups with view permissions: Set(); users with modify permissions: Set(yarn, root); groups with modify permissions: Set()
19/08/07 09:57:40 INFO client.TransportClientFactory: Successfully created connection to mf05/192.168.199.194:44569 after 1 ms (0 ms spent in bootstraps)
19/08/07 09:57:40 INFO storage.DiskBlockManager: Created local directory at /yarn/nm/usercache/root/appcache/application_1564629002287_0305/blockmgr-4dde6caa-bc5d-413c-8af5-14b6962e3ae7
19/08/07 09:57:40 INFO memory.MemoryStore: MemoryStore started with capacity 366.3 MB
19/08/07 09:57:40 INFO executor.CoarseGrainedExecutorBackend: Connecting to driver: spark://CoarseGrainedScheduler@mf05:44569
19/08/07 09:57:40 INFO executor.CoarseGrainedExecutorBackend: Successfully registered with driver
19/08/07 09:57:40 INFO executor.Executor: Starting executor ID 5 on host mf05
19/08/07 09:57:40 INFO util.Utils: Successfully started service 'org.apache.spark.network.netty.NettyBlockTransferService' on port 32847.
19/08/07 09:57:40 INFO netty.NettyBlockTransferService: Server created on mf05:32847
19/08/07 09:57:40 INFO storage.BlockManager: Using org.apache.spark.storage.RandomBlockReplicationPolicy for block replication policy
19/08/07 09:57:40 INFO storage.BlockManagerMaster: Registering BlockManager BlockManagerId(5, mf05, 32847, None)
19/08/07 09:57:40 INFO storage.BlockManagerMaster: Registered BlockManager BlockManagerId(5, mf05, 32847, None)
19/08/07 09:57:40 INFO storage.BlockManager: external shuffle service port = 7337
19/08/07 09:57:40 INFO storage.BlockManager: Registering executor with local external shuffle service.
19/08/07 09:57:40 INFO client.TransportClientFactory: Successfully created connection to mf05/192.168.199.194:7337 after 3 ms (0 ms spent in bootstraps)
19/08/07 09:57:40 INFO storage.BlockManager: Initialized BlockManager: BlockManagerId(5, mf05, 32847, None)
19/08/07 09:57:41 INFO executor.CoarseGrainedExecutorBackend: Got assigned task 4
19/08/07 09:57:41 INFO executor.Executor: Running task 4.0 in stage 0.0 (TID 4)
19/08/07 09:57:41 INFO broadcast.TorrentBroadcast: Started reading broadcast variable 2
19/08/07 09:57:41 INFO client.TransportClientFactory: Successfully created connection to mf05/192.168.199.194:36339 after 13 ms (0 ms spent in bootstraps)
19/08/07 09:57:41 INFO memory.MemoryStore: Block broadcast_2_piece0 stored as bytes in memory (estimated size 10.2 KB, free 366.3 MB)
19/08/07 09:57:42 INFO broadcast.TorrentBroadcast: Reading broadcast variable 2 took 419 ms
19/08/07 09:57:42 INFO memory.MemoryStore: Block broadcast_2 stored as values in memory (estimated size 14.7 KB, free 366.3 MB)
WARNING: Logging before flag parsing goes to stderr.
I0807 09:57:43.784276 140518901212992 reservation.py:218] connected to server at ('192.168.199.194', 43826)
I0807 09:57:43.786020 140518901212992 TFSparkNode.py:257] TFSparkNode.reserve: {'port': 46714, 'authkey': '\x01\xdd\xa4\xb5\xb1\xb3AD\x8dA\xdf\xa7\x1f\xb8\xfc\x8a', 'executor_id': 4, 'addr': '/tmp/pymp-iI3YFN/listener-tuxspU', 'tb_port': 0, 'task_index': 3, 'host': '192.168.199.194', 'tb_pid': 0, 'job_name': 'worker'}
I0807 09:57:44.788530 140518901212992 TFSparkNode.py:271] node: {'executor_id': 0, 'addr': ('192.168.199.192', 41399), 'task_index': 0, 'port': 43697, 'authkey': '\xb0\x1d\xfdys\xb2D\x11\xa62\xc6r}\xc5zn', 'host': '192.168.199.192', 'job_name': 'ps', 'tb_pid': 0, 'tb_port': 0}
I0807 09:57:44.788665 140518901212992 TFSparkNode.py:271] node: {'executor_id': 1, 'addr': '/tmp/pymp-GnyWIz/listener-PoXw_o', 'task_index': 0, 'port': 34473, 'authkey': '\x83\x05\x7f?\xf2`F\xac\xbb\x16\xa1?T\x93Uy', 'host': '192.168.199.192', 'job_name': 'worker', 'tb_pid': 0, 'tb_port': 0}
I0807 09:57:44.788736 140518901212992 TFSparkNode.py:271] node: {'executor_id': 2, 'addr': '/tmp/pymp-ai2E8s/listener-Oav9Jc', 'task_index': 1, 'port': 38906, 'authkey': 'Y8\x06?X\xa1B\x0f\xb7\x8dnc\xd8I\x11\xcb', 'host': '192.168.199.194', 'job_name': 'worker', 'tb_pid': 0, 'tb_port': 0}
I0807 09:57:44.788796 140518901212992 TFSparkNode.py:271] node: {'executor_id': 3, 'addr': '/tmp/pymp-dUnkd4/listener-D2h0MI', 'task_index': 2, 'port': 37861, 'authkey': 'B\xd8g\x11\xe6\x08H\xe5\xbdtqH\xbd\x94\x8c\xd3', 'host': '192.168.199.192', 'job_name': 'worker', 'tb_pid': 0, 'tb_port': 0}
I0807 09:57:44.788852 140518901212992 TFSparkNode.py:271] node: {'executor_id': 4, 'addr': '/tmp/pymp-iI3YFN/listener-tuxspU', 'task_index': 3, 'port': 46714, 'authkey': '\x01\xdd\xa4\xb5\xb1\xb3AD\x8dA\xdf\xa7\x1f\xb8\xfc\x8a', 'host': '192.168.199.194', 'job_name': 'worker', 'tb_pid': 0, 'tb_port': 0}
I0807 09:57:44.788911 140518901212992 TFSparkNode.py:271] node: {'executor_id': 5, 'addr': '/tmp/pymp-oyQuQg/listener-p6AjMM', 'task_index': 4, 'port': 46836, 'authkey': " '\x01JS\xcfI\xed\xa9\xaa\xa7<\\\x10\x03\xe1", 'host': '192.168.199.194', 'job_name': 'worker', 'tb_pid': 0, 'tb_port': 0}
I0807 09:57:44.789118 140518901212992 TFSparkNode.py:337] Starting TensorFlow worker:3 as worker on cluster node 4 on background process
19/08/07 09:57:44 INFO python.PythonRunner: Times: total = 2368, boot = 254, init = 73, finish = 2041
I0807 09:57:44.794356 140518901212992 TFNode.py:80] 4: ======== worker:3 ========
I0807 09:57:44.794806 140518901212992 TFNode.py:82] 4: Cluster spec: {'ps': ['192.168.199.192:43697'], 'worker': ['192.168.199.192:34473', '192.168.199.194:38906', '192.168.199.192:37861', '192.168.199.194:46714', '192.168.199.194:46836']}
I0807 09:57:44.795027 140518901212992 TFNode.py:128] 4: Using CPU
W0807 09:57:44.795651 140518901212992 deprecation_wrapper.py:119] From /usr/lib/python2.7/site-packages/tensorflowonspark/TFNode.py:134: The name tf.train.Server is deprecated. Please use tf.distribute.Server instead.
2019-08-07 09:57:44.796368: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: FMA
19/08/07 09:57:44 INFO executor.Executor: Finished task 4.0 in stage 0.0 (TID 4). 1462 bytes result sent to driver
2019-08-07 09:57:44.814592: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3000000000 Hz
2019-08-07 09:57:44.816310: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x523b9a0 executing computations on platform Host. Devices:
2019-08-07 09:57:44.816343: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): <undefined>, <undefined>
2019-08-07 09:57:44.817884: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:250] Initialize GrpcChannelCache for job ps -> {0 -> 192.168.199.192:43697}
2019-08-07 09:57:44.817912: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:250] Initialize GrpcChannelCache for job worker -> {0 -> 192.168.199.192:34473, 1 -> 192.168.199.194:38906, 2 -> 192.168.199.192:37861, 3 -> localhost:46714, 4 -> 192.168.199.194:46836}
2019-08-07 09:57:44.818755: I tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:365] Started server with target: grpc://localhost:46714
W0807 09:57:44.819139 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:51: The name tf.train.replica_device_setter is deprecated. Please use tf.compat.v1.train.replica_device_setter instead.
19/08/07 09:57:44 INFO executor.CoarseGrainedExecutorBackend: Got assigned task 6
19/08/07 09:57:44 INFO executor.Executor: Running task 0.0 in stage 1.0 (TID 6)
19/08/07 09:57:44 INFO broadcast.TorrentBroadcast: Started reading broadcast variable 3
19/08/07 09:57:44 INFO memory.MemoryStore: Block broadcast_3_piece0 stored as bytes in memory (estimated size 8.6 KB, free 366.3 MB)
19/08/07 09:57:44 INFO broadcast.TorrentBroadcast: Reading broadcast variable 3 took 10 ms
19/08/07 09:57:44 INFO memory.MemoryStore: Block broadcast_3 stored as values in memory (estimated size 16.7 KB, free 366.3 MB)
19/08/07 09:57:44 INFO rdd.HadoopRDD: Input split: hdfs://nameservice1/data/tensorflow/TensorFlowOnSpark/examples/mnist/csv/train/images/part-00000:0+9338236
19/08/07 09:57:44 INFO broadcast.TorrentBroadcast: Started reading broadcast variable 0
19/08/07 09:57:44 INFO memory.MemoryStore: Block broadcast_0_piece0 stored as bytes in memory (estimated size 29.5 KB, free 366.2 MB)
19/08/07 09:57:44 INFO broadcast.TorrentBroadcast: Reading broadcast variable 0 took 8 ms
W0807 09:57:44.911000 140518901212992 deprecation.py:323] From /usr/lib/python2.7/site-packages/tensorflow/python/data/ops/dataset_ops.py:494: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version.
Instructions for updating:
tf.py_func is deprecated in TF V2. Instead, there are two
options available in V2.
- tf.py_function takes a python function which manipulates tf eager
tensors instead of numpy arrays. It's easy to convert a tf eager tensor to
an ndarray (just call tensor.numpy()) but having access to eager tensors
means `tf.py_function`s can use accelerators such as GPUs as well as
being differentiable using a gradient tape.
- tf.numpy_function maintains the semantics of the deprecated tf.py_func
(it is not differentiable, and manipulates numpy arrays). It drops the
stateful argument making all functions stateful.
W0807 09:57:44.935061 140518901212992 deprecation.py:323] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:57: make_one_shot_iterator (from tensorflow.python.data.ops.dataset_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `for ... in dataset:` to iterate over a dataset. If using `tf.estimator`, return the `Dataset` object directly from your input function. As a last resort, you can use `tf.compat.v1.data.make_one_shot_iterator(dataset)`.
W0807 09:57:44.949436 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:61: The name tf.truncated_normal is deprecated. Please use tf.random.truncated_normal instead.
W0807 09:57:44.959418 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:64: The name tf.summary.histogram is deprecated. Please use tf.compat.v1.summary.histogram instead.
19/08/07 09:57:44 INFO memory.MemoryStore: Block broadcast_0 stored as values in memory (estimated size 480.2 KB, free 365.8 MB)
W0807 09:57:44.972735 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:73: The name tf.summary.image is deprecated. Please use tf.compat.v1.summary.image instead.
W0807 09:57:44.974344 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:75: The name tf.nn.xw_plus_b is deprecated. Please use tf.compat.v1.nn.xw_plus_b instead.
W0807 09:57:44.978847 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:80: The name tf.train.get_or_create_global_step is deprecated. Please use tf.compat.v1.train.get_or_create_global_step instead.
W0807 09:57:44.982542 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:82: The name tf.log is deprecated. Please use tf.math.log instead.
W0807 09:57:44.988171 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:83: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
W0807 09:57:44.989712 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:84: The name tf.train.AdagradOptimizer is deprecated. Please use tf.compat.v1.train.AdagradOptimizer instead.
W0807 09:57:45.011393 140518901212992 deprecation.py:323] From /usr/lib/python2.7/site-packages/tensorflow/python/ops/math_grad.py:1250: where (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
W0807 09:57:45.044339 140518901212992 deprecation.py:506] From /usr/lib/python2.7/site-packages/tensorflow/python/training/adagrad.py:76: calling __init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
W0807 09:57:45.072280 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:94: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
W0807 09:57:45.086364 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:95: The name tf.summary.merge_all is deprecated. Please use tf.compat.v1.summary.merge_all instead.
W0807 09:57:45.087371 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:96: The name tf.global_variables_initializer is deprecated. Please use tf.compat.v1.global_variables_initializer instead.
W0807 09:57:45.088224 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:101: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.
tensorflow model path: hdfs://nameservice1/user/root/mnist_model
W0807 09:57:45.088361 140518901212992 deprecation_wrapper.py:119] From /yarn/nm/usercache/root/appcache/application_1564629002287_0305/container_1564629002287_0305_01_000006/__pyfiles__/mnist_dist.py:101: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.
W0807 09:57:45.111759 140518901212992 deprecation.py:323] From /usr/lib/python2.7/site-packages/tensorflow/python/training/training_util.py:236: initialized_value (from tensorflow.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Use Variable.read_value. Variables in 2.X are initialized automatically both in eager and graph (inside tf.defun) contexts.
I0807 09:57:45.171817 140518901212992 monitored_session.py:240] Graph was finalized.
19/08/07 09:57:45 INFO rdd.HadoopRDD: Input split: hdfs://nameservice1/data/tensorflow/TensorFlowOnSpark/examples/mnist/csv/train/labels/part-00000:0+204800
19/08/07 09:57:45 INFO broadcast.TorrentBroadcast: Started reading broadcast variable 1
19/08/07 09:57:45 INFO memory.MemoryStore: Block broadcast_1_piece0 stored as bytes in memory (estimated size 29.5 KB, free 365.7 MB)
19/08/07 09:57:45 INFO broadcast.TorrentBroadcast: Reading broadcast variable 1 took 26 ms
19/08/07 09:57:45 INFO memory.MemoryStore: Block broadcast_1 stored as values in memory (estimated size 480.2 KB, free 365.3 MB)
2019-08-07 09:57:46.231409: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile.
I0807 09:57:46.319852 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
2019-08-07 09:57:46,413 INFO (MainThread-4621) Connected to TFSparkNode.mgr on 192.168.199.194, executor=4, state='running'
2019-08-07 09:57:46,418 INFO (MainThread-4621) mgr.state='running'
2019-08-07 09:57:46,418 INFO (MainThread-4621) Feeding partition <itertools.chain object at 0x7fcd02c64690> into input queue <multiprocessing.queues.JoinableQueue object at 0x7fccee252d50>
19/08/07 09:57:48 INFO python.PythonRunner: Times: total = 2262, boot = -1015, init = 1163, finish = 2114
19/08/07 09:57:48 INFO python.PythonRunner: Times: total = 200, boot = 9, init = 105, finish = 86
I0807 09:58:16.374706 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 09:58:46.426637 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 09:59:16.480633 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 09:59:46.531801 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:00:16.584745 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:00:46.609616 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:01:16.660300 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:01:46.711251 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:02:16.763864 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:02:46.814161 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:03:16.867670 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:03:46.921693 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:04:16.970519 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:04:47.018759 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:05:17.071453 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:05:47.124068 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:06:17.172358 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:06:47.226696 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:07:17.274636 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:07:47.328304 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
19/08/07 10:07:48 ERROR executor.Executor: Exception in task 0.0 in stage 1.0 (TID 6)
org.apache.spark.api.python.PythonException: Traceback (most recent call last):
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/worker.py", line 253, in main
process()
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/worker.py", line 248, in process
serializer.dump_stream(func(split_index, iterator), outfile)
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/rdd.py", line 2440, in pipeline_func
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/rdd.py", line 2440, in pipeline_func
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/rdd.py", line 2440, in pipeline_func
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/rdd.py", line 350, in func
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/rdd.py", line 799, in func
File "/usr/lib/python2.7/site-packages/tensorflowonspark/TFSparkNode.py", line 420, in _train
raise Exception("Timeout while feeding partition")
Exception: Timeout while feeding partition
at org.apache.spark.api.python.BasePythonRunner$ReaderIterator.handlePythonException(PythonRunner.scala:330)
at org.apache.spark.api.python.PythonRunner$$anon$1.read(PythonRunner.scala:470)
at org.apache.spark.api.python.PythonRunner$$anon$1.read(PythonRunner.scala:453)
at org.apache.spark.api.python.BasePythonRunner$ReaderIterator.hasNext(PythonRunner.scala:284)
at org.apache.spark.InterruptibleIterator.hasNext(InterruptibleIterator.scala:37)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at org.apache.spark.InterruptibleIterator.foreach(InterruptibleIterator.scala:28)
at scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:59)
at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:104)
at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:48)
at scala.collection.TraversableOnce$class.to(TraversableOnce.scala:310)
at org.apache.spark.InterruptibleIterator.to(InterruptibleIterator.scala:28)
at scala.collection.TraversableOnce$class.toBuffer(TraversableOnce.scala:302)
at org.apache.spark.InterruptibleIterator.toBuffer(InterruptibleIterator.scala:28)
at scala.collection.TraversableOnce$class.toArray(TraversableOnce.scala:289)
at org.apache.spark.InterruptibleIterator.toArray(InterruptibleIterator.scala:28)
at org.apache.spark.rdd.RDD$$anonfun$collect$1$$anonfun$12.apply(RDD.scala:945)
at org.apache.spark.rdd.RDD$$anonfun$collect$1$$anonfun$12.apply(RDD.scala:945)
at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:2074)
at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:2074)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
at org.apache.spark.scheduler.Task.run(Task.scala:109)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:381)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
19/08/07 10:07:48 INFO executor.CoarseGrainedExecutorBackend: Got assigned task 11
19/08/07 10:07:48 INFO executor.Executor: Running task 4.0 in stage 1.0 (TID 11)
19/08/07 10:07:48 INFO rdd.HadoopRDD: Input split: hdfs://nameservice1/data/tensorflow/TensorFlowOnSpark/examples/mnist/csv/train/images/part-00004:0+11212767
19/08/07 10:07:48 INFO rdd.HadoopRDD: Input split: hdfs://nameservice1/data/tensorflow/TensorFlowOnSpark/examples/mnist/csv/train/labels/part-00004:0+245760
2019-08-07 10:07:49,085 INFO (MainThread-6945) Connected to TFSparkNode.mgr on 192.168.199.194, executor=4, state='running'
2019-08-07 10:07:49,090 INFO (MainThread-6945) mgr.state='running'
2019-08-07 10:07:49,090 INFO (MainThread-6945) Feeding partition <itertools.chain object at 0x7fcd02c64690> into input queue <multiprocessing.queues.JoinableQueue object at 0x7fccee252d50>
19/08/07 10:07:50 INFO python.PythonRunner: Times: total = 2005, boot = 3, init = 19, finish = 1983
19/08/07 10:07:50 INFO python.PythonRunner: Times: total = 181, boot = 2, init = 134, finish = 45
I0807 10:08:17.382553 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:08:47.435833 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:09:17.488526 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:09:47.542316 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:10:17.592695 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:10:47.640933 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:11:17.692090 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:11:47.728646 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:12:17.782790 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:12:47.810137 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:13:17.862639 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:13:47.913084 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:14:17.962150 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:14:48.013838 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:15:18.063036 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:15:48.101399 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:16:18.152228 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:16:48.199759 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:17:18.250766 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
I0807 10:17:48.304754 140518901212992 session_manager.py:436] Waiting for model to be ready. Ready_for_local_init_op: Variables not initialized: hid_w, hid_b, sm_w, sm_b, global_step, hid_w/Adagrad, hid_b/Adagrad, sm_w/Adagrad, sm_b/Adagrad, ready: None
19/08/07 10:17:51 ERROR executor.Executor: Exception in task 4.0 in stage 1.0 (TID 11)
org.apache.spark.api.python.PythonException: Traceback (most recent call last):
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/worker.py", line 253, in main
process()
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/worker.py", line 248, in process
serializer.dump_stream(func(split_index, iterator), outfile)
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/rdd.py", line 2440, in pipeline_func
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/rdd.py", line 2440, in pipeline_func
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/rdd.py", line 2440, in pipeline_func
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/rdd.py", line 350, in func
File "/opt/cloudera/parcels/SPARK2-2.3.0.cloudera4-1.cdh5.13.3.p0.611179/lib/spark2/python/lib/pyspark.zip/pyspark/rdd.py", line 799, in func
File "/usr/lib/python2.7/site-packages/tensorflowonspark/TFSparkNode.py", line 420, in _train
raise Exception("Timeout while feeding partition")
Exception: Timeout while feeding partition
at org.apache.spark.api.python.BasePythonRunner$ReaderIterator.handlePythonException(PythonRunner.scala:330)
at org.apache.spark.api.python.PythonRunner$$anon$1.read(PythonRunner.scala:470)
at org.apache.spark.api.python.PythonRunner$$anon$1.read(PythonRunner.scala:453)
at org.apache.spark.api.python.BasePythonRunner$ReaderIterator.hasNext(PythonRunner.scala:284)
at org.apache.spark.InterruptibleIterator.hasNext(InterruptibleIterator.scala:37)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at org.apache.spark.InterruptibleIterator.foreach(InterruptibleIterator.scala:28)
at scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:59)
at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:104)
at scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:48)
at scala.collection.TraversableOnce$class.to(TraversableOnce.scala:310)
at org.apache.spark.InterruptibleIterator.to(InterruptibleIterator.scala:28)
at scala.collection.TraversableOnce$class.toBuffer(TraversableOnce.scala:302)
at org.apache.spark.InterruptibleIterator.toBuffer(InterruptibleIterator.scala:28)
at scala.collection.TraversableOnce$class.toArray(TraversableOnce.scala:289)
at org.apache.spark.InterruptibleIterator.toArray(InterruptibleIterator.scala:28)
at org.apache.spark.rdd.RDD$$anonfun$collect$1$$anonfun$12.apply(RDD.scala:945)
at org.apache.spark.rdd.RDD$$anonfun$collect$1$$anonfun$12.apply(RDD.scala:945)
at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:2074)
at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:2074)
at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
at org.apache.spark.scheduler.Task.run(Task.scala:109)
at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:381)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Sorrt,I didn't find the right way to slove it.
@qintian95 are you using TF2.0.0-beta1? That is not officially supported per #401 That said, make sure that your model directory is hosted on a distributed/shared store that is available/readable from all of the executors.