<?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: httpfs - HTTP Status 401 - Authentication required in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/httpfs-HTTP-Status-401-Authentication-required/m-p/66483#M77337</link>
    <description>&lt;P&gt;I put in user.name=root it shows the following, I can check the file and folder, however cannot load the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$curl '&lt;A href="http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=LISTSTATUS&amp;amp;user.name=root" target="_blank"&gt;http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=LISTSTATUS&amp;amp;user.name=root&lt;/A&gt;'&lt;BR /&gt;{"FileStatuses":{"FileStatus":[{"pathSuffix":"","type":"FILE","length":6,"owner":"root","group":"root","permission":"644","accessTime":1524020367539,"modificationTime":1523951936011,"blockSize":134217728,"replication":1}]}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$curl '&lt;A href="http://192.168.1.7:14000/webhdfs/v1/user/root?op=LISTSTATUS&amp;amp;user.name=root" target="_blank"&gt;http://192.168.1.7:14000/webhdfs/v1/user/root?op=LISTSTATUS&amp;amp;user.name=root&lt;/A&gt;'&lt;BR /&gt;{"FileStatuses":{"FileStatus":[{"pathSuffix":"t","type":"FILE","length":6,"owner":"root","group":"root","permission":"644","accessTime":1524020367539,"modificationTime":1523951936011,"blockSize":134217728,"replication":1},{"pathSuffix":"test.txt","type":"FILE","length":17,"owner":"root","group":"root","permission":"644","accessTime":1524020673090,"modificationTime":1524020673700,"blockSize":134217728,"replication":1}]}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$curl "&lt;A href="http://192.168.1.7:14000/webhdfs/v1/user/root/test.txt&amp;amp;user.name=root" target="_blank"&gt;http://192.168.1.7:14000/webhdfs/v1/user/root/test.txt&amp;amp;user.name=root&lt;/A&gt;"&lt;BR /&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Apache Tomcat/6.0.53 - Error report&amp;lt;/title&amp;gt;&amp;lt;style&amp;gt;&amp;lt;!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--&amp;gt;&amp;lt;/style&amp;gt; &amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;HTTP Status 401 - Authentication required&amp;lt;/h1&amp;gt;&amp;lt;HR size="1" noshade="noshade"&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;type&amp;lt;/b&amp;gt; Status report&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;message&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;Authentication required&amp;lt;/u&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;description&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;This request requires HTTP authentication.&amp;lt;/u&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;HR size="1" noshade="noshade"&amp;gt;&amp;lt;h3&amp;gt;Apache Tomcat/6.0.53&amp;lt;/h3&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;[root@localhost ~]#&lt;/P&gt;</description>
    <pubDate>Wed, 18 Apr 2018 03:56:29 GMT</pubDate>
    <dc:creator>ronnie10</dc:creator>
    <dc:date>2018-04-18T03:56:29Z</dc:date>
    <item>
      <title>httpfs - HTTP Status 401 - Authentication required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/httpfs-HTTP-Status-401-Authentication-required/m-p/66429#M77335</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a cluster with https enabled, there is no kerberos yet, however when I tried to access my cluster through httpfs, it gave me error as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -v '&lt;A href="http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=LISTSTATUS" target="_blank"&gt;http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=LISTSTATUS&lt;/A&gt;'&lt;BR /&gt;* About to connect() to 192.168.1.7 port 14000 (#0)&lt;BR /&gt;*&amp;nbsp;&amp;nbsp; Trying 192.168.1.7... connected&lt;BR /&gt;* Connected to 192.168.1.7 (192.168.1.7) port 14000 (#0)&lt;BR /&gt;&amp;gt; GET /webhdfs/v1/user/root/t?op=LISTSTATUS HTTP/1.1&lt;BR /&gt;&amp;gt; User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2&lt;BR /&gt;&amp;gt; Host: 192.168.1.7:14000&lt;BR /&gt;&amp;gt; Accept: */*&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;lt; HTTP/1.1 401 Unauthorized&lt;BR /&gt;&amp;lt; Server: Apache-Coyote/1.1&lt;BR /&gt;&amp;lt; WWW-Authenticate: PseudoAuth&lt;BR /&gt;&amp;lt; Set-Cookie: hadoop.auth=; Path=/; HttpOnly&lt;BR /&gt;&amp;lt; Content-Type: text/html;charset=utf-8&lt;BR /&gt;&amp;lt; Content-Length: 997&lt;BR /&gt;&amp;lt; Date: Tue, 17 Apr 2018 08:37:17 GMT&lt;BR /&gt;&amp;lt;&lt;BR /&gt;* Connection #0 to host 192.168.1.7 left intact&lt;BR /&gt;* Closing connection #0&lt;BR /&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Apache Tomcat/6.0.53 - Error report&amp;lt;/title&amp;gt;&amp;lt;style&amp;gt;&amp;lt;!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--&amp;gt;&amp;lt;/style&amp;gt; &amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;HTTP Status 401 - Authentication required&amp;lt;/h1&amp;gt;&amp;lt;HR size="1" noshade="noshade"&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;type&amp;lt;/b&amp;gt; Status report&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;message&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;Authentication required&amp;lt;/u&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;description&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;This request requires HTTP authentication.&amp;lt;/u&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;HR size="1" noshade="noshade"&amp;gt;&amp;lt;h3&amp;gt;Ap&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 08:57:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/httpfs-HTTP-Status-401-Authentication-required/m-p/66429#M77335</guid>
      <dc:creator>ronnie10</dc:creator>
      <dc:date>2018-04-17T08:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: httpfs - HTTP Status 401 - Authentication required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/httpfs-HTTP-Status-401-Authentication-required/m-p/66445#M77336</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/23901"&gt;@ronnie10&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue that you are getting is not related to kerberos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think&amp;nbsp;you don't have access for the /user/root under the below path, please try to access your own home dir, it may help you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A href="http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=LISTSTATUS" target="_blank" rel="nofollow noopener noreferrer"&gt;http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=LISTSTATUS&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:01:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/httpfs-HTTP-Status-401-Authentication-required/m-p/66445#M77336</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2018-04-17T13:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: httpfs - HTTP Status 401 - Authentication required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/httpfs-HTTP-Status-401-Authentication-required/m-p/66483#M77337</link>
      <description>&lt;P&gt;I put in user.name=root it shows the following, I can check the file and folder, however cannot load the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$curl '&lt;A href="http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=LISTSTATUS&amp;amp;user.name=root" target="_blank"&gt;http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=LISTSTATUS&amp;amp;user.name=root&lt;/A&gt;'&lt;BR /&gt;{"FileStatuses":{"FileStatus":[{"pathSuffix":"","type":"FILE","length":6,"owner":"root","group":"root","permission":"644","accessTime":1524020367539,"modificationTime":1523951936011,"blockSize":134217728,"replication":1}]}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$curl '&lt;A href="http://192.168.1.7:14000/webhdfs/v1/user/root?op=LISTSTATUS&amp;amp;user.name=root" target="_blank"&gt;http://192.168.1.7:14000/webhdfs/v1/user/root?op=LISTSTATUS&amp;amp;user.name=root&lt;/A&gt;'&lt;BR /&gt;{"FileStatuses":{"FileStatus":[{"pathSuffix":"t","type":"FILE","length":6,"owner":"root","group":"root","permission":"644","accessTime":1524020367539,"modificationTime":1523951936011,"blockSize":134217728,"replication":1},{"pathSuffix":"test.txt","type":"FILE","length":17,"owner":"root","group":"root","permission":"644","accessTime":1524020673090,"modificationTime":1524020673700,"blockSize":134217728,"replication":1}]}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$curl "&lt;A href="http://192.168.1.7:14000/webhdfs/v1/user/root/test.txt&amp;amp;user.name=root" target="_blank"&gt;http://192.168.1.7:14000/webhdfs/v1/user/root/test.txt&amp;amp;user.name=root&lt;/A&gt;"&lt;BR /&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Apache Tomcat/6.0.53 - Error report&amp;lt;/title&amp;gt;&amp;lt;style&amp;gt;&amp;lt;!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--&amp;gt;&amp;lt;/style&amp;gt; &amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;HTTP Status 401 - Authentication required&amp;lt;/h1&amp;gt;&amp;lt;HR size="1" noshade="noshade"&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;type&amp;lt;/b&amp;gt; Status report&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;message&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;Authentication required&amp;lt;/u&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;description&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;This request requires HTTP authentication.&amp;lt;/u&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;HR size="1" noshade="noshade"&amp;gt;&amp;lt;h3&amp;gt;Apache Tomcat/6.0.53&amp;lt;/h3&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;[root@localhost ~]#&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 03:56:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/httpfs-HTTP-Status-401-Authentication-required/m-p/66483#M77337</guid>
      <dc:creator>ronnie10</dc:creator>
      <dc:date>2018-04-18T03:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: httpfs - HTTP Status 401 - Authentication required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/httpfs-HTTP-Status-401-Authentication-required/m-p/66498#M77340</link>
      <description>&lt;P&gt;Managed to check the home directory, view the content of the file by using the following command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl "&lt;A href="http://192.168.1.7:14000/webhdfs/v1?op=gethomedirectory&amp;amp;user.name=root" target="_blank"&gt;http://192.168.1.7:14000/webhdfs/v1?op=gethomedirectory&amp;amp;user.name=root&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;curl '&lt;A href="http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=LISTSTATUS&amp;amp;user.name=root" target="_blank"&gt;http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=LISTSTATUS&amp;amp;user.name=root&lt;/A&gt;'&lt;BR /&gt;&lt;BR /&gt;curl -i -L "&lt;A href="http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=OPEN&amp;amp;user.name=root" target="_blank"&gt;http://192.168.1.7:14000/webhdfs/v1/user/root/t?op=OPEN&amp;amp;user.name=root&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 08:08:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/httpfs-HTTP-Status-401-Authentication-required/m-p/66498#M77340</guid>
      <dc:creator>ronnie10</dc:creator>
      <dc:date>2018-04-18T08:08:03Z</dc:date>
    </item>
  </channel>
</rss>

