Skip to main content
hanumanth
Gold ⭐️
September 23, 2024
Solved

oozie is unable to submit job getting below error

File "ooziepython.mod/oozie/action/OozieAction.py", line 47, in main
    status = self.run(args)
  File "StreamingAction.py", line 107, in run
    success = subprocess.check_call(command.split())
  File "/opt/hadoop3/yarn/local/filecache/178/jython-standalone-2.7.3.jar/Lib/subprocess$py.class", line 548, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/opt/hadoop3/yarn/local/filecache/178/jython-standalone-2.7.3.jar/Lib/subprocess$py.class", line 535, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/opt/hadoop3/yarn/local/filecache/178/jython-standalone-2.7.3.jar/Lib/subprocess$py.class", line 892, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/opt/hadoop3/yarn/local/filecache/178/jython-standalone-2.7.3.jar/Lib/subprocess$py.class", line 1402, in _execute_child
    raise OSError(errno.ENOENT, os.strerror(errno.ENOENT))
OSError: [Errno 2] No such file or directory

Boris G
Boris GAnswer
Gold ⭐️
October 3, 2024

Hello-
Seems like a file is missing: the code is trying to open a file, but it is not there:
return Popen(*popenargs, **kwargs).wait()

Also the following seems relevant to how make Python more explicit:
https://stackoverflow.com/questions/8978057/raising-builtin-exception-with-default-message-in-python

5 replies

DianaTorres
Community Manager
Community Manager
September 23, 2024

@jAnshula @JoseManuel @Priyar Do you have any insights here? Thanks!

Translate
Regards, Diana Torres, Senior Community Moderator
JoseManuel
Gold ⭐️
Gold ⭐️
September 24, 2024

@hanumanth 
Your Python code is throwing this: 
OSError: [Errno 2] No such file or directory

The stack is not enough to determine what is happening
Please look at the following items:
* job.properties / workflow.xml
   Is this being setup as a Shell Action?
   Are all the necessary files being provided?
   The action needs to setup the Python environment within a YARN container
* Oozie launcher log
   Is Python code starting to execute and then hit a snag or it does fail from the get-go?

Translate
DianaTorres
Community Manager
Community Manager
September 27, 2024

@hanumanth Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. If you are still experiencing the issue, can you provide the information @JoseManuel has requested? Thanks.

Translate
Regards, Diana Torres, Senior Community Moderator
Boris G
Gold ⭐️
Boris GAnswer
Gold ⭐️
October 3, 2024

Hello-
Seems like a file is missing: the code is trying to open a file, but it is not there:
return Popen(*popenargs, **kwargs).wait()

Also the following seems relevant to how make Python more explicit:
https://stackoverflow.com/questions/8978057/raising-builtin-exception-with-default-message-in-python

Translate
DianaTorres
Community Manager
Community Manager
October 10, 2024

@hanumanth Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, Thanks.

Translate
Regards, Diana Torres, Senior Community Moderator