This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.graalvm.polyglot.*; | |
import java.lang.reflect.Array; | |
import java.lang.reflect.Field; | |
import java.util.Arrays; | |
public class Main { | |
public static void main(String[] args) throws Exception { | |
try (Context context = Context.create("js")) { | |
context.eval("js", "" + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install missing libraries (if any) | |
cd ~ | |
sudo yum update | |
yum install java-1.7.0-openjdk.x86_64 | |
yum install unzip | |
yum install mc | |
yum install wget | |
yum install curl | |
# get and unpack elasticsearch zip file |