tasanuma commented on PR #5480:
URL: https://github.com/apache/hadoop/pull/5480#issuecomment-1469797058

   Yes, I can access only the whitelist endpoints.
   
   
   my-jobhistoryserver configs:
   ```xml
   <property name="hadoop.http.authentication.kerberos.endpoint.whitelist" 
value="/isActive,/jmx,/prom"/>
   <property name="hadoop.http.authentication.kerberos.keytab" 
value="/path/to/spnego.keytab"/>
   <property name="hadoop.http.authentication.kerberos.principal" 
value="HTTP/_HOST@MY_REALM"/>
   <property name="hadoop.http.authentication.type" value="kerberos"/>
   <property name="hadoop.http.filter.initializers" 
value="org.apache.hadoop.security.AuthenticationFilterInitializer,org.apache.hadoop.http.lib.StaticUserWebFilter,org.apache.hadoop.security.HttpCrossOriginFilterInitializer"/>
   ```
   
   ```
   $ curl -s http://my-jobhistoryserver:19888/jmx | head -n 3
   {
     "beans" : [ {
       "name" : "Hadoop:service=JobHistoryServer,name=RpcActivityForPort10033",
   
   $ curl -s http://my-jobhistoryserver:19888/conf | head
   <html>
   <head>
   <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
   <title>Error 401 Authentication required</title>
   </head>
   <body><h2>HTTP ERROR 401 Authentication required</h2>
   <table>
   <tr><th>URI:</th><td>/conf</td></tr>
   <tr><th>STATUS:</th><td>401</td></tr>
   <tr><th>MESSAGE:</th><td>Authentication required</td></tr>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to