fire up a local node
node =
nodeBuilder().local(true).settings(settings).clusterName(nodeName).node();
node.start();
Maybe you first start the node and then add the script, this might not work
because i think es does a per minute scan for new scripts and the IT test
does not allow this to happen, hence you should first copy your script and
then start the node
Hope it helps
Thomas
On Wednesday, 30 July 2014 12:31:06 UTC+3, Nick T wrote:
Is there a way to have a native java script accessible in integration
tests? In my integration tests I am creating a test node in the /tmp
folder.
I've tried copying the script to /tmp/plugins/scripts but that was quite
hopeful and unfortunately does not work.
I have noticed that you mention native java script so you have implemented
it as a plugin?
if so try the following in your settings:
final Settings settings
= settingsBuilder()
...
.put("plugin.types", YourPlugin.class.getName())
Thomas
On Wednesday, 30 July 2014 12:31:06 UTC+3, Nick T wrote:
Is there a way to have a native java script accessible in integration
tests? In my integration tests I am creating a test node in the /tmp
folder.
I've tried copying the script to /tmp/plugins/scripts but that was quite
hopeful and unfortunately does not work.
Create the plugins/scripts directory created in /tmp for each test node
copy my script jar into it
Register script in settings:
.put("script.native.NAME.type", "NAME OF SCRIPT")
I am super grateful for all your help. Btw, I wasn't creating it as a
plugin.
On Wednesday, 30 July 2014 11:33:45 UTC+1, Thomas wrote:
I have noticed that you mention native java script so you have implemented
it as a plugin?
if so try the following in your settings:
final Settings settings
= settingsBuilder()
...
.put("plugin.types", YourPlugin.class.getName())
Thomas
On Wednesday, 30 July 2014 12:31:06 UTC+3, Nick T wrote:
Is there a way to have a native java script accessible in integration
tests? In my integration tests I am creating a test node in the /tmp
folder.
I've tried copying the script to /tmp/plugins/scripts but that was quite
hopeful and unfortunately does not work.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.