I have two python files - my_python_A.py and my_python_B.py. The first file references the second (from my_python_B import *
).
I'm executing the first python file from a shell action in Oozie (i.e. the script is simply python my_python_A.py
), and am receiving the following error:
Traceback (most recent call last):
File "my_python_A.py", line 2, in <module>
from my_python_B import *
ImportError: No module named my_python_B
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]
Both python files are located under the same directory in HDFS. How can I get this import statement to work?