<?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 with hive on secured cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109079#M21815</link>
    <description>&lt;P&gt;I generally add "-b ~/cookie.txt -c ~/cookie.txt" also the curl command. And "-i" will give addition information also.&lt;/P&gt;&lt;P&gt;curl --negotiate -u : -b ~/cookie.txt -c ~/cookie.txt ...&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2016 09:22:55 GMT</pubDate>
    <dc:creator>bdurai</dc:creator>
    <dc:date>2016-03-04T09:22:55Z</dc:date>
    <item>
      <title>curl with hive on secured cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109077#M21813</link>
      <description>&lt;P&gt;How can I run curl with hive command in secured cluster?&lt;/P&gt;&lt;PRE&gt;curl -s -d execute="select+*+from+pokes;" \
       -d statusdir="pokes.output" \
       'http://localhost:50111/templeton/v1/hive?user.name=ekoifman'&lt;/PRE&gt;&lt;P&gt;in user.name - I tried to pass Hive Principal and keytab didnt work and tried with user principal didnt work. can you please provide some example?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 02:03:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109077#M21813</guid>
      <dc:creator>garunkumar85</dc:creator>
      <dc:date>2016-03-04T02:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: curl with hive on secured cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109078#M21814</link>
      <description>&lt;P&gt;Usually when you want to use curl in combination with Kerberos (secured cluster), you have to use the following command:&lt;/P&gt;&lt;PRE&gt;curl --negotiate -u : -X GET 'http://localhost:50111/templeton/v1/hive?user.name=ekoifman'&lt;/PRE&gt;&lt;P&gt;Make sure you have a valid kerberos ticket (run: klist)&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 04:50:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109078#M21814</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2016-03-04T04:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: curl with hive on secured cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109079#M21815</link>
      <description>&lt;P&gt;I generally add "-b ~/cookie.txt -c ~/cookie.txt" also the curl command. And "-i" will give addition information also.&lt;/P&gt;&lt;P&gt;curl --negotiate -u : -b ~/cookie.txt -c ~/cookie.txt ...&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 09:22:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109079#M21815</guid>
      <dc:creator>bdurai</dc:creator>
      <dc:date>2016-03-04T09:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: curl with hive on secured cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109080#M21816</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/113/jstraub.html" nodeid="113"&gt;@Jonas Straub&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/229/bdurai.html" nodeid="229"&gt;@bdurai&lt;/A&gt; for your comments. &lt;/P&gt;&lt;P&gt;In user.name what value should I pass? is it a kerberos principal of the user who is the executing the command&lt;/P&gt;&lt;P&gt;This is what I got after I ran the above command.&lt;/P&gt;&lt;P&gt;~&amp;gt; curl --negotiate -u : -X GET 'http://WebdhcatserverDNS:50111/templeton/v1/hive?user.name=ekoifman'
&lt;STRONG&gt;{"error":null}&lt;/STRONG&gt;:~&amp;gt; curl --negotiate -u : -X GET 'http://WebhcatserverDNS:50111/templeton/v1/hive?user.name=ekoifman&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 06:47:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109080#M21816</guid>
      <dc:creator>garunkumar85</dc:creator>
      <dc:date>2016-03-07T06:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: curl with hive on secured cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109081#M21817</link>
      <description>&lt;P&gt;User.name would be ignored during kerberos mode.  The credentials via kinit is what gets used.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 08:43:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109081#M21817</guid>
      <dc:creator>thejas</dc:creator>
      <dc:date>2017-02-25T08:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: curl with hive on secured cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109082#M21818</link>
      <description>&lt;P&gt;"localhost" doesn't work with kerberos authentication, you need the actual hostname in URL. &lt;A rel="user" href="https://community.cloudera.com/users/113/jstraub.html" nodeid="113"&gt;@Jonas Straub&lt;/A&gt; can you please edit ?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 09:08:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/curl-with-hive-on-secured-cluster/m-p/109082#M21818</guid>
      <dc:creator>thejas</dc:creator>
      <dc:date>2017-05-05T09:08:20Z</dc:date>
    </item>
  </channel>
</rss>

