Support Questions

Find answers, ask questions, and share your expertise

oozie is unable to submit job getting below error

avatar
Contributor

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

1 ACCEPTED SOLUTION

avatar
Expert Contributor

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

View solution in original post

5 REPLIES 5

avatar
Community Manager

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


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Expert Contributor

@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?

avatar
Community Manager

@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.


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Expert Contributor

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

avatar
Community Manager

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


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community: