[
https://issues.apache.org/jira/browse/HBASE-2396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971149#action_12971149
]
stack commented on HBASE-2396:
------------------------------
Talking in the hallway later, thought was that we'd pass two Strings -- the
name of the interpreter and the String we want to run. The first cut at a
coprocessor would use java scripting --
http://download.oracle.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html
-- and do something like this:
{code}
ScriptEngine engine = factory.getEngineByName("JavaScript");
// evaluate JavaScript code from String
engine.eval("print('Hello, World')");
{code}
Yeah, I suppose we'd return a Result? Maybe we should return a String? JSON
String?
> Coprocessors: Server side dynamic scripting language execution
> --------------------------------------------------------------
>
> Key: HBASE-2396
> URL: https://issues.apache.org/jira/browse/HBASE-2396
> Project: HBase
> Issue Type: Sub-task
> Reporter: Todd Lipcon
>
> There are a lot of use cases where users want to perform some simple
> operations on the region server. For example, a row may represent a Set and
> users want append/search/remove style operations within the row without
> having to perform the work on the client side. One possible solution is to
> embed a small language something like PL/SQL (not necessarily in syntax)
> which restricts users to a safe set of operations.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.