while 1:
res = es.cat.recovery(h='i,rep,snap,st,f,fr,fp', format='json')
lstRunning = [r for r in res if r['st'] != 'done']
if lstRunning:
print 'Running'
time.sleep(5)
else:
print 'Done'
break
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.