Hi,

I have two python scripts that is loaded into Hive, one of the python script
reference the other file as class file.  However, when I run the transform
statement with the first python script, it says it can't reference the other
file in the import header.

So, is there a way to reference the other python script?  Or do I have embed
all the files into one file?  BTW, when I add file, which directory on the
Slaves does the files copy to?

Thanks,
-ray

Python: foo.py

#!/usr/bin/env python

from bar import bar1


Hive:

add file foo.py
add file bar.py

select
  transform(x, y)
  using 'python foo.py'
  as x, y, z
from
  footable;

*stderr logs*

Traceback (most recent call last):
  File "foo.py", line 6, in ?
    from bar import bar1
ImportError: No module named bar

Reply via email to