Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Spark Upload a new App: Server Error (500)

Highlighted

Spark Upload a new App: Server Error (500)

Explorer

Hi all,

 

When I try to upload a new app to the newly added Spark interface in Hue (CDH5.0.0beta2) I receive the following:

 

http://x.x.x.x:8888/spark/upload_app

 

__________________________________________________________________________________________________________

[02/Apr/2014 11:05:17 +0000] base         ERROR    Internal Server Error: /spark/upload_app
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-5.0.0-0.cdh5b2.p0.27/lib/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/cloudera/parcels/CDH-5.0.0-0.cdh5b2.p0.27/lib/hue/apps/spark/src/spark/views.py", line 122, in upload_app
    response['results'] = api.upload_jar(app_name, data)
  File "/opt/cloudera/parcels/CDH-5.0.0-0.cdh5b2.p0.27/lib/hue/apps/spark/src/spark/job_server_api.py", line 108, in upload_jar
    return self._root.post('jars/%s' % app_name, data=data, contenttype=_BINARY_CONTENT_TYPE)
  File "/opt/cloudera/parcels/CDH-5.0.0-0.cdh5b2.p0.27/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", line 116, in post
    self._make_headers(contenttype))
  File "/opt/cloudera/parcels/CDH-5.0.0-0.cdh5b2.p0.27/lib/hue/desktop/core/src/desktop/lib/rest/resource.py", line 74, in invoke
    allow_redirects=allow_redirects)
  File "/opt/cloudera/parcels/CDH-5.0.0-0.cdh5b2.p0.27/lib/hue/desktop/core/src/desktop/lib/rest/http_client.py", line 152, in execute
    raise self._exc_class(ex)
RestException: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 405 HTTP method POST is not supported by this URL</title>
</head>
<body><h2>HTTP ERROR 405</h2>
<p>Problem accessing /jars/Pi. Reason:
<pre>    HTTP method POST is not supported by this URL</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>                                                
<br/>                                                
<br/>                                                

</body>
</html>
 (error 405)




[02/Apr/2014 11:05:17 +0000] middleware   INFO     Processing exception: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 405 HTTP method POST is not supported by this URL</title>
</head>
<body><h2>HTTP ERROR 405</h2>
<p>Problem accessing /jars/Pi. Reason:
<pre>    HTTP method POST is not supported by this URL</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>                                                
<br/>                                                

 

Any suggestions? Thanks.

1 REPLY 1

Re: Spark Upload a new App: Server Error (500)

Hum, does the wordcount example works already?

BTW: the latest Spark Server is here:
http://gethue.com/a-new-spark-web-ui-spark-app/

And it works with CDH5 (coming up today)

Romain

Don't have an account?
Coming from Hortonworks? Activate your account here