<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: curl command give no output on https connection in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187086#M78147</link>
    <description>&lt;P&gt;Its my bad, you are correct&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8080 (http): &lt;/STRONG&gt;Interface to Ambari Web and &lt;STRONG&gt;Ambari REST API its work to me&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;correct i am earlier hitting cloud manager url.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 May 2018 16:44:13 GMT</pubDate>
    <dc:creator>jay3016</dc:creator>
    <dc:date>2018-05-11T16:44:13Z</dc:date>
    <item>
      <title>curl command give no output on https connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187082#M78143</link>
      <description>&lt;P&gt;curl -u admin:admin -H "X-Requested-By: ambari" -i -X GET -k &lt;A href="https://ambariserver1.cloudapp.net:8440/api/v1/clusters/hdptest" target="_blank"&gt;https://ambariserver1.cloudapp.net:8440/api/v1/clusters/hdptest&lt;/A&gt;&lt;/P&gt;&lt;P&gt;HTTP/1.1 200 OK
Content-Length: 0
Server: Jetty(8.1.19.v20160209)&lt;/P&gt;&lt;P&gt;No output other than 200 code.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 19:10:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187082#M78143</guid>
      <dc:creator>jay3016</dc:creator>
      <dc:date>2018-05-10T19:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: curl command give no output on https connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187083#M78144</link>
      <description>&lt;P&gt;Is that the correct port?   Are you running SSL?   Do you have a firewall?&lt;/P&gt;&lt;P&gt;when I run that against mine&lt;/P&gt;&lt;P&gt;curl -u admin:admin -H "X-Requested-By: ambari" -i -X GET -k  &lt;A href="http://princeton0.field.hortonworks.com:8080/api/v1/clusters/princeton0" target="_blank"&gt;http://princeton0.field.hortonworks.com:8080/api/v1/clusters/princeton0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I get a ton of JSON&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;    },
    {
      "href" : "http://princeton0.field.hortonworks.com:8080/api/v1/clusters/princeton0/alert_definitions/83",
      "AlertDefinition" : {
        "cluster_name" : "princeton0",
        "id" : 83,
        "label" : "Ambari Server Alerts",
        "name" : "ambari_server_stale_alerts"
      }
    }
  ],
  "artifacts" : [ ]&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 20:47:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187083#M78144</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2018-05-10T20:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: curl command give no output on https connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187084#M78145</link>
      <description>&lt;P&gt;Answer to your question &lt;/P&gt;&lt;P&gt;Is that the correct port? yes its correct&lt;/P&gt;&lt;P&gt; Are you running SSL? yes  ( cluster created from cloudbreak)&lt;/P&gt;&lt;P&gt;Do you have a firewall? yes, ports are opened&lt;/P&gt;&lt;P&gt;i am not able to trace the issue&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 15:20:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187084#M78145</guid>
      <dc:creator>jay3016</dc:creator>
      <dc:date>2018-05-11T15:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: curl command give no output on https connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187085#M78146</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/69344/jay3016.html" nodeid="69344"&gt;@JJ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You seems to be hitting the Cloud Manager URL.   &lt;A href="https://ambariserver1.cloudapp.net"&gt;https://ambariserver1.cloudapp.net&lt;/A&gt;:8440&lt;/P&gt;&lt;P&gt;1. Please check if your ambari is actually running on HTTPS or not? And what is the SSL Port.&lt;/P&gt;&lt;PRE&gt;# grep 'ssl' /etc/ambari-server/conf/ambari.properties
api.ssl=true
client.api.ssl.port=8443
&lt;/PRE&gt;&lt;P&gt;If the grep 'ssl' does not return any value then it means your ambari server is not listening on Secure Port.&lt;/P&gt;&lt;P&gt;2. Check on which port the ambari server listening to:&lt;/P&gt;&lt;PRE&gt;# netstat -tnlpa | grep `cat /var/run/ambari-server/ambari-server.pid`
tcp6       0      0 :::8080                 :::*                    LISTEN      27953/java          
tcp6       0      0 :::8440                 :::*                    LISTEN      27953/java          
tcp6       0      0 :::8441                 :::*                    LISTEN      27953/java  &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Ambari Server uses the following ports:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8440 (https): &lt;/STRONG&gt; Handshake Port for Ambari Agents to Ambari Server.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8441 (https): &lt;/STRONG&gt; Registration and Heartbeat Port for Ambari Agents to Ambari Server&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8080 (http):  &lt;/STRONG&gt;Interface to Ambari Web and &lt;STRONG&gt;Ambari REST API&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. So please check what is the client API port.  Usually it is 8080.&lt;/P&gt;&lt;P&gt;4. Now try accessing the Rest Call on Rest Port.&lt;/P&gt;&lt;P&gt;Try using Hostname:&lt;/P&gt;&lt;PRE&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -i -X GET  &lt;A href="http://ambariserver1.cloudapp.net:8080/api/v1/clusters/hdptest" target="_blank"&gt;http://ambariserver1.cloudapp.net:8080/api/v1/clusters/hdptest&lt;/A&gt;
(OR)
# curl -u admin:admin -H "X-Requested-By: ambari" -i -X GET -k &lt;A href="https://ambariserver1.cloudapp.net:8443/api/v1/clusters/hdptest" target="_blank"&gt;https://ambariserver1.cloudapp.net:8443/api/v1/clusters/hdptest&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Try using IP Address of Ambari Server as well. &lt;/P&gt;&lt;PRE&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -i -X GET  &lt;A href="http://10.10.10.10:8080/api/v1/clusters/hdptest" target="_blank"&gt;http://10.10.10.10:8080/api/v1/clusters/hdptest&lt;/A&gt;
(OR)
# curl -u admin:admin -H "X-Requested-By: ambari" -i -X GET -k &lt;A href="https://10.10.10.10:8443/api/v1/clusters/hdptest" target="_blank"&gt;https://10.10.10.10:8443/api/v1/clusters/hdptest&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Assuming that 10.10.10.10 is your ambari server ip address.&lt;/P&gt;&lt;P&gt;If your Ambari Server is running on 8443 port (https) for Rest APIs then replace 8080 with 8443 and then try.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 15:34:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187085#M78146</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-05-11T15:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: curl command give no output on https connection</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187086#M78147</link>
      <description>&lt;P&gt;Its my bad, you are correct&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8080 (http): &lt;/STRONG&gt;Interface to Ambari Web and &lt;STRONG&gt;Ambari REST API its work to me&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;correct i am earlier hitting cloud manager url.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 16:44:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-command-give-no-output-on-https-connection/m-p/187086#M78147</guid>
      <dc:creator>jay3016</dc:creator>
      <dc:date>2018-05-11T16:44:13Z</dc:date>
    </item>
  </channel>
</rss>

