You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by lm...@apache.org on 2017/12/14 19:37:26 UTC

svn commit: r1818202 - in /knox: site/books/knox-0-14-0/user-guide.html trunk/books/0.14.0/service_livy.md

Author: lmccay
Date: Thu Dec 14 19:37:26 2017
New Revision: 1818202

URL: http://svn.apache.org/viewvc?rev=1818202&view=rev
Log:
Fixed typos in Livy docs

Modified:
    knox/site/books/knox-0-14-0/user-guide.html
    knox/trunk/books/0.14.0/service_livy.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=1818202&r1=1818201&r2=1818202&view=diff
==============================================================================
--- knox/site/books/knox-0-14-0/user-guide.html (original)
+++ knox/site/books/knox-0-14-0/user-guide.html Thu Dec 14 19:37:26 2017
@@ -6302,7 +6302,7 @@ DriverManager.getConnection(url, props);
   <role>LIVYSERVER</role>
   <url>http://<livy-server>:8998</url>
 </service>
-</code></pre><p>Livy server will use proxUser to run the Spark session. To avoid that a user can provide here any user (e.g. a more privileged), Knox will need to rewrite the the json body to replace what so ever is the value of proxyUser is with the username of the authenticated user.</p><p>{<br/> &ldquo;driverMemory&rdquo;:&ldquo;2G&rdquo;,  &ldquo;executorCores&rdquo;:4,  &ldquo;executorMemory&rdquo;:&ldquo;8G&rdquo;,  &ldquo;proxyUser&rdquo;:&ldquo;bernhard&rdquo;,  &ldquo;conf&rdquo;:{<br/> &ldquo;spark.master&rdquo;:&ldquo;yarn-cluster&rdquo;,  &ldquo;spark.jars.packages&rdquo;:&ldquo;com.databricks:spark-csv_2.10:1.5.0&rdquo;  }  } </p><p>The above is an example request body to be used to create a Spark session via Live server and illustrates the &ldquo;proxyUser&rdquo; that requires rewrite.</p><h3><a id="Service+Test+API">Service Test API</a> <a href="#Service+Test+API"><img src="markbook-section-link.png"/></a></h3><p>The gateway supports a Service Test API that can be use
 d to test Knox&rsquo;s ability to connect to each of the different Hadoop services via a simeple HTTP GET request. To be able to access this API one must add the following line into the topology for which you wish to run the service test.</p>
+</code></pre><p>Livy server will use proxyUser to run the Spark session. To avoid that a user can provide here any user (e.g. a more privileged), Knox will need to rewrite the the json body to replace what so ever is the value of proxyUser is with the username of the authenticated user.</p><p>{<br/> &ldquo;driverMemory&rdquo;:&ldquo;2G&rdquo;,  &ldquo;executorCores&rdquo;:4,  &ldquo;executorMemory&rdquo;:&ldquo;8G&rdquo;,  &ldquo;proxyUser&rdquo;:&ldquo;bernhard&rdquo;,  &ldquo;conf&rdquo;:{<br/> &ldquo;spark.master&rdquo;:&ldquo;yarn-cluster&rdquo;,  &ldquo;spark.jars.packages&rdquo;:&ldquo;com.databricks:spark-csv_2.10:1.5.0&rdquo;  }  } </p><p>The above is an example request body to be used to create a Spark session via Livy server and illustrates the &ldquo;proxyUser&rdquo; that requires rewrite.</p><h3><a id="Service+Test+API">Service Test API</a> <a href="#Service+Test+API"><img src="markbook-section-link.png"/></a></h3><p>The gateway supports a Service Test API that can be us
 ed to test Knox&rsquo;s ability to connect to each of the different Hadoop services via a simeple HTTP GET request. To be able to access this API one must add the following line into the topology for which you wish to run the service test.</p>
 <pre><code>&lt;service&gt;
   &lt;role&gt;SERVICE-TEST&lt;/role&gt;
 &lt;/service&gt;

Modified: knox/trunk/books/0.14.0/service_livy.md
URL: http://svn.apache.org/viewvc/knox/trunk/books/0.14.0/service_livy.md?rev=1818202&r1=1818201&r2=1818202&view=diff
==============================================================================
--- knox/trunk/books/0.14.0/service_livy.md (original)
+++ knox/trunk/books/0.14.0/service_livy.md Thu Dec 14 19:37:26 2017
@@ -33,7 +33,7 @@ In the topology XML file, add the follow
       <url>http://<livy-server>:8998</url>
     </service>
 
-Livy server will use proxUser to run the Spark session. To avoid that a user can 
+Livy server will use proxyUser to run the Spark session. To avoid that a user can 
 provide here any user (e.g. a more privileged), Knox will need to rewrite the the 
 json body to replace what so ever is the value of proxyUser is with the username of
 the authenticated user.
@@ -49,5 +49,5 @@ the authenticated user.
          }
     } 
 
-The above is an example request body to be used to create a Spark session via Live server and illustrates the "proxyUser" that requires rewrite.
+The above is an example request body to be used to create a Spark session via Livy server and illustrates the "proxyUser" that requires rewrite.