accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r863067 [7/7] - in /websites/staging/accumulo/trunk/content: ./ 1.5/ 1.5/examples/ 1.5/images/ downloads/
Date Sat, 25 May 2013 02:56:29 GMT
Added: websites/staging/accumulo/trunk/content/1.5/examples/terasort.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/terasort.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/terasort.html Sat May 25 02:56:29 2013
@@ -0,0 +1,143 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo MapReduce Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo MapReduce Example</h1>
+    <p>This example uses map/reduce to generate random input data that will
+be sorted by storing it into accumulo.  It uses data very similar to the
+hadoop terasort benchmark.</p>
+<p>To run this example you run it with arguments describing the amount of data:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">bin</span><span class="sr">/tool.sh lib/</span><span class="n">accumulo</span><span class="o">-</span><span class="n">examples</span><span class="o">-</span><span class="n">simple</span><span class="o">.</span><span class="n">jar</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">examples</span><span class="o">.</span><span class="n">simple</span><span class="o">.</span><span class="n">mapreduce</span><span class="o">.</span><span class="n">TeraSortIngest</span> <span class="o">\</span>
+<span class="o">-</span><span class="n">i</span> <span class="n">instance</span> <span class="o">-</span><span class="n">z</span> <span class="n">zookeepers</span> <span class="o">-</span><span class="n">u</span> <span class="n">user</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span> <span class="o">\</span>
+<span class="o">--</span><span class="n">count</span> <span class="mi">10</span> <span class="o">\</span>
+<span class="o">--</span><span class="n">minKeySize</span> <span class="mi">10</span> <span class="o">\</span> 
+<span class="o">--</span><span class="n">maxKeySize</span> <span class="mi">10</span> <span class="o">\</span>
+<span class="o">--</span><span class="n">minValueSize</span> <span class="mi">78</span> <span class="o">\</span>
+<span class="o">--</span><span class="n">maxValueSize</span> <span class="mi">78</span> <span class="o">\</span>
+<span class="o">--</span><span class="n">table</span> <span class="nb">sort</span> <span class="o">\</span>
+<span class="o">--</span><span class="n">splits</span> <span class="mi">10</span> <span class="o">\</span>
+</pre></div>
+
+
+<p>After the map reduce job completes, scan the data:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">accumulo</span> <span class="n">shell</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span> <span class="o">-</span><span class="n">p</span> <span class="n">password</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">scan</span> <span class="o">-</span><span class="n">t</span> <span class="nb">sort</span> 
+<span class="o">+</span><span class="n">l</span><span class="o">-</span><span class="nv">$$OE</span><span class="o">/</span><span class="n">ZH</span> <span class="n">c:</span>         <span class="mi">4</span> <span class="o">[]</span>    <span class="n">GGGGGGGGGGWWWWWWWWWWMMMMMMMMMMCCCCCCCCCCSSSSSSSSSSIIIIIIIIIIYYYYYYYYYYOOOOOOOO</span>
+<span class="p">,</span><span class="n">C</span><span class="p">)</span><span class="n">wDw</span><span class="sr">//</span><span class="n">u</span><span class="o">=</span> <span class="n">c:</span>        <span class="mi">10</span> <span class="o">[]</span>    <span class="n">CCCCCCCCCCSSSSSSSSSSIIIIIIIIIIYYYYYYYYYYOOOOOOOOOOEEEEEEEEEEUUUUUUUUUUKKKKKKKK</span>
+<span class="mi">75</span><span class="nv">@</span><span class="err">~?&#39;</span><span class="nv">WdUF</span> <span class="n">c:</span>         <span class="mi">1</span> <span class="o">[]</span>    <span class="n">IIIIIIIIIIYYYYYYYYYYOOOOOOOOOOEEEEEEEEEEUUUUUUUUUUKKKKKKKKKKAAAAAAAAAAQQQQQQQQ</span>
+<span class="p">;</span><span class="n">L</span><span class="o">+!</span><span class="mi">2</span><span class="n">rT</span><span class="o">~</span><span class="n">hd</span> <span class="n">c:</span>         <span class="mi">8</span> <span class="o">[]</span>    <span class="n">MMMMMMMMMMCCCCCCCCCCSSSSSSSSSSIIIIIIIIIIYYYYYYYYYYOOOOOOOOOOEEEEEEEEEEUUUUUUUU</span>
+<span class="n">LsS8</span><span class="p">)</span><span class="o">|.</span><span class="n">ZLD</span> <span class="n">c:</span>         <span class="mi">5</span> <span class="o">[]</span>    <span class="n">OOOOOOOOOOEEEEEEEEEEUUUUUUUUUUKKKKKKKKKKAAAAAAAAAAQQQQQQQQQQGGGGGGGGGGWWWWWWWW</span>
+<span class="n">M</span><span class="o">^*</span><span class="n">dDE</span><span class="p">;</span><span class="mi">6</span><span class="o">^&lt;</span> <span class="n">c:</span>         <span class="mi">9</span> <span class="o">[]</span>    <span class="n">UUUUUUUUUUKKKKKKKKKKAAAAAAAAAAQQQQQQQQQQGGGGGGGGGGWWWWWWWWWWMMMMMMMMMMCCCCCCCC</span>
+<span class="o">^</span><span class="n">Eu</span><span class="p">)</span><span class="o">&lt;</span><span class="n">n</span><span class="c1">#kdP c:         3 []    YYYYYYYYYYOOOOOOOOOOEEEEEEEEEEUUUUUUUUUUKKKKKKKKKKAAAAAAAAAAQQQQQQQQQQGGGGGGGG</span>
+<span class="n">le5awB</span><span class="o">.</span><span class="nv">$sm</span> <span class="n">c:</span>         <span class="mi">6</span> <span class="o">[]</span>    <span class="n">WWWWWWWWWWMMMMMMMMMMCCCCCCCCCCSSSSSSSSSSIIIIIIIIIIYYYYYYYYYYOOOOOOOOOOEEEEEEEE</span>
+<span class="sx">q__</span><span class="p">[</span><span class="n">fwhKFg</span> <span class="n">c:</span>         <span class="mi">7</span> <span class="o">[]</span>    <span class="n">EEEEEEEEEEUUUUUUUUUUKKKKKKKKKKAAAAAAAAAAQQQQQQQQQQGGGGGGGGGGWWWWWWWWWWMMMMMMMM</span>
+<span class="n">w</span><span class="p">[</span><span class="n">o</span><span class="o">||</span><span class="p">:</span><span class="n">N</span><span class="o">&amp;</span><span class="n">H</span><span class="p">,</span> <span class="n">c:</span>         <span class="mi">2</span> <span class="o">[]</span>    <span class="n">QQQQQQQQQQGGGGGGGGGGWWWWWWWWWWMMMMMMMMMMCCCCCCCCCCSSSSSSSSSSIIIIIIIIIIYYYYYYYY</span>
+</pre></div>
+
+
+<p>Of course, a real benchmark would ingest millions of entries.</p>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/examples/visibility.html
==============================================================================
--- websites/staging/accumulo/trunk/content/1.5/examples/visibility.html (added)
+++ websites/staging/accumulo/trunk/content/1.5/examples/visibility.html Sat May 25 02:56:29 2013
@@ -0,0 +1,226 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/css/accumulo.css" rel="stylesheet" type="text/css">
+  <title>Apache Accumulo Visibility, Authorizations, and Permissions Example</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  
+  <script type="text/javascript">
+
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-21103458-6']);
+    _gaq.push(['_setDomainName', 'apache.org']);
+    _gaq.push(['_setAllowLinker', true]);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+
+  </script>
+
+
+</head>
+
+<body>
+  <div id="banner">&nbsp;
+  </div>
+
+  <div id="navigation">
+  <h1 id="project">Project</h1>
+<ul>
+<li><a href="/">Home</a></li>
+<li><a href="/downloads">Downloads</a></li>
+<li><a href="/notable_features.html">Features</a></li>
+<li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/get_involved.html">Get Involved</a></li>
+<li><a href="/mailing_list.html">Mailing Lists</a></li>
+<li><a href="/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/source.html">Source &amp; Guide</a></li>
+<li><a href="https://issues.apache.org/jira/browse/accumulo">Issues</a></li>
+<li><a href="https://builds.apache.org/view/A-D/view/Accumulo/">Builds</a></li>
+</ul>
+<h1 id="documentation">Documentation</h1>
+<ul>
+<li><a href="/1.4/user_manual">Manual 1.4</a></li>
+<li><a href="/1.4/apidocs">Javadoc 1.4</a></li>
+<li><a href="/1.4/examples">Examples 1.4</a></li>
+<li><a href="/screenshots.html">Screenshots</a></li>
+<li><a href="/papers.html">Papers &amp; Other Links</a></li>
+<li><a href="/glossary.html">Glossary</a></li>
+</ul>
+<h1 id="asf-links">ASF links</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+</ul>
+  </div>
+
+  <div id="bannertext">
+    <img id="logo" alt="Apache Accumulo" src="/images/accumulo-logo.png"/>&trade;
+  </div>
+
+  <div id="content">
+    <h1 class="title">Apache Accumulo Visibility, Authorizations, and Permissions Example</h1>
+    <h2 id="creating-a-new-user">Creating a new user</h2>
+<div class="codehilite"><pre><span class="n">root</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createuser</span> <span class="n">username</span>
+<span class="n">Enter</span> <span class="k">new</span> <span class="n">password</span> <span class="k">for</span> <span class="s">&#39;username&#39;</span><span class="p">:</span> <span class="o">********</span>
+<span class="n">Please</span> <span class="n">confirm</span> <span class="k">new</span> <span class="n">password</span> <span class="k">for</span> <span class="s">&#39;username&#39;</span><span class="p">:</span> <span class="o">********</span>
+<span class="n">root</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">user</span> <span class="n">username</span>
+<span class="n">Enter</span> <span class="n">password</span> <span class="k">for</span> <span class="n">user</span> <span class="n">username:</span> <span class="o">********</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">vistest</span>
+<span class="mo">06</span> <span class="mi">10</span><span class="p">:</span><span class="mi">48</span><span class="p">:</span><span class="mi">47</span><span class="p">,</span><span class="mi">931</span> <span class="p">[</span><span class="n">shell</span><span class="o">.</span><span class="n">Shell</span><span class="p">]</span> <span class="n">ERROR:</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">client</span><span class="o">.</span><span class="n">AccumuloSecurityException:</span> <span class="n">Error</span> <span class="n">PERMISSION_DENIED</span> <span class="o">-</span> <span class="n">User</span> <span class="n">does</span> <span class="ow">not</span> <span class="n">have</span> <span class="n">permission</span> <span class="n">to</span> <span class="n">perform</span> <span class="n"
 >this</span> <span class="n">action</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">userpermissions</span>
+<span class="n">System</span> <span class="n">permissions:</span>
+
+<span class="n">Table</span> <span class="n">permissions</span> <span class="p">(</span><span class="o">!</span><span class="n">METADATA</span><span class="p">):</span> <span class="n">Table</span><span class="o">.</span><span class="n">READ</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<p>A user does not by default have permission to create a table.</p>
+<h2 id="granting-permissions-to-a-user">Granting permissions to a user</h2>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">user</span> <span class="n">root</span>
+<span class="n">Enter</span> <span class="n">password</span> <span class="k">for</span> <span class="n">user</span> <span class="n">root:</span> <span class="o">********</span>
+<span class="n">root</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">grant</span> <span class="o">-</span><span class="n">s</span> <span class="n">System</span><span class="o">.</span><span class="n">CREATE_TABLE</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span>
+<span class="n">root</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">user</span> <span class="n">username</span> 
+<span class="n">Enter</span> <span class="n">password</span> <span class="k">for</span> <span class="n">user</span> <span class="n">username:</span> <span class="o">********</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">createtable</span> <span class="n">vistest</span>
+<span class="n">username</span><span class="nv">@instance</span><span class="o">&gt;</span> <span class="n">userpermissions</span>
+<span class="n">System</span> <span class="n">permissions:</span> <span class="n">System</span><span class="o">.</span><span class="n">CREATE_TABLE</span>
+
+<span class="n">Table</span> <span class="n">permissions</span> <span class="p">(</span><span class="o">!</span><span class="n">METADATA</span><span class="p">):</span> <span class="n">Table</span><span class="o">.</span><span class="n">READ</span>
+<span class="n">Table</span> <span class="n">permissions</span> <span class="p">(</span><span class="n">vistest</span><span class="p">):</span> <span class="n">Table</span><span class="o">.</span><span class="n">READ</span><span class="p">,</span> <span class="n">Table</span><span class="o">.</span><span class="n">WRITE</span><span class="p">,</span> <span class="n">Table</span><span class="o">.</span><span class="n">BULK_IMPORT</span><span class="p">,</span> <span class="n">Table</span><span class="o">.</span><span class="n">ALTER_TABLE</span><span class="p">,</span> <span class="n">Table</span><span class="o">.</span><span class="n">GRANT</span><span class="p">,</span> <span class="n">Table</span><span class="o">.</span><span class="n">DROP_TABLE</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<h2 id="inserting-data-with-visibilities">Inserting data with visibilities</h2>
+<p>Visibilities are boolean AND (&amp;) and OR (|) combinations of authorization
+tokens.  Authorization tokens are arbitrary strings taken from a restricted 
+ASCII character set.  Parentheses are required to specify order of operations 
+in visibilities.</p>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">row</span> <span class="n">f1</span> <span class="n">q1</span> <span class="n">v1</span> <span class="o">-</span><span class="n">l</span> <span class="n">A</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">row</span> <span class="n">f2</span> <span class="n">q2</span> <span class="n">v2</span> <span class="o">-</span><span class="n">l</span> <span class="n">A</span><span class="o">&amp;</span><span class="n">B</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">row</span> <span class="n">f3</span> <span class="n">q3</span> <span class="n">v3</span> <span class="o">-</span><span class="n">l</span> <span class="n">apple</span><span class="o">&amp;</span><span class="n">carrot</span><span class="o">|</span><span class="n">broccoli</span><span class="o">|</span><span class="n">spinach</span>
+<span class="mo">06</span> <span class="mi">11</span><span class="p">:</span><span class="mi">19</span><span class="p">:</span><span class="mo">01</span><span class="p">,</span><span class="mi">432</span> <span class="p">[</span><span class="n">shell</span><span class="o">.</span><span class="n">Shell</span><span class="p">]</span> <span class="n">ERROR:</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">util</span><span class="o">.</span><span class="n">BadArgumentException:</span> <span class="n">cannot</span> <span class="n">mix</span> <span class="o">|</span> <span class="ow">and</span> <span class="o">&amp;</span> <span class="n">near</span> <span class="nb">index</span> <span class="mi">12</span>
+<span class="n">apple</span><span class="o">&amp;</span><span class="n">carrot</span><span class="o">|</span><span class="n">broccoli</span><span class="o">|</span><span class="n">spinach</span>
+            <span class="o">^</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">row</span> <span class="n">f3</span> <span class="n">q3</span> <span class="n">v3</span> <span class="o">-</span><span class="n">l</span> <span class="p">(</span><span class="n">apple</span><span class="o">&amp;</span><span class="n">carrot</span><span class="p">)</span><span class="o">|</span><span class="n">broccoli</span><span class="o">|</span><span class="n">spinach</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<h2 id="scanning-with-authorizations">Scanning with authorizations</h2>
+<p>Authorizations are sets of authorization tokens.  Each Accumulo user has 
+authorizations and each Accumulo scan has authorizations.  Scan authorizations 
+are only allowed to be a subset of the user's authorizations.  By default, a 
+user's authorizations set is empty.</p>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">scan</span> <span class="o">-</span><span class="n">s</span> <span class="n">A</span>
+<span class="mo">06</span> <span class="mi">11</span><span class="p">:</span><span class="mi">43</span><span class="p">:</span><span class="mi">14</span><span class="p">,</span><span class="mi">951</span> <span class="p">[</span><span class="n">shell</span><span class="o">.</span><span class="n">Shell</span><span class="p">]</span> <span class="n">ERROR:</span> <span class="n">java</span><span class="o">.</span><span class="n">lang</span><span class="o">.</span><span class="n">RuntimeException:</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">client</span><span class="o">.</span><span class="n">AccumuloSecurityException:</span> <span class="n">Error</span> <span class="n">BAD_AUTHORIZATIONS</span> <span class="o">-</span> <span class="n">The</span> <span class="n">user</span> <span class="n">doe
 s</span> <span class="ow">not</span> <span class="n">have</span> <span class="n">the</span> <span class="n">specified</span> <span class="n">authorizations</span> <span class="n">assigned</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<h2 id="setting-authorizations-for-a-user">Setting authorizations for a user</h2>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">setauths</span> <span class="o">-</span><span class="n">s</span> <span class="n">A</span>
+<span class="mo">06</span> <span class="mi">11</span><span class="p">:</span><span class="mi">53</span><span class="p">:</span><span class="mi">42</span><span class="p">,</span><span class="mo">056</span> <span class="p">[</span><span class="n">shell</span><span class="o">.</span><span class="n">Shell</span><span class="p">]</span> <span class="n">ERROR:</span> <span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">client</span><span class="o">.</span><span class="n">AccumuloSecurityException:</span> <span class="n">Error</span> <span class="n">PERMISSION_DENIED</span> <span class="o">-</span> <span class="n">User</span> <span class="n">does</span> <span class="ow">not</span> <span class="n">have</span> <span class="n">permission</span> <span class="n">to</span> <span class="n">perform</span> <span class="n"
 >this</span> <span class="n">action</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<p>A user cannot set authorizations unless the user has the System.ALTER_USER permission.
+The root user has this permission.</p>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">user</span> <span class="n">root</span>
+<span class="n">Enter</span> <span class="n">password</span> <span class="k">for</span> <span class="n">user</span> <span class="n">root:</span> <span class="o">********</span>
+<span class="n">root</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">setauths</span> <span class="o">-</span><span class="n">s</span> <span class="n">A</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span>
+<span class="n">root</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">user</span> <span class="n">username</span>
+<span class="n">Enter</span> <span class="n">password</span> <span class="k">for</span> <span class="n">user</span> <span class="n">username:</span> <span class="o">********</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">scan</span> <span class="o">-</span><span class="n">s</span> <span class="n">A</span>
+<span class="n">row</span> <span class="n">f1:q1</span> <span class="p">[</span><span class="n">A</span><span class="p">]</span>    <span class="n">v1</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">row</span> <span class="n">f1:q1</span> <span class="p">[</span><span class="n">A</span><span class="p">]</span>    <span class="n">v1</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<p>The default authorizations for a scan are the user's entire set of authorizations.</p>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">user</span> <span class="n">root</span>
+<span class="n">Enter</span> <span class="n">password</span> <span class="k">for</span> <span class="n">user</span> <span class="n">root:</span> <span class="o">********</span>
+<span class="n">root</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">setauths</span> <span class="o">-</span><span class="n">s</span> <span class="n">A</span><span class="p">,</span><span class="n">B</span><span class="p">,</span><span class="n">broccoli</span> <span class="o">-</span><span class="n">u</span> <span class="n">username</span>
+<span class="n">root</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">user</span> <span class="n">username</span>
+<span class="n">Enter</span> <span class="n">password</span> <span class="k">for</span> <span class="n">user</span> <span class="n">username:</span> <span class="o">********</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">row</span> <span class="n">f1:q1</span> <span class="p">[</span><span class="n">A</span><span class="p">]</span>    <span class="n">v1</span>
+<span class="n">row</span> <span class="n">f2:q2</span> <span class="p">[</span><span class="n">A</span><span class="o">&amp;</span><span class="n">B</span><span class="p">]</span>    <span class="n">v2</span>
+<span class="n">row</span> <span class="n">f3:q3</span> <span class="p">[(</span><span class="n">apple</span><span class="o">&amp;</span><span class="n">carrot</span><span class="p">)</span><span class="o">|</span><span class="n">broccoli</span><span class="o">|</span><span class="n">spinach</span><span class="p">]</span>    <span class="n">v3</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">scan</span> <span class="o">-</span><span class="n">s</span> <span class="n">B</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span>
+</pre></div>
+
+
+<p>If you want, you can limit a user to only be able to insert data which they can read themselves.
+It can be set with the following constraint.</p>
+<div class="codehilite"><pre><span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">user</span> <span class="n">root</span>
+<span class="n">Enter</span> <span class="n">password</span> <span class="k">for</span> <span class="n">user</span> <span class="n">root:</span> <span class="o">******</span>
+<span class="n">root</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">config</span> <span class="o">-</span><span class="n">t</span> <span class="n">vistest</span> <span class="o">-</span><span class="n">s</span> <span class="n">table</span><span class="o">.</span><span class="n">constraint</span><span class="mf">.1</span><span class="o">=</span><span class="n">org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">security</span><span class="o">.</span><span class="n">VisibilityConstraint</span>    
+<span class="n">root</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">user</span> <span class="n">username</span>
+<span class="n">Enter</span> <span class="n">password</span> <span class="k">for</span> <span class="n">user</span> <span class="n">username:</span> <span class="o">********</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">row</span> <span class="n">f4</span> <span class="n">q4</span> <span class="n">v4</span> <span class="o">-</span><span class="n">l</span> <span class="n">spinach</span>                                                                
+    <span class="n">Constraint</span> <span class="n">Failures:</span>
+        <span class="n">ConstraintViolationSummary</span><span class="p">(</span><span class="n">constrainClass:org</span><span class="o">.</span><span class="n">apache</span><span class="o">.</span><span class="n">accumulo</span><span class="o">.</span><span class="n">core</span><span class="o">.</span><span class="n">security</span><span class="o">.</span><span class="n">VisibilityConstraint</span><span class="p">,</span> <span class="n">violationCode:2</span><span class="p">,</span> <span class="n">violationDescription:User</span> <span class="n">does</span> <span class="ow">not</span> <span class="n">have</span> <span class="n">authorization</span> <span class="n">on</span> <span class="n">column</span> <span class="n">visibility</span><span class="p">,</span> <span class="n">numberOfViolatingMutations:1</span><span class="p">)</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">insert</span> <span class="n">row</span> <span class="n">f4</span> <span class="n">q4</span> <span class="n">v4</span> <span class="o">-</span><span class="n">l</span> <span class="n">spinach</span><span class="o">|</span><span class="n">broccoli</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span> <span class="n">scan</span>
+<span class="n">row</span> <span class="n">f1:q1</span> <span class="p">[</span><span class="n">A</span><span class="p">]</span>    <span class="n">v1</span>
+<span class="n">row</span> <span class="n">f2:q2</span> <span class="p">[</span><span class="n">A</span><span class="o">&amp;</span><span class="n">B</span><span class="p">]</span>    <span class="n">v2</span>
+<span class="n">row</span> <span class="n">f3:q3</span> <span class="p">[(</span><span class="n">apple</span><span class="o">&amp;</span><span class="n">carrot</span><span class="p">)</span><span class="o">|</span><span class="n">broccoli</span><span class="o">|</span><span class="n">spinach</span><span class="p">]</span>    <span class="n">v3</span>
+<span class="n">row</span> <span class="n">f4:q4</span> <span class="p">[</span><span class="n">spinach</span><span class="o">|</span><span class="n">broccoli</span><span class="p">]</span>    <span class="n">v4</span>
+<span class="n">username</span><span class="nv">@instance</span> <span class="n">vistest</span><span class="o">&gt;</span>
+</pre></div>
+  </div>
+
+  <div id="footer">
+    <a alt="Apache Software Foundation" href="http://www.apache.org">
+      <img id="asf-logo" alt="Apache Software Foundation" src="/images/feather-small.gif"/ width="100">
+    </a>
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache Accumulo, Accumulo, Apache, the Apache feather logo, and the Apache Accumulo
+        <br />
+        project logo are trademarks of the <a href="http://www.apache.org">Apache Software Foundation</a>.
+      </p>
+    </div> 
+  </div>
+
+</body>
+</html>

Added: websites/staging/accumulo/trunk/content/1.5/images/accumulo-logo.png
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/accumulo/trunk/content/1.5/images/accumulo-logo.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: websites/staging/accumulo/trunk/content/1.5/images/data_distribution.png
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/accumulo/trunk/content/1.5/images/data_distribution.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: websites/staging/accumulo/trunk/content/1.5/images/failure_handling.png
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/accumulo/trunk/content/1.5/images/failure_handling.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Modified: websites/staging/accumulo/trunk/content/downloads/index.html
==============================================================================
--- websites/staging/accumulo/trunk/content/downloads/index.html (original)
+++ websites/staging/accumulo/trunk/content/downloads/index.html Sat May 25 02:56:29 2013
@@ -89,7 +89,7 @@
   <div id="content">
     <h1 class="title">Apache Accumulo Downloads</h1>
     <h2 id="150-latest">1.5.0 (latest)</h2>
-<p>The most recent Apache Accumulo&trade; release is version 1.5.0.  See the <a href="http://svn.apache.org/repos/asf/accumulo/tags/1.4.3/CHANGES" title="1.4.3 Release Notes">Release Notes</a>.<br />
+<p>The most recent Apache Accumulo&trade; release is version 1.5.0.  See the <a href="http://svn.apache.org/repos/asf/accumulo/tags/1.5.0/CHANGES" title="1.5.0 Release Notes">Release Notes</a>.<br />
 Be sure to verify your downloads by these <a href="http://www.apache.org/info/verification.html" title="Verify">procedures</a> using these <a href="http://www.apache.org/dist/accumulo/KEYS" title="KEYS">KEYS</a>.<br />
 For convenience, <a href="http://www.apache.org/dist/accumulo/1.5.0/MD5SUM">MD5</a> and <a href="http://www.apache.org/dist/accumulo/1.5.0/SHA1SUM">SHA1</a> hashes are also available.</p>
 <h4 id="generic-binaries">Generic Binaries</h4>
@@ -113,7 +113,8 @@ For convenience, <a href="http://www.apa
 <ul>
 <li><a href=https://svn.apache.org/repos/asf/accumulo/tags/1.5.0/README onClick="javascript: _gaq.push(['_trackPageview', '/1.5/README']);">README</a></li>
 <li><a href=/1.5/accumulo_user_manual.pdf onClick="javascript: _gaq.push(['_trackPageview', '/1.5/accumulo_user_manual.pdf']);">pdf manual</a></li>
-<li><a href="/1.4/examples">examples</a></li>
+<li><a href=/1.5/accumulo_user_manual.html onClick="javascript: _gaq.push(['_trackPageview', '/1.5/accumulo_user_manual.html']);">html manual</a></li>
+<li><a href="/1.5/examples">examples</a></li>
 </ul>
 <h2 id="143-stable">1.4.3 (stable)</h2>
 <p>The most recent 1.4 release is 1.4.3.  See the <a href="http://svn.apache.org/repos/asf/accumulo/tags/1.4.3/CHANGES" title="1.4.3 Release Notes">Release Notes</a>.<br />



Mime
View raw message