accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [1/3] git commit: ACCUMULO-1783 Initial layout for a self-contained site.
Date Sun, 10 Nov 2013 05:19:14 GMT
Updated Branches:
  refs/heads/ACCUMULO-1783 4160c1615 -> 2123d940e


ACCUMULO-1783 Initial layout for a self-contained site.


Project: http://git-wip-us.apache.org/repos/asf/accumulo-pig/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo-pig/commit/99315492
Tree: http://git-wip-us.apache.org/repos/asf/accumulo-pig/tree/99315492
Diff: http://git-wip-us.apache.org/repos/asf/accumulo-pig/diff/99315492

Branch: refs/heads/ACCUMULO-1783
Commit: 99315492907dee16b77a05c5958f18fa4e0a0292
Parents: 4160c16
Author: Josh Elser <elserj@apache.org>
Authored: Sat Nov 9 22:44:18 2013 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Sat Nov 9 22:44:18 2013 -0500

----------------------------------------------------------------------
 .gitignore                 |   1 +
 site/_config.yml           |  10 ++++
 site/_layouts/default.html |  47 +++++++++++++++
 site/css/base.css          |  66 +++++++++++++++++++++
 site/css/reset.css         |  48 +++++++++++++++
 site/index.html            | 125 ++++++++++++++++++++++++++++++++++++++++
 6 files changed, 297 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo-pig/blob/99315492/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index f0e4507..8d0bf0b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 .project
 .settings
 /target
+site/_site

http://git-wip-us.apache.org/repos/asf/accumulo-pig/blob/99315492/site/_config.yml
----------------------------------------------------------------------
diff --git a/site/_config.yml b/site/_config.yml
new file mode 100644
index 0000000..ed98c6b
--- /dev/null
+++ b/site/_config.yml
@@ -0,0 +1,10 @@
+name: "Accumulo-Pig"
+description: "Using Apache Accumulo as a storage engine for Apache Pig"
+
+#url: http://people.apache.org/~elserj/accumulo-pig/
+url: http://localhost:4000
+
+pygments: true
+auto: true
+baseurl: /
+permalinks: pretty

http://git-wip-us.apache.org/repos/asf/accumulo-pig/blob/99315492/site/_layouts/default.html
----------------------------------------------------------------------
diff --git a/site/_layouts/default.html b/site/_layouts/default.html
new file mode 100644
index 0000000..c2bbfe1
--- /dev/null
+++ b/site/_layouts/default.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XTHML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+    <head>
+        <title>{{ page.title }}</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
+        <!--link href="/css/reset.css" rel="stylesheet" type="text/css" /-->
+        <link href="/css/base.css" rel="stylesheet" type="text/css" />
+        <!--link href="/css/color.css" rel="stylesheet" type="text/css" /-->
+
+        <!--script type="text/javascript">
+            var _gaq = _gaq || [];
+            _gaq.push(['_setAccount', 'GA-Account']);
+            _gaq.push(['_setDomainName', 'GA-domain']);
+            _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="header">
+            <div id="title">
+                <h1><a href="/">Accumulo Pig</a></h1>
+            </div>
+        </div-->
+        <div id="content">
+            {{ content }}
+        </div>
+
+            <!--div id="sidebar">
+                <div id="links" class="sidebar_content">
+                </div>
+            </div>
+
+
+            <div id="footer">
+            </div>
+        </div-->
+
+    </body>
+</html>

http://git-wip-us.apache.org/repos/asf/accumulo-pig/blob/99315492/site/css/base.css
----------------------------------------------------------------------
diff --git a/site/css/base.css b/site/css/base.css
new file mode 100644
index 0000000..4307b06
--- /dev/null
+++ b/site/css/base.css
@@ -0,0 +1,66 @@
+body {
+    padding: 0;
+    margin: 0;
+
+    background-color: #D0D0D0;
+}
+
+div#content {
+    background-color: white;
+
+    width: 65%;
+    padding-top: 15px;
+    padding-left: 75px;
+    padding-right: 75px;
+
+    outline: 0;
+
+    margin-left: auto;
+    margin-right: auto;
+
+    border: 2px solid;
+    border-bottom-left-radius: 10px;
+    border-bottom-right-radius: 10px;
+    border-top-style: none;
+}
+
+pre.codepre { 
+    overflow: auto;
+    padding-left: 20px;
+    padding-top: 15px;
+    background-color: #909090;
+    
+    border: 1px solid black;
+    font-family: Bitstream Vera Sans Mono,monospace;
+    font-size: 15px;
+
+    color: #E0E0E0;
+}
+
+pre > code {
+    word-wrap: normal;
+    white-space: pre;
+}
+
+span.constants { 
+    color: #DF9090;
+}
+
+span.variable {
+    color: #089C08;
+    color: #5CDB5C;
+}
+
+span.comment {
+    color: #2288DD;
+    color: #1D78C4;
+    color: #137BD1;
+}
+
+span.keyword {
+    color: #FFC085;
+}
+
+span.type {
+    color: #8A5C2E;
+}

http://git-wip-us.apache.org/repos/asf/accumulo-pig/blob/99315492/site/css/reset.css
----------------------------------------------------------------------
diff --git a/site/css/reset.css b/site/css/reset.css
new file mode 100644
index 0000000..3b89000
--- /dev/null
+++ b/site/css/reset.css
@@ -0,0 +1,48 @@
+/* CSS Reset */
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td {
+	margin: 0;
+	padding: 0;
+	border: 0;
+	outline: 0;
+	font-size: 100%;
+	vertical-align: baseline;
+	background: transparent;
+}
+input::-moz-focus-inner {
+    border: 0;
+}
+
+ol, ul {
+	list-style: none;
+}
+blockquote, q {
+	quotes: none;
+}
+blockquote:before, blockquote:after, q:before, q:after {
+	content: '';
+	content: none;
+}
+
+:focus {
+	outline: 0;
+}
+
+ins, a {
+	text-decoration: none;
+}
+del {
+	text-decoration: line-through;
+}
+
+table {
+	border-collapse: collapse;
+	border-spacing: 0;
+}

http://git-wip-us.apache.org/repos/asf/accumulo-pig/blob/99315492/site/index.html
----------------------------------------------------------------------
diff --git a/site/index.html b/site/index.html
new file mode 100644
index 0000000..f842db1
--- /dev/null
+++ b/site/index.html
@@ -0,0 +1,125 @@
+---
+layout: default
+title: Accumulo Pig
+---
+<h1>Omg accumuload and pigs?!?</h1>
+<div id="introduction">
+    <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ut
+    neque quis magna volutpat mollis ac nec orci. In ut felis quam. Nunc
+    fermentum neque dui, ac consequat risus sodales eget. Morbi consectetur
+    vel ligula nec volutpat. Curabitur tincidunt est sed dapibus euismod.
+    Integer ut urna tempus, pulvinar ante ac, porttitor nisi. Sed
+    ullamcorper sodales est aliquam facilisis. Ut ut sem convallis, sodales
+    massa eget, adipiscing nisl. Integer eget commodo tellus. In convallis
+    leo dui, at sagittis est sagittis a. Vestibulum id neque molestie,
+    ultricies velit in, feugiat diam. Praesent vitae lorem sed elit
+    consectetur lobortis eget eu dui. Suspendisse quis commodo sapien.
+    Nullam semper quis urna ac interdum. Duis a velit sem. 
+    </p>
+
+    <pre class="codepre">
+<span class="comment">-- Read a reduced set of our flight data</span>
+<span class="variable">flight_data</span> = <span class="keyword">LOAD</span>
<span class="constants">'accumulo://flights?instance=accumulo&user=pig&password=password&zookeepers=localhost&fetch_columns=destination,departure_time,scheduled_departure_time,flight_number,taxi_in,taxi_out,origin'</span>
+    <span class="keyword">USING</span> org.apache.accumulo.pig.AccumuloStorage()
<span class="keyword">AS</span> (rowkey:<span class="type">chararray</span>,
data:<span class="type">map[]</span>);
+
+<span class="comment">-- Also read airport information</span>
+<span class="variable">airports</span> = <span class="keyword">LOAD</span>
<span class="constants">'accumulo://airports?instance=accumulo&user=pig&password=password&zookeepers=localhost'</span>
<span class="keyword">USING</span>
+    org.apache.accumulo.pig.AccumuloStorage() <span class="keyword">AS</span>
(rowkey:<span class="type">chararray</span>, data:<span class="type">map[]</span>);
+
+<span class="comment">-- Permute the map</span>
+<span class="variable">flight_data</span> = <span class="keyword">FOREACH</span>
<span class="variable">flight_data</span> <span class="keyword">GENERATE</span>
rowkey, data#<span class="constants">'origin'</span> <span class="keyword">AS</span>
origin, data#<span class="constants">'destination'</span> <span class="keyword">AS</span>
destination, data#<span class="constants">'departure_time'</span> <span class="keyword">AS</span>
departure_time,
+    data#<span class="constants">'scheduled_departure_time'</span> <span class="keyword">AS</span>
scheduled_departure_time, data#<span class="constants">'flight_number'</span>
<span class="keyword">AS</span> flight_number, data#<span class="constants">'taxi_in'</span>
<span class="keyword">AS</span> taxi_in, data#<span class="constants">'taxi_out'</span>
<span class="keyword">AS</span> taxi_out;
+
+<span class="comment">-- Permute the map</span>
+<span class="variable">airports</span> = <span class="keyword">FOREACH</span>
<span class="variable">airports</span> <span class="keyword">GENERATE</span>
data#<span class="constants">'name'</span> <span class="keyword">AS</span>
name, data#<span class="constants">'state'</span> <span class="keyword">AS</span>
state, data#<span class="constants">'code'</span> <span class="keyword">AS</span>
code, data#<span class="constants">'country'</span> <span class="keyword">AS</span>
country, data#<span class="constants">'city'</span. <span class="keyword">AS</span>
city;
+
+<span class="comment">-- Add airport information about the origin of the flight</span>
+<span class="variable">flights_with_origin</span> = <span class="keyword">JOIN</span>
<span class="variable">flight_data</span> <span class="keyword">BY</span>
origin, <span class="variable">airports</span> <span class="keyword">BY</span>
code;
+
+<span class="comment">-- Store this information back into Accumulo in a new table</span>
+<span class="keyword">STORE</span> <span class="variable">flights_with_origin</span>
<span class="keyword">INTO</span> <span class="constants">'accumulo://flights_with_airports?instance=accumulo1.4&user=root&password=secret&zookeepers=localhost'</span>
\
+    <span class="keyword">USING</span> org.apache.accumulo.pig.AccumuloStorage(<span
class="constants">'origin,destination,departure_time,scheduled_departure_time,flight_number,taxi_in,taxi_out,name,state,code,country,city'</span>);
+    </pre>
+
+    <p> Vestibulum vulputate nisi non imperdiet elementum. Pellentesque at
+    consequat nisi. Fusce ut luctus justo. Aenean tincidunt ut risus
+    condimentum convallis. Praesent eget tristique risus. Cras pellentesque sed
+    libero ac elementum. Quisque tempus commodo neque, laoreet accumsan lectus
+    sollicitudin eget. In convallis neque nisi, a iaculis neque interdum ac.
+    Suspendisse in ante lacinia dolor faucibus auctor.
+    </p>
+
+    <p>Nulla fringilla quis turpis a gravida. Quisque tellus arcu, sagittis et sapien
+    ut, imperdiet scelerisque est. Duis sapien mi, elementum vitae sem quis, varius
+    tincidunt tortor. In commodo semper magna. Donec ultrices nunc est, nec
+    volutpat leo porta scelerisque. Praesent tellus leo, scelerisque eget tortor
+    eget, posuere sodales nulla. Mauris imperdiet magna eget tristique consequat.
+    Nullam adipiscing at arcu in vestibulum. Donec consectetur justo sed odio
+    vehicula, vel lobortis libero vehicula. Fusce rutrum justo lorem, sed bibendum
+    ipsum ultrices eget. Praesent lobortis justo quis sem adipiscing rutrum ac eget
+    nisi. Pellentesque et justo in leo rutrum rhoncus a ut neque. Fusce faucibus,
+    orci nec venenatis dapibus, est leo ornare eros, ac adipiscing erat felis sit
+    amet tellus. Nulla vehicula ipsum sit amet accumsan tempor.
+    </p>
+
+    <p>Nulla ac est tincidunt, lacinia quam nec, mollis ante. Nulla ut tincidunt
+    massa, vel laoreet elit. Aliquam erat volutpat. Mauris varius dolor in eros
+    blandit adipiscing. Nam ultrices tellus quam, eu porta quam varius ac.
+    Phasellus in massa fringilla, mattis nisi vel, condimentum diam. Cras porttitor
+    eget arcu vel tempor.
+    </p>
+
+    <p>Ut id vestibulum lorem. Fusce vitae metus sed magna tincidunt vestibulum. Fusce
+    in eros ac nulla vestibulum venenatis vitae vitae nisi. Donec elementum neque
+    ac viverra cursus. Morbi tincidunt venenatis tellus, id facilisis nibh viverra
+    eget. Aenean pellentesque gravida orci, sed elementum nisl vulputate at.
+    Suspendisse ut orci vitae tortor viverra egestas id scelerisque ante. Praesent
+    vel tempor justo, id tempor lacus. Proin convallis vehicula mauris. Suspendisse
+    tincidunt et libero vitae condimentum. Nam arcu urna, sollicitudin nec diam
+    congue, ultricies hendrerit mi. Vivamus viverra elit in libero rutrum commodo.
+    Ut eget varius arcu, ac venenatis tellus. Quisque rutrum blandit velit in
+    sollicitudin. Maecenas nibh purus, consectetur at elementum at, dictum et
+    dolor. 
+    </p>
+</div>
+    <!--
+    <div id="posts">
+    {% for post in paginator.posts %}
+        <div class="post">
+            <div class="title">
+                <h3 class="title"><a href="{{ post.url }}">{{ post.title }}</a></h3>
+            </div>
+
+            <div class="content">
+                {{ post.content }}
+            </div>
+
+            <div class="pre_footer"></div>
+
+            <div class="post_footer">
+                <p>Posted: {{ post.date | date_to_string }}</p>
+            </div>
+        </div>
+    {% endfor %}
+    </div>
+    -->
+
+    <!--
+    {% if paginator.total_pages > 1 %}
+        <!-- Pagination links -->
+        <div class="pagination">
+        {% if paginator.previous_page %}
+            {% if paginator.previous_page == 1 %}
+            <a href="/" class="previous">Previous</a>
+            {% else %}
+            <a href="/page{{paginator.previous_page}}" class="previous">Previous</a>
+            {% endif %}
+        {% endif %}
+        <span class="page_number ">{{paginator.page}} of {{paginator.total_pages}}</span>
+        {% if paginator.next_page %}
+            <a href="/page{{paginator.next_page}}" class="next ">Next</a>
+        {% endif %}
+        </div>
+    {% endif %}
+    -->
+


Mime
View raw message