Repository: accumulo-website Updated Branches: refs/heads/asf-site ec52e3908 -> 9ffe2cc74
Jekyll build from master:d1afc57 Updates to Accumulo 2.0 scripts post Project: http://git-wip-us.apache.org/repos/asf/accumulo-website/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo-website/commit/9ffe2cc7 Tree: http://git-wip-us.apache.org/repos/asf/accumulo-website/tree/9ffe2cc7 Diff: http://git-wip-us.apache.org/repos/asf/accumulo-website/diff/9ffe2cc7 Branch: refs/heads/asf-site Commit: 9ffe2cc743ea71fb17fffd31c4346ff39dd0632a Parents: ec52e39 Author: Mike Walch <mwa...@apache.org> Authored: Fri Mar 24 13:37:32 2017 -0400 Committer: Mike Walch <mwa...@apache.org> Committed: Fri Mar 24 13:37:32 2017 -0400 ---------------------------------------------------------------------- blog/2016/11/16/simpler-scripts-and-config.html | 67 ++++++++---------- feed.xml | 71 ++++++++------------ 2 files changed, 56 insertions(+), 82 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo-website/blob/9ffe2cc7/blog/2016/11/16/simpler-scripts-and-config.html ---------------------------------------------------------------------- diff --git a/blog/2016/11/16/simpler-scripts-and-config.html b/blog/2016/11/16/simpler-scripts-and-config.html index 5cb8422..34f1c15 100644 --- a/blog/2016/11/16/simpler-scripts-and-config.html +++ b/blog/2016/11/16/simpler-scripts-and-config.html @@ -168,36 +168,23 @@ bootstrap_hdfs.sh config.sh start-daemon.sh s <p>The number of scripts made it difficult to know which scripts to use. If you added the <code class="highlighter-rouge">bin/</code> directory to your <code class="highlighter-rouge">PATH</code>, it could add unecessary commands to your PATH or cause commands to be overriden due generic names -(like âstart-all.shâ). The number of scripts were reduced using the following methods:</p> +(like âstart-all.shâ). The number of scripts were reduced by removing scripts that are no longer used and combining +scripts with similiar functionality.</p> -<ul> - <li>Scripts that are only called by other scripts were moved to a new <code class="highlighter-rouge">libexec/</code> directory in the Accumulo binary tarball</li> - <li>Scripts with similiar functionality were combined</li> - <li>Extra/optional scripts were move to a new <code class="highlighter-rouge">contrib/</code> directory in the binary tarball</li> -</ul> - -<p>Starting with 2.0.0, Accumulo will only have 3 scripts in its <code class="highlighter-rouge">bin/</code> directory:</p> +<p>Starting with 2.0.0, Accumulo will only have 4 scripts in its <code class="highlighter-rouge">bin/</code> directory:</p> <div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ls accumulo-2.0.0/bin/ -accumulo accumulo-cluster accumulo-service +accumulo accumulo-cluster accumulo-service accumulo-util </code></pre> </div> <p>Below are some notes on this change:</p> <ul> - <li>The âaccumuloâ script was left alone except for improved usage and the addition of âcreate-configâ and âbuild-nativeâ -commands to replace âbootstrap_config.shâ and âbuild_native_library.shâ.</li> + <li>The âaccumuloâ script was mostly left alone except for improved usage.</li> <li>The âaccumulo-serviceâ script was created to manage Accumulo processes as services</li> <li>The âaccumulo-clusterâ command was created to manage Accumulo on cluster and replaces âstart-all.shâ and âstop-all.shâ.</li> - <li> - <p>All optional scripts in <code class="highlighter-rouge">bin/</code> were moved to <code class="highlighter-rouge">contrib/</code>:</p> - - <div class="highlighter-rouge"><pre class="highlight"><code>$ ls accumulo-2.0.0/contrib/ -bootstrap-hdfs.sh check-tservers gen-monitor-cert.sh tool.sh -</code></pre> - </div> - </li> + <li>The âaccumulo-utilâ command combines many utility scripts such as âbuild_native_library.shâ, âtool.shâ, etc into one script.</li> </ul> <h3 id="less-configuration">Less configuration</h3> @@ -213,28 +200,22 @@ accumulo-site.xml gc log4j.properties moni </code></pre> </div> -<p>While all of these files have a purpose, many are only used in rare situations. Therefore, the -âaccumulo create-configâ (which replaces âbootstrap_config.shâ) now only generates a minimum -set of configuration files needed to run Accumulo.</p> +<p>While all of these files have a purpose, many are only used in rare situations. For Accumulo 2.0, the âconf/â +directory now only contains a minimum set of configuration files needed to run Accumulo.</p> -<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span><span class="nb">cd </span>accumulo-2.0.0 -<span class="gp">$ </span>./bin/accumulo create-config -<span class="gp">$ </span>ls conf/ -accumulo-env.sh accumulo-site.xml client.conf examples +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ls accumulo-2.0.0/conf/ +accumulo-env.sh accumulo-site.xml client.conf log4j-monitor.properties log4j.properties log4j-service.properties templates </code></pre> </div> -<p>The âaccumulo create-configâ command does not generate host files (i.e âtserversâ, âmonitorâ, etc) to run processes locally. -These files are only required by the âaccumulo-clusterâ command which has a command to generate them.</p> +<p>The Accumulo tarball does contain host files (i.e âtserversâ, âmonitorâ, etc) by default as these files are only required by +the âaccumulo-clusterâ command. However, the script has a command to generate them.</p> -<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span><span class="nb">cd </span>accumulo-2.0.0/ -<span class="gp">$ </span>./bin/accumulo-cluster create-config -<span class="gp">$ </span>ls conf/ -accumulo-env.sh accumulo-site.xml client.conf examples gc masters monitor tracers tservers +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>./bin/accumulo-cluster create-config </code></pre> </div> -<p>Any less common configuration files that were not generated above can still be found in <code class="highlighter-rouge">conf/examples</code>.</p> +<p>Any less common configuration files can still be found in <code class="highlighter-rouge">conf/templates</code>.</p> <h3 id="better-usage">Better usage</h3> @@ -252,11 +233,11 @@ created in <code class="highlighter-rouge">conf/</code> by the <code class="high <div class="highlighter-rouge"><pre class="highlight"><code>$ ./accumulo-2.0.0/bin/accumulo help -Usage: accumulo <command> (<argument> ...) +Usage: accumulo <command> [-h] (<argument> ...) + + -h Prints usage for specified command Core Commands: - create-config Creates Accumulo configuration - build-native Builds Accumulo native libraries init Initializes Accumulo shell Runs Accumulo shell classpath Prints Accumulo classpath @@ -264,7 +245,6 @@ Core Commands: admin Executes administrative commands info Prints Accumulo cluster info help Prints usage - jar <jar> [<main class>] args Runs Java <main class> in <jar> using Accumulo classpath <main class> args Runs Java <main class> located on Accumulo classpath Process Commands: @@ -308,12 +288,19 @@ $ ./accumulo-2.0.0/bin/accumulo-cluster Usage: accumulo-cluster <command> (<argument> ...) Commands: - create-config Creates cluster config - start Starts Accumulo cluster - stop Stops Accumulo cluster + create-config Creates cluster config + start Starts Accumulo cluster + stop Stops Accumulo cluster + start-non-tservers Starts all services except tservers + start-tservers Starts all tservers on cluster + stop-tservers Stops all tservers on cluster + start-here Starts all services on this node + stop-here Stops all services on this node </code></pre> </div> +<p><em>This post was updated on March 24, 2017 to reflect changes to Accumulo 2.0</em></p> + <p><strong>View all posts in the <a href="/news">news archive</a></strong></p> http://git-wip-us.apache.org/repos/asf/accumulo-website/blob/9ffe2cc7/feed.xml ---------------------------------------------------------------------- diff --git a/feed.xml b/feed.xml index df32a1a..7ddacb9 100644 --- a/feed.xml +++ b/feed.xml @@ -6,8 +6,8 @@ </description> <link>https://accumulo.apache.org/</link> <atom:link href="https://accumulo.apache.org/feed.xml" rel="self" type="application/rss+xml"/> - <pubDate>Tue, 21 Mar 2017 14:15:52 -0400</pubDate> - <lastBuildDate>Tue, 21 Mar 2017 14:15:52 -0400</lastBuildDate> + <pubDate>Fri, 24 Mar 2017 13:37:16 -0400</pubDate> + <lastBuildDate>Fri, 24 Mar 2017 13:37:16 -0400</lastBuildDate> <generator>Jekyll v3.3.1</generator> <item> @@ -890,36 +890,23 @@ bootstrap_hdfs.sh config.sh start-daemon.sh s <p>The number of scripts made it difficult to know which scripts to use. If you added the <code class="highlighter-rouge">bin/</code> directory to your <code class="highlighter-rouge">PATH</code>, it could add unecessary commands to your PATH or cause commands to be overriden due generic names -(like âstart-all.shâ). The number of scripts were reduced using the following methods:</p> +(like âstart-all.shâ). The number of scripts were reduced by removing scripts that are no longer used and combining +scripts with similiar functionality.</p> -<ul> - <li>Scripts that are only called by other scripts were moved to a new <code class="highlighter-rouge">libexec/</code> directory in the Accumulo binary tarball</li> - <li>Scripts with similiar functionality were combined</li> - <li>Extra/optional scripts were move to a new <code class="highlighter-rouge">contrib/</code> directory in the binary tarball</li> -</ul> - -<p>Starting with 2.0.0, Accumulo will only have 3 scripts in its <code class="highlighter-rouge">bin/</code> directory:</p> +<p>Starting with 2.0.0, Accumulo will only have 4 scripts in its <code class="highlighter-rouge">bin/</code> directory:</p> <div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ls accumulo-2.0.0/bin/ -accumulo accumulo-cluster accumulo-service +accumulo accumulo-cluster accumulo-service accumulo-util </code></pre> </div> <p>Below are some notes on this change:</p> <ul> - <li>The âaccumuloâ script was left alone except for improved usage and the addition of âcreate-configâ and âbuild-nativeâ -commands to replace âbootstrap_config.shâ and âbuild_native_library.shâ.</li> + <li>The âaccumuloâ script was mostly left alone except for improved usage.</li> <li>The âaccumulo-serviceâ script was created to manage Accumulo processes as services</li> <li>The âaccumulo-clusterâ command was created to manage Accumulo on cluster and replaces âstart-all.shâ and âstop-all.shâ.</li> - <li> - <p>All optional scripts in <code class="highlighter-rouge">bin/</code> were moved to <code class="highlighter-rouge">contrib/</code>:</p> - - <div class="highlighter-rouge"><pre class="highlight"><code>$ ls accumulo-2.0.0/contrib/ -bootstrap-hdfs.sh check-tservers gen-monitor-cert.sh tool.sh -</code></pre> - </div> - </li> + <li>The âaccumulo-utilâ command combines many utility scripts such as âbuild_native_library.shâ, âtool.shâ, etc into one script.</li> </ul> <h3 id="less-configuration">Less configuration</h3> @@ -935,28 +922,22 @@ accumulo-site.xml gc log4j.properties moni </code></pre> </div> -<p>While all of these files have a purpose, many are only used in rare situations. Therefore, the -âaccumulo create-configâ (which replaces âbootstrap_config.shâ) now only generates a minimum -set of configuration files needed to run Accumulo.</p> +<p>While all of these files have a purpose, many are only used in rare situations. For Accumulo 2.0, the âconf/â +directory now only contains a minimum set of configuration files needed to run Accumulo.</p> -<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span><span class="nb">cd </span>accumulo-2.0.0 -<span class="gp">$ </span>./bin/accumulo create-config -<span class="gp">$ </span>ls conf/ -accumulo-env.sh accumulo-site.xml client.conf examples +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>ls accumulo-2.0.0/conf/ +accumulo-env.sh accumulo-site.xml client.conf log4j-monitor.properties log4j.properties log4j-service.properties templates </code></pre> </div> -<p>The âaccumulo create-configâ command does not generate host files (i.e âtserversâ, âmonitorâ, etc) to run processes locally. -These files are only required by the âaccumulo-clusterâ command which has a command to generate them.</p> +<p>The Accumulo tarball does contain host files (i.e âtserversâ, âmonitorâ, etc) by default as these files are only required by +the âaccumulo-clusterâ command. However, the script has a command to generate them.</p> -<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span><span class="nb">cd </span>accumulo-2.0.0/ -<span class="gp">$ </span>./bin/accumulo-cluster create-config -<span class="gp">$ </span>ls conf/ -accumulo-env.sh accumulo-site.xml client.conf examples gc masters monitor tracers tservers +<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>./bin/accumulo-cluster create-config </code></pre> </div> -<p>Any less common configuration files that were not generated above can still be found in <code class="highlighter-rouge">conf/examples</code>.</p> +<p>Any less common configuration files can still be found in <code class="highlighter-rouge">conf/templates</code>.</p> <h3 id="better-usage">Better usage</h3> @@ -974,11 +955,11 @@ created in <code class="highlighter-rouge">conf/</code> by <div class="highlighter-rouge"><pre class="highlight"><code>$ ./accumulo-2.0.0/bin/accumulo help -Usage: accumulo &lt;command&gt; (&lt;argument&gt; ...) +Usage: accumulo &lt;command&gt; [-h] (&lt;argument&gt; ...) + + -h Prints usage for specified command Core Commands: - create-config Creates Accumulo configuration - build-native Builds Accumulo native libraries init Initializes Accumulo shell Runs Accumulo shell classpath Prints Accumulo classpath @@ -986,7 +967,6 @@ Core Commands: admin Executes administrative commands info Prints Accumulo cluster info help Prints usage - jar &lt;jar&gt; [&lt;main class&gt;] args Runs Java &lt;main class&gt; in &lt;jar&gt; using Accumulo classpath &lt;main class&gt; args Runs Java &lt;main class&gt; located on Accumulo classpath Process Commands: @@ -1030,12 +1010,19 @@ $ ./accumulo-2.0.0/bin/accumulo-cluster Usage: accumulo-cluster &lt;command&gt; (&lt;argument&gt; ...) Commands: - create-config Creates cluster config - start Starts Accumulo cluster - stop Stops Accumulo cluster + create-config Creates cluster config + start Starts Accumulo cluster + stop Stops Accumulo cluster + start-non-tservers Starts all services except tservers + start-tservers Starts all tservers on cluster + stop-tservers Stops all tservers on cluster + start-here Starts all services on this node + stop-here Stops all services on this node </code></pre> </div> +<p><em>This post was updated on March 24, 2017 to reflect changes to Accumulo 2.0</em></p> + </description> <pubDate>Wed, 16 Nov 2016 00:00:00 -0500</pubDate> <link>https://accumulo.apache.org/blog/2016/11/16/simpler-scripts-and-config.html</link>