Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sqoop][bug?]hue doesn't show error msg when starting job failed #52

Closed
dengjinbo opened this issue Jan 7, 2014 · 1 comment
Closed
Assignees

Comments

@dengjinbo
Copy link

hue version: hue-release-3.5.0
sqoop version: 1.9.3
hue log:
[07/Jan/2014 16:53:06 +0000] base ERROR Internal Server Error: /sqoop/api/jobs/2/start
Traceback (most recent call last):
File "/opt/huawei/Bigdata/hue-3.5.0.tar/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/opt/huawei/Bigdata/hue-3.5.0.tar/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/views/decorators/cache.py", line 89, in _wrapped_view_func
response = view_func(request, _args, *_kwargs)
File "/opt/huawei/Bigdata/hue-3.5.0.tar/hue/apps/sqoop/src/sqoop/api/decorators.py", line 92, in decorate
return view_func(request, job=job, _args, *_kwargs)
File "/opt/huawei/Bigdata/hue-3.5.0.tar/hue/apps/sqoop/src/sqoop/api/job.py", line 198, in job_start
response.update(handle_rest_exception(e, _('Could not start job.')))
File "/opt/huawei/Bigdata/hue-3.5.0.tar/hue/apps/sqoop/src/sqoop/api/exception.py", line 31, in handle_rest_exception

suggestion:
replace the line 31 in hue/apps/sqoop/src/sqoop/api/exception.py with following code:

  parent_ex = e.get_parent_ex()
  reason = None
  if hasattr(parent_ex, 'reason'):
    reason = parent_ex.reason

would someone fix it please?

@generalpiston
Copy link
Contributor

review: https://review.cloudera.org/r/3987/
commit: 320c88e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants