def mergeHDFSFiles(hdfsInputDir,filesNamesPattern,hdfsOutputFilePath): LinuxUtils.runLinuxCommand("hdfs dfs -cat " + hdfsInputDir + "/" + filesNamesPattern + " | hdfs dfs -put -f - " + hdfsOutputFilePath)
def runImageProcessingUnit(scriptPath,inputFilePath,configFilePath,resultFilePath): commandArray = ["/usr/bin/python",scriptPath,inputFilePath,configFilePath,resultFilePath] LinuxUtils.runLinuxCommand(" ".join(commandArray))