#!/bin/sh
#time 2017-06-07
################# 初始化变量#########################
hadoop="/usr/bin/hadoop";
hdfs="/usr/bin/hdfs";
cleanpath="/home/hdfs/hadoop-hdfs/personas/clean";
if [ "$1" != "" ];then
  date=`date -d "$1" +%Y-%m-%d`;
  logdate=`date -d "$1" +%Y%m%d`;
else
  date=`date -d "-1 day" +%Y-%m-%d`;
  logdate=`date -d "-1 day" +%Y%m%d`;
fi

/bin/bash /home/hdfs/hadoop-hdfs/personas/clean/clean_api/clean_api_android.sh $date
/bin/bash /home/hdfs/hadoop-hdfs/personas/clean/clean_api/clean_api_android_lbb.sh $date
/bin/bash /home/hdfs/hadoop-hdfs/personas/clean/clean_api/clean_api_android_kyy.sh $date
/bin/bash /home/hdfs/hadoop-hdfs/personas/clean/clean_api/clean_api_ios.sh $date
/bin/bash /home/hdfs/hadoop-hdfs/personas/clean/clean_api/clean_api_h5.sh $date
