private function createTableIfNoExist() { exec("sh hive_tool.sh hql \"DESC iknowetl_" . parent::$app . "\"", $out, $ret); if ($ret != 0) { $fileHql = ETL_APP . parent::$app . "/event/" . parent::$app . ".hql"; if (0 != exec("sh hive_tool.sh fhql {$fileHql}")) { Bd_Conf::warning("Failed: Cannot create table" . parent::$app); return false; } } }