knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r1817227 - in /knox: site/ site/books/knox-0-14-0/ trunk/books/0.14.0/
Date Tue, 05 Dec 2017 20:28:03 GMT
Author: more
Date: Tue Dec  5 20:28:03 2017
New Revision: 1817227

URL: http://svn.apache.org/viewvc?rev=1817227&view=rev
Log:
KNOX-1083 - Update default values for HttpClient connection and socket  timeout

Modified:
    knox/site/books/knox-0-14-0/user-guide.html
    knox/site/index.html
    knox/site/issue-tracking.html
    knox/site/license.html
    knox/site/mail-lists.html
    knox/site/project-info.html
    knox/site/team-list.html
    knox/trunk/books/0.14.0/config.md
    knox/trunk/books/0.14.0/service_hive.md

Modified: knox/site/books/knox-0-14-0/user-guide.html
URL: http://svn.apache.org/viewvc/knox/site/books/knox-0-14-0/user-guide.html?rev=1817227&r1=1817226&r2=1817227&view=diff
==============================================================================
--- knox/site/books/knox-0-14-0/user-guide.html (original)
+++ knox/site/books/knox-0-14-0/user-guide.html Tue Dec  5 20:28:03 2017
@@ -631,13 +631,13 @@ https://{gateway-host}:{gateway-port}/{g
     </tr>
     <tr>
       <td>gateway.httpclient.connectionTimeout</td>
-      <td>The amount of time to wait when attempting a connection. The natural unit
is milliseconds but a &lsquo;s&rsquo; or &lsquo;m&rsquo; suffix may be used
for seconds or minutes respectively. The default timeout is system dependent. </td>
-      <td>System Dependent (-1)</td>
+      <td>The amount of time to wait when attempting a connection. The natural unit
is milliseconds but a &lsquo;s&rsquo; or &lsquo;m&rsquo; suffix may be used
for seconds or minutes respectively. The default timeout is 20 sec. </td>
+      <td>20 sec.</td>
     </tr>
     <tr>
       <td>gateway.httpclient.socketTimeout</td>
-      <td>The amount of time to wait for data on a socket before aborting the connection.
The natural unit is milliseconds but a &lsquo;s&rsquo; or &lsquo;m&rsquo;
suffix may be used for seconds or minutes respectively. The default timeout is system dependent
but is likely to be indefinite. </td>
-      <td>System Dependent (-1)</td>
+      <td>The amount of time to wait for data on a socket before aborting the connection.
The natural unit is milliseconds but a &lsquo;s&rsquo; or &lsquo;m&rsquo;
suffix may be used for seconds or minutes respectively. The default timeout is 20 sec. </td>
+      <td>20 sec.</td>
     </tr>
     <tr>
       <td>gateway.httpserver.requestBuffer</td>
@@ -5881,18 +5881,7 @@ connection.close();
 <pre><code>&lt;service&gt;
     &lt;role&gt;HIVE&lt;/role&gt;
 &lt;/service&gt;
-</code></pre><p>Please note that there is no <code>&lt;url&gt;</code>
tag specified here as the URLs for the Hive servers are obtained from Zookeeper.</p><p>Also
make sure the properties <code>gateway.httpclient.connectionTimeout</code> and
<code>gateway.httpclient.socketTimeout</code> are set to acceptable defaults in
<code>gateway-site.xml</code> config file e.g.</p>
-<pre><code> &lt;property&gt;
-     &lt;name&gt;gateway.httpclient.connectionTimeout&lt;/name&gt;
-     &lt;value&gt;3000&lt;/value&gt;
-     &lt;description&gt;Connection timeout after 30 sec&lt;/description&gt;
- &lt;/property&gt;
- &lt;property&gt;
-     &lt;name&gt;gateway.httpclient.socketTimeout&lt;/name&gt;
-     &lt;value&gt;3000&lt;/value&gt;
-     &lt;description&gt;Socket timeout after 30 sec&lt;/description&gt;
- &lt;/property&gt;
-</code></pre><h3><a id="Yarn">Yarn</a> <a href="#Yarn"><img
src="markbook-section-link.png"/></a></h3><p>Knox provides gateway functionality
for the REST APIs of the ResourceManager. The ResourceManager REST APIs allow the user to
get information about the cluster - status on the cluster, metrics on the cluster, scheduler
information, information about nodes in the cluster, and information about applications on
the cluster. Also as of Hadoop version 2.5.0, the user can submit a new application as well
as kill it (or get state) using the &lsquo;Writable&rsquo; APIs.</p><p>The
docs for this can be found here</p><p><a href="http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html">http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html</a></p><p>To
enable this functionality, a topology file needs to have the following configuration:</p>
+</code></pre><p>Please note that there is no <code>&lt;url&gt;</code>
tag specified here as the URLs for the Hive servers are obtained from Zookeeper.</p><h3><a
id="Yarn">Yarn</a> <a href="#Yarn"><img src="markbook-section-link.png"/></a></h3><p>Knox
provides gateway functionality for the REST APIs of the ResourceManager. The ResourceManager
REST APIs allow the user to get information about the cluster - status on the cluster, metrics
on the cluster, scheduler information, information about nodes in the cluster, and information
about applications on the cluster. Also as of Hadoop version 2.5.0, the user can submit a
new application as well as kill it (or get state) using the &lsquo;Writable&rsquo;
APIs.</p><p>The docs for this can be found here</p><p><a href="http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html">http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html</a></p><p>To
enable this functionality, a 
 topology file needs to have the following configuration:</p>
 <pre><code>&lt;service&gt;
     &lt;role&gt;RESOURCEMANAGER&lt;/role&gt;
     &lt;url&gt;http://&lt;hostname&gt;:&lt;port&gt;/ws&lt;/url&gt;

Modified: knox/site/index.html
URL: http://svn.apache.org/viewvc/knox/site/index.html?rev=1817227&r1=1817226&r2=1817227&view=diff
==============================================================================
--- knox/site/index.html (original)
+++ knox/site/index.html Tue Dec  5 20:28:03 2017
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2017-12-04
+ | Generated by Apache Maven Doxia at 2017-12-05
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20171204" />
+    <meta name="Date-Revision-yyyymmdd" content="20171205" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Knox Gateway &#x2013; REST API and Application Gateway for the Apache
Hadoop Ecosystem</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -58,7 +58,7 @@
               
                 
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2017-12-04</li>

+                  <li id="publishDate" class="pull-right">Last Published: 2017-12-05</li>

             
                             </ul>
       </div>

Modified: knox/site/issue-tracking.html
URL: http://svn.apache.org/viewvc/knox/site/issue-tracking.html?rev=1817227&r1=1817226&r2=1817227&view=diff
==============================================================================
--- knox/site/issue-tracking.html (original)
+++ knox/site/issue-tracking.html Tue Dec  5 20:28:03 2017
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2017-12-04
+ | Generated by Apache Maven Doxia at 2017-12-05
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20171204" />
+    <meta name="Date-Revision-yyyymmdd" content="20171205" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Knox Gateway &#x2013; Issue Tracking</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -58,7 +58,7 @@
               
                 
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2017-12-04</li>

+                  <li id="publishDate" class="pull-right">Last Published: 2017-12-05</li>

             
                             </ul>
       </div>

Modified: knox/site/license.html
URL: http://svn.apache.org/viewvc/knox/site/license.html?rev=1817227&r1=1817226&r2=1817227&view=diff
==============================================================================
--- knox/site/license.html (original)
+++ knox/site/license.html Tue Dec  5 20:28:03 2017
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2017-12-04
+ | Generated by Apache Maven Doxia at 2017-12-05
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20171204" />
+    <meta name="Date-Revision-yyyymmdd" content="20171205" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Knox Gateway &#x2013; Project License</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -58,7 +58,7 @@
               
                 
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2017-12-04</li>

+                  <li id="publishDate" class="pull-right">Last Published: 2017-12-05</li>

             
                             </ul>
       </div>

Modified: knox/site/mail-lists.html
URL: http://svn.apache.org/viewvc/knox/site/mail-lists.html?rev=1817227&r1=1817226&r2=1817227&view=diff
==============================================================================
--- knox/site/mail-lists.html (original)
+++ knox/site/mail-lists.html Tue Dec  5 20:28:03 2017
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2017-12-04
+ | Generated by Apache Maven Doxia at 2017-12-05
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20171204" />
+    <meta name="Date-Revision-yyyymmdd" content="20171205" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Knox Gateway &#x2013; Project Mailing Lists</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -58,7 +58,7 @@
               
                 
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2017-12-04</li>

+                  <li id="publishDate" class="pull-right">Last Published: 2017-12-05</li>

             
                             </ul>
       </div>

Modified: knox/site/project-info.html
URL: http://svn.apache.org/viewvc/knox/site/project-info.html?rev=1817227&r1=1817226&r2=1817227&view=diff
==============================================================================
--- knox/site/project-info.html (original)
+++ knox/site/project-info.html Tue Dec  5 20:28:03 2017
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2017-12-04
+ | Generated by Apache Maven Doxia at 2017-12-05
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20171204" />
+    <meta name="Date-Revision-yyyymmdd" content="20171205" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Knox Gateway &#x2013; Project Information</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -58,7 +58,7 @@
               
                 
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2017-12-04</li>

+                  <li id="publishDate" class="pull-right">Last Published: 2017-12-05</li>

             
                             </ul>
       </div>

Modified: knox/site/team-list.html
URL: http://svn.apache.org/viewvc/knox/site/team-list.html?rev=1817227&r1=1817226&r2=1817227&view=diff
==============================================================================
--- knox/site/team-list.html (original)
+++ knox/site/team-list.html Tue Dec  5 20:28:03 2017
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at 2017-12-04
+ | Generated by Apache Maven Doxia at 2017-12-05
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20171204" />
+    <meta name="Date-Revision-yyyymmdd" content="20171205" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Knox Gateway &#x2013; Team list</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -58,7 +58,7 @@
               
                 
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2017-12-04</li>

+                  <li id="publishDate" class="pull-right">Last Published: 2017-12-05</li>

             
                             </ul>
       </div>

Modified: knox/trunk/books/0.14.0/config.md
URL: http://svn.apache.org/viewvc/knox/trunk/books/0.14.0/config.md?rev=1817227&r1=1817226&r2=1817227&view=diff
==============================================================================
--- knox/trunk/books/0.14.0/config.md (original)
+++ knox/trunk/books/0.14.0/config.md Tue Dec  5 20:28:03 2017
@@ -128,8 +128,8 @@ gateway.keystore.type|Indicates the type
 gateway.jdk.tls.ephemeralDHKeySize|jdk.tls.ephemeralDHKeySize, is defined to customize the
ephemeral DH key sizes. The minimum acceptable DH key size is 1024 bits, except for exportable
cipher suites or legacy mode (jdk.tls.ephemeralDHKeySize=legacy)|2048
 gateway.threadpool.max|The maximum concurrent requests the server will process.  The default
is 254.  Connections beyond this will be queued.|254
 gateway.httpclient.maxConnections|The maximum number of connections that a single httpclient
will maintain to a single host:port.  The default is 32.|32
-gateway.httpclient.connectionTimeout|The amount of time to wait when attempting a connection.
The natural unit is milliseconds but a 's' or 'm' suffix may be used for seconds or minutes
respectively. The default timeout is system dependent. | System Dependent (-1)
-gateway.httpclient.socketTimeout|The amount of time to wait for data on a socket before aborting
the connection. The natural unit is milliseconds but a 's' or 'm' suffix may be used for seconds
or minutes respectively. The default timeout is system dependent but is likely to be indefinite.
| System Dependent (-1)
+gateway.httpclient.connectionTimeout|The amount of time to wait when attempting a connection.
The natural unit is milliseconds but a 's' or 'm' suffix may be used for seconds or minutes
respectively. The default timeout is 20 sec. | 20 sec.
+gateway.httpclient.socketTimeout|The amount of time to wait for data on a socket before aborting
the connection. The natural unit is milliseconds but a 's' or 'm' suffix may be used for seconds
or minutes respectively. The default timeout is 20 sec. | 20 sec.
 gateway.httpserver.requestBuffer|The size of the HTTP server request buffer.  The default
is 16K.|16384
 gateway.httpserver.requestHeaderBuffer|The size of the HTTP server request header buffer.
 The default is 8K.|8192
 gateway.httpserver.responseBuffer|The size of the HTTP server response buffer.  The default
is 32K.|32768

Modified: knox/trunk/books/0.14.0/service_hive.md
URL: http://svn.apache.org/viewvc/knox/trunk/books/0.14.0/service_hive.md?rev=1817227&r1=1817226&r2=1817227&view=diff
==============================================================================
--- knox/trunk/books/0.14.0/service_hive.md (original)
+++ knox/trunk/books/0.14.0/service_hive.md Tue Dec  5 20:28:03 2017
@@ -321,18 +321,3 @@ And for the service configuration itself
     </service>
 
 Please note that there is no `<url>` tag specified here as the URLs for the Hive servers
are obtained from Zookeeper.
-
-Also make sure the properties `gateway.httpclient.connectionTimeout` and `gateway.httpclient.socketTimeout`
are set to acceptable defaults in `gateway-site.xml` config file e.g.
-  
-     <property>
-         <name>gateway.httpclient.connectionTimeout</name>
-         <value>3000</value>
-         <description>Connection timeout after 30 sec</description>
-     </property>
-     <property>
-         <name>gateway.httpclient.socketTimeout</name>
-         <value>3000</value>
-         <description>Socket timeout after 30 sec</description>
-     </property>
-
-



Mime
View raw message