[accumulo-website] branch milleruntime-readme-ruby created (now cc5aaec)

2017-11-02 Thread mmiller
This is an automated email from the ASF dual-hosted git repository.

mmiller pushed a change to branch milleruntime-readme-ruby
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git.


  at cc5aaec  Update README.md

This branch includes the following new commits:

 new cc5aaec  Update README.md

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
['"commits@accumulo.apache.org" '].


[accumulo-website] 01/01: Update README.md

2017-11-02 Thread mmiller
This is an automated email from the ASF dual-hosted git repository.

mmiller pushed a commit to branch milleruntime-readme-ruby
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git

commit cc5aaecae4a96fe90543b60a83c8c0bc6d9365be
Author: Mike Miller 
AuthorDate: Thu Nov 2 17:59:02 2017 -0400

Update README.md
---
 README.md | 4 
 1 file changed, 4 insertions(+)

diff --git a/README.md b/README.md
index ec88309..56f0bab 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,10 @@ use [Bundler] to install the necessary dependencies to run and 
build the website
 
 ## Install Bundler and dependencies
 
+Ruby is required to use Bundler so first make sure you have Ruby on your 
machine.  If you are using
+an OS packaged version of Ruby, you will have to also install the ruby-dev 
(Ubuntu) or 
+ruby-devel (Fedora) package as well.
+
 With Ruby installed on your machine, you can install [Bundler] using the 
command below:
 
 gem install bundler

-- 
To stop receiving notification emails like this one, please contact
"commits@accumulo.apache.org" .


[accumulo-website] branch tour updated: ACCUMULO-4734 Set up MAC

2017-11-02 Thread mmiller
This is an automated email from the ASF dual-hosted git repository.

mmiller pushed a commit to branch tour
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git


The following commit(s) were added to refs/heads/tour by this push:
 new eae7bec  ACCUMULO-4734 Set up MAC
eae7bec is described below

commit eae7bec9c4a330e093d58297ff19ca4383e97bc4
Author: Mike Miller 
AuthorDate: Thu Nov 2 17:33:30 2017 -0400

ACCUMULO-4734 Set up MAC
---
 README.md   | 16 
 pom.xml | 11 ++-
 src/main/java/tour/Main.java| 19 ++-
 src/main/resources/log4j.properties |  9 +
 4 files changed, 49 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index a410739..f5b0913 100644
--- a/README.md
+++ b/README.md
@@ -5,12 +5,20 @@ This git repository provides a barebones Maven+Java 
environment for the [Accumul
 go through the tour edit [Main.java] and use the following maven command to 
run your code.  This command 
 will execute Main.java with all of the correct dependencies on the classpath.
 
-```bash
+```commandline
 mvn -q clean compile exec:java
 ```
 
-The command takes a bit to run because it starts a MiniAccumulo each time.
+The command takes a bit to run because it starts a MiniAccumuloCluster each 
time.
 
-[tour]: https://fluo.apache.org/tour
-[Main.java]: src/main/java/tour/Main.java
+MiniAccumuloCluster is a mini version of Accumulo that runs on your local 
filesystem.  It should only be used for
+development purposes. Files and logs used by MiniAccumuloCluster can be seen 
in the generated directory:
+
+```commandline
+target/mac
+```
 
+Running _mvn clean_ will remove any files created by previous runs.
+
+[tour]: https://fluo.apache.org/tour
+[Main.java]: src/main/java/tour/Main.java
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 36ff99e..c94719e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,7 +13,8 @@
 
 
 
-
+UTF-8
+1.8.1
 
 
 
@@ -40,5 +41,13 @@
 

 
+
+
+org.apache.accumulo
+accumulo-minicluster
+${accumulo.version}
+
+
+
 
 
diff --git a/src/main/java/tour/Main.java b/src/main/java/tour/Main.java
index 4ec8f8c..10ac577 100644
--- a/src/main/java/tour/Main.java
+++ b/src/main/java/tour/Main.java
@@ -1,9 +1,26 @@
 package tour;
 
 
+import org.apache.accumulo.minicluster.MiniAccumuloCluster;
+
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+
 public class Main {
 
-public static void main(String[] args) {
+public static void main(String[] args) throws Exception {
 System.out.println("Running the Accumulo tour. Having fun yet?");
+
+Path tempDir = Files.createTempDirectory(Paths.get("target"), "mac");
+MiniAccumuloCluster mac = new MiniAccumuloCluster(tempDir.toFile(), 
"tourguide");
+
+mac.start();
+exercise(mac);
+mac.stop();
+}
+
+static void exercise(MiniAccumuloCluster mac) {
+// start writing your code here
 }
 }
diff --git a/src/main/resources/log4j.properties 
b/src/main/resources/log4j.properties
new file mode 100644
index 000..05f649f
--- /dev/null
+++ b/src/main/resources/log4j.properties
@@ -0,0 +1,9 @@
+log4j.rootLogger=INFO, CA
+log4j.appender.CA=org.apache.log4j.ConsoleAppender
+log4j.appender.CA.layout=org.apache.log4j.PatternLayout
+log4j.appender.CA.layout.ConversionPattern=%d{ISO8601} [%c{2}] %-5p: %m%n
+
+log4j.logger.org.apache.zookeeper.ClientCnxn=FATAL
+log4j.logger.org.apache.zookeeper.ZooKeeper=WARN
+log4j.logger.org.apache.curator=WARN
+log4j.logger.org.apache.accumulo=INFO

-- 
To stop receiving notification emails like this one, please contact
['"commits@accumulo.apache.org" '].


[accumulo-website] branch tour-website updated: ACCUMULO-4734 Created basic tour structure on website (#32)

2017-11-02 Thread mwalch
This is an automated email from the ASF dual-hosted git repository.

mwalch pushed a commit to branch tour-website
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git


The following commit(s) were added to refs/heads/tour-website by this push:
 new 722c9d5  ACCUMULO-4734 Created basic tour structure on website (#32)
722c9d5 is described below

commit 722c9d52aed82143a62345f3d084fb1b00b1ded5
Author: Mike Walch 
AuthorDate: Thu Nov 2 17:05:31 2017 -0400

ACCUMULO-4734 Created basic tour structure on website (#32)

* Content still needs to be created
---
 _config.yml|  7 ++
 _data/tour.yml |  6 +
 _includes/nav.html |  1 +
 _layouts/tour.html | 55 ++
 index.html |  6 +
 tour/basic-read-write.md   |  5 +
 tour/batch-scanner.md  |  3 +++
 tour/conditional-writer.md |  3 +++
 tour/getting-started.md|  5 +
 tour/index.md  | 29 
 tour/using-iterators.md|  3 +++
 11 files changed, 118 insertions(+), 5 deletions(-)

diff --git a/_config.yml b/_config.yml
index bcad220..3ad02d8 100644
--- a/_config.yml
+++ b/_config.yml
@@ -51,6 +51,13 @@ defaults:
   permalink: "/:categories/:title/"
   -
 scope:
+  path: "tour"
+  type: "pages"
+values:
+  layout: "tour"
+  permalink: "/tour/:basename/"
+  -
+scope:
   path: ""
   type: "docs-2-0"
 values:
diff --git a/_data/tour.yml b/_data/tour.yml
new file mode 100644
index 000..d84b5bb
--- /dev/null
+++ b/_data/tour.yml
@@ -0,0 +1,6 @@
+docs:
+ - getting-started
+ - basic-read-write
+ - batch-scanner
+ - conditional-writer
+ - using-iterators
diff --git a/_includes/nav.html b/_includes/nav.html
index 295d2e6..7413858 100644
--- a/_includes/nav.html
+++ b/_includes/nav.html
@@ -13,6 +13,7 @@
 
   
 Download
+Tour
 
   Releases
   
diff --git a/_layouts/tour.html b/_layouts/tour.html
new file mode 100644
index 000..eee83cb
--- /dev/null
+++ b/_layouts/tour.html
@@ -0,0 +1,55 @@
+---
+layout: default
+---
+{% assign tour_pages = site.data.tour.docs %}
+{% for p in tour_pages %}
+  {% assign doc_url = p | prepend: '/tour/' | append: '/' %}
+  {% if doc_url == page.url %}
+{% assign tour_num = forloop.index %}
+{% if forloop.first %}
+  {% assign previous = -1 %}
+{% else %}
+  {% assign previous = forloop.index0 | minus: 1 %}
+  {% assign previous_page = tour_pages[previous] | prepend:"/tour/" | 
append:"/" %}
+{% endif %}
+{% if forloop.last %}
+  {% assign next = 0 %}
+{% else %}
+  {% assign next = forloop.index0 | plus: 1 %}
+  {% assign next_page = tour_pages[next] | prepend:"/tour/" | append:"/" %}
+{% endif %}
+  {% endif %}
+{% endfor %}
+
+
+  Accumulo Tour: {{ page.title }}
+  Tour page {{ tour_num }} of {{ tour_pages.size }}
+
+
+  {{ content }}
+
+
+
+document.body.onkeyup = function(e){
+{% if previous >= 0 %}
+if (e.keyCode == '37') { window.location = '{{previous_page}}'; }
+{% endif %}
+
+{% if next > 0 %}
+if (e.keyCode == '39') { window.location = '{{next_page}}'; }
+{% endif %}
+};
+
+
+
+  
+{% if previous >= 0 %}
+
+{% endif %}
+
+{{ tour_num }} / {{ tour_pages.size }}
+{% if next > 0 %}
+
+{% endif %}
+  
+
diff --git a/index.html b/index.html
index 2777df1..6713e2e 100644
--- a/index.html
+++ b/index.html
@@ -10,6 +10,7 @@ legal_notice: Apache Accumulo, Apache Hadoop, and the 
Accumulo project logo are
Download
 
 Apache Accumulo is a key/value store based on the 
design of Google's https://research.google.com/archive/bigtable.html;>BigTable. Accumulo 
stores its data in https://hadoop.apache.org;>Apache Hadoop's HDFS 
and uses https://zookeeper.apache.org;>Apache Zookeeper for 
consensus. While many users interact directly with Accumulo, several open source projects use Accumulo as their 
underlying store.
+To learn more about Accumulo, take the Accumulo tour, read the user manual and run the Accumulo https://github.com/apache/accumulo-examples;>example code. Also, join 
our mailing list and see how you can get involved.
 
 Major Features
 
@@ -33,11 +34,6 @@ legal_notice: Apache Accumulo, Apache Hadoop, and the 
Accumulo project logo are
 Accumulo has a stable client API that 
follows https://semver.org;>semantic versioning. Each Accumulo 
release goes through extensive testing.
   
 
-
-
-To learn more about Accumulo, read the user 
manual and run the Accumulo https://github.com/apache/accumulo-examples;>example code. Also, join 
our mailing list and see how you can get involved.
-  
-
   
   
 
diff --git a/tour/basic-read-write.md b/tour/basic-read-write.md
new file mode 100644
index 000..6eb1c5c
--- /dev/null
+++ b/tour/basic-read-write.md
@@ -0,0 +1,5 @@
+---
+title: Basic 

[accumulo-website] 01/01: ACCUMULO-4734 Initial commit

2017-11-02 Thread mmiller
This is an automated email from the ASF dual-hosted git repository.

mmiller pushed a commit to branch tour
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git

commit fd091203db8f8d84d4b8b12f341b5104d15632f8
Author: Mike Miller 
AuthorDate: Thu Nov 2 15:51:18 2017 -0400

ACCUMULO-4734 Initial commit
---
 .gitignore   |  3 +++
 README.md| 16 
 pom.xml  | 44 
 src/main/java/tour/Main.java |  9 +
 4 files changed, 72 insertions(+)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..d8b48b5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/target/
+/.idea
+/*.iml
diff --git a/README.md b/README.md
new file mode 100644
index 000..a410739
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+Accumulo Tour
+-
+
+This git repository provides a barebones Maven+Java environment for the 
[Accumulo Tour][tour].  As you
+go through the tour edit [Main.java] and use the following maven command to 
run your code.  This command 
+will execute Main.java with all of the correct dependencies on the classpath.
+
+```bash
+mvn -q clean compile exec:java
+```
+
+The command takes a bit to run because it starts a MiniAccumulo each time.
+
+[tour]: https://fluo.apache.org/tour
+[Main.java]: src/main/java/tour/Main.java
+
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 000..36ff99e
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,44 @@
+
+http://maven.apache.org/POM/4.0.0;
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;>
+4.0.0
+
+org.apache.accumulo
+accumulo-tour
+0.0.1-SNAPSHOT
+jar
+
+accumulo-tour
+
+
+
+
+
+
+
+
+  
+maven-compiler-plugin
+3.1
+
+  1.8
+  1.8
+  true
+  UTF-8
+
+  
+  
+org.codehaus.mojo
+exec-maven-plugin
+1.5.0
+
+  tour.Main
+  false
+
+  
+
+   
+
+
+
diff --git a/src/main/java/tour/Main.java b/src/main/java/tour/Main.java
new file mode 100644
index 000..4ec8f8c
--- /dev/null
+++ b/src/main/java/tour/Main.java
@@ -0,0 +1,9 @@
+package tour;
+
+
+public class Main {
+
+public static void main(String[] args) {
+System.out.println("Running the Accumulo tour. Having fun yet?");
+}
+}

-- 
To stop receiving notification emails like this one, please contact
"commits@accumulo.apache.org" .


[accumulo-website] branch tour created (now fd09120)

2017-11-02 Thread mmiller
This is an automated email from the ASF dual-hosted git repository.

mmiller pushed a change to branch tour
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git.


  at fd09120  ACCUMULO-4734 Initial commit

This branch includes the following new commits:

 new fd09120  ACCUMULO-4734 Initial commit

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
['"commits@accumulo.apache.org" '].


[accumulo-website] branch tour-website created (now d8338cc)

2017-11-02 Thread mwalch
This is an automated email from the ASF dual-hosted git repository.

mwalch pushed a change to branch tour-website
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git.


  at d8338cc  Switch from numbers to ids for links

No new revisions were added by this update.

-- 
To stop receiving notification emails like this one, please contact
['"commits@accumulo.apache.org" '].