accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject accumulo git commit: ACCUMULO-3951: Provide some information about the script command in the shell.
Date Wed, 29 Jul 2015 18:20:20 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master 62cf65753 -> 4999c421a

ACCUMULO-3951: Provide some information about the script command in the shell.


Branch: refs/heads/master
Commit: 4999c421a15d77a70bc5482f0cc096b889dc0d41
Parents: 62cf657
Author: Dave Marion <>
Authored: Wed Jul 29 14:19:44 2015 -0400
Committer: Dave Marion <>
Committed: Wed Jul 29 14:19:44 2015 -0400

 docs/src/main/asciidoc/chapters/shell.txt | 29 ++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
diff --git a/docs/src/main/asciidoc/chapters/shell.txt b/docs/src/main/asciidoc/chapters/shell.txt
index 7afcd7d..a1cdd00 100644
--- a/docs/src/main/asciidoc/chapters/shell.txt
+++ b/docs/src/main/asciidoc/chapters/shell.txt
@@ -127,3 +127,32 @@ Enter current password for 'root': *********
 root@myinstance bobstable> revoke System.CREATE_TABLE -s -u bob
+=== JSR-223 Support in the Shell
+The script command can be used to invoke programs written in languages supported by installed
+engines. You can get a list of installed engines with the -l argument. Below is an example
of the output
+of the command when running the Shell with Java 7.
+root@fake> script -l
+    Engine Alias: ECMAScript
+    Engine Alias: JavaScript
+    Engine Alias: ecmascript
+    Engine Alias: javascript
+    Engine Alias: js
+    Engine Alias: rhino
+    Language: ECMAScript (1.8)
+    Script Engine: Mozilla Rhino (1.7 release 3 PRERELEASE)
+ScriptEngineFactory Info
+ A list of compatible languages can be found at
+rhino javascript engine is provided with the JVM. Typically putting a jar on the classpath
is all that is
+needed to install a new engine.
+ When writing scripts to run in the shell, you will have a variable called connection already
+to you. This variable is a reference to an Accumulo Connector object, the same connection
that the Shell
+is using to communicate with the Accumulo servers. At this point you can use any of the public
API methods
+within your script. Reference the script command help to see all of the execution options.
Script and script
+invocation examples can be found in ACCUMULO-1399.

View raw message