Python subprocess with oozie
问题 I'm trying to use subprocess in a python script which I call within an oozie shell action. Subprocess is supposed to read a file which is stored in Hadoop's HDFS. I'm using hadoop-1.2.1 in pseudo-distributed mode and oozie-3.3.2. Here is the python script, named connected_subprocess.py : #!/usr/bin/python import subprocess import networkx as nx liste=subprocess.check_output("hadoop fs -cat /user/root/output-data/calcul-proba/final.txt",shell=True).split('\n') G=nx.DiGraph() f=open("/home/rlk