By default, hadoop allows us to run java codes. But now i want to run this python script:
import os.path
def transform():
inputfolder = "input"
for filename in os.listdir(inputfolder):
path = inputfolder + "\\" + filename
os.remove(path)
def main():
transform()
if __name__ == "__main__": main()
How to run .py file instead of .jar file?