oozie import my own modules in Python -


i'm newbie in oozie. in main.py, need import own modules my_class.py uploaded same hdfs path main.py.

from my_class import my_class_1  def main():     x = my_class_1()     ... 

there error in oozie saying importerror: no module named my_class. whereas works on local.

i've tried create folder in hdfs, put my_class.py in __init__.py , folder can recognized package. from folder.my_class import * doesn't work me neither in oozie.

does knows how achieve this? many thanks.

i found anwser. need add export pythonpath=$(pwd).


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -