You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mw...@apache.org on 2017/03/24 17:38:25 UTC
accumulo-website git commit: Jekyll build from master:d1afc57
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 <mw...@apache.org>
Authored: Fri Mar 24 13:37:32 2017 -0400
Committer: Mike Walch <mw...@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 \u2018start-all.sh\u2019). The number of scripts were reduced using the following methods:</p>
+(like \u2018start-all.sh\u2019). 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 \u2018accumulo\u2019 script was left alone except for improved usage and the addition of \u2018create-config\u2019 and \u2018build-native\u2019
-commands to replace \u2018bootstrap_config.sh\u2019 and \u2018build_native_library.sh\u2019.</li>
+ <li>The \u2018accumulo\u2019 script was mostly left alone except for improved usage.</li>
<li>The \u2018accumulo-service\u2019 script was created to manage Accumulo processes as services</li>
<li>The \u2018accumulo-cluster\u2019 command was created to manage Accumulo on cluster and replaces \u2018start-all.sh\u2019 and \u2018stop-all.sh\u2019.</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 \u2018accumulo-util\u2019 command combines many utility scripts such as \u2018build_native_library.sh\u2019, \u2018tool.sh\u2019, 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
-\u2018accumulo create-config\u2019 (which replaces \u2018bootstrap_config.sh\u2019) 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 \u2018conf/\u2019
+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 \u2018accumulo create-config\u2019 command does not generate host files (i.e \u2018tservers\u2019, \u2018monitor\u2019, etc) to run processes locally.
-These files are only required by the \u2018accumulo-cluster\u2019 command which has a command to generate them.</p>
+<p>The Accumulo tarball does contain host files (i.e \u2018tservers\u2019, \u2018monitor\u2019, etc) by default as these files are only required by
+the \u2018accumulo-cluster\u2019 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 \u2018start-all.sh\u2019). The number of scripts were reduced using the following methods:</p>
+(like \u2018start-all.sh\u2019). 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 \u2018accumulo\u2019 script was left alone except for improved usage and the addition of \u2018create-config\u2019 and \u2018build-native\u2019
-commands to replace \u2018bootstrap_config.sh\u2019 and \u2018build_native_library.sh\u2019.</li>
+ <li>The \u2018accumulo\u2019 script was mostly left alone except for improved usage.</li>
<li>The \u2018accumulo-service\u2019 script was created to manage Accumulo processes as services</li>
<li>The \u2018accumulo-cluster\u2019 command was created to manage Accumulo on cluster and replaces \u2018start-all.sh\u2019 and \u2018stop-all.sh\u2019.</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 \u2018accumulo-util\u2019 command combines many utility scripts such as \u2018build_native_library.sh\u2019, \u2018tool.sh\u2019, 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
-\u2018accumulo create-config\u2019 (which replaces \u2018bootstrap_config.sh\u2019) 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 \u2018conf/\u2019
+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 \u2018accumulo create-config\u2019 command does not generate host files (i.e \u2018tservers\u2019, \u2018monitor\u2019, etc) to run processes locally.
-These files are only required by the \u2018accumulo-cluster\u2019 command which has a command to generate them.</p>
+<p>The Accumulo tarball does contain host files (i.e \u2018tservers\u2019, \u2018monitor\u2019, etc) by default as these files are only required by
+the \u2018accumulo-cluster\u2019 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>