Пример #1
0
 def mergeHDFSFiles(hdfsInputDir,filesNamesPattern,hdfsOutputFilePath):
     LinuxUtils.runLinuxCommand("hdfs dfs -cat " + hdfsInputDir + "/" + filesNamesPattern + " | hdfs dfs -put -f - " + hdfsOutputFilePath)
Пример #2
0
def runImageProcessingUnit(scriptPath,inputFilePath,configFilePath,resultFilePath):
	commandArray = ["/usr/bin/python",scriptPath,inputFilePath,configFilePath,resultFilePath]
	LinuxUtils.runLinuxCommand(" ".join(commandArray))