Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
-bash-4.2# curl -v -k -u admin:admin -H "X-Requested-By:ambari" -X POST http://ctr-e138-1518143905142-226218-01-000002.hwx.site:8080/api/v1/version_definitions -d '{ "VersionDefinition":
{ "version_url": "http://s3.amazonaws.com/dev.hortonworks.com/HDP/amazonlinux2/3.x/BUILDS/3.0.0.0-1189/HDP-3.0.0.0-1189.xml" } }'
Note: Unnecessary use of -X or --request, POST is already inferred.
- Trying 172.27.80.4...
- TCP_NODELAY set
- Connected to ctr-e138-1518143905142-226218-01-000002.hwx.site (172.27.80.4) port 8080 (#0)
- Server auth using Basic with user 'admin'
> POST /api/v1/version_definitions HTTP/1.1
> Host: ctr-e138-1518143905142-226218-01-000002.hwx.site:8080
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.55.1
> Accept: /
> X-Requested-By:ambari
> Content-Length: 151
> Content-Type: application/x-www-form-urlencoded
> - upload completely sent off: 151 out of 151 bytes
< HTTP/1.1 500 Internal Server Error
< Date: Fri, 13 Apr 2018 10:09:15 GMT
< X-Frame-Options: DENY
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< Cache-Control: no-store
< Pragma: no-cache
< X-Content-Type-Options: nosniff
< X-Frame-Options: DENY
< Set-Cookie: AMBARISESSIONID=node018hn2df5vsjqjuo7g1yr9mvno8.node0;Path=/;HttpOnly
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< User: admin
< Content-Type: text/plain;charset=utf-8
< Transfer-Encoding: chunked
<
{ "status" : 500, "message" : "An internal system exception occurred: Could not load url from http://s3.amazonaws.com/dev.hortonworks.com/HDP/amazonlinux2/3.x/BUILDS/3.0.0.0-1189/HDP-3.0.0.0-1189.xml. null" * Connection #0 to host ctr-e138-1518143905142-226218-01-000002.hwx.site left intact }-bash-4.2#
-bash-4.2#
Build Used:
-bash-4.2# cat /etc/yum.repos.d/ambari.repo
#VERSION_NUMBER=2.7.0.0-309
[ambari-2.7.0.0-309]
name=ambari Version - ambari-2.7.0.0-309
baseurl=http://s3.amazonaws.com/dev.hortonworks.com/ambari/amazonlinux2/2.x/BUILDS/2.7.0.0-309
gpgcheck=1
gpgkey=http://s3.amazonaws.com/dev.hortonworks.com/ambari/amazonlinux2/2.x/BUILDS/2.7.0.0-309/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1