Created
October 10, 2016 13:17
-
-
Save developer-sdk/f71c5bb9179fe2d26e36bf32de2824fa to your computer and use it in GitHub Desktop.
파일이 존재하는지 기다렸다가 실행하는 스크립트
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| vCount="0" | |
| while [ "${vCount}" -ne "1" ] | |
| do | |
| # hdfs 상의 경로 | |
| vCount=`hadoop fs -ls hdfs://[파일경로] | wc -l` | |
| # 로컬상의 경로 | |
| vCount=`find -name "[파일명]" | wc -l` | |
| echo "${vCount}" | |
| sleep 5m # 5 minute | |
| done | |
| echo "execute!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment