@Override protected void beforeCleanup(ClusterActionEvent event) throws IOException { addStatement(event, call("cleanup_elasticsearch")); } }
public InstallChefUsingOmnibus(String chefVersion) { super(call("setupPublicCurl"), saveHttpResponseTo(URI.create(OMNIBUS_INSTALLER), "/tmp", "install-chef.sh"), exec("sh /tmp/install-chef.sh -v " + chefVersion)); } }
public InstallChefUsingOmnibus(String chefVersion) { super(call("setupPublicCurl"), saveHttpResponseTo(URI.create(OMNIBUS_INSTALLER), "/tmp", "install-chef.sh"), exec("sh /tmp/install-chef.sh -v " + chefVersion)); } }
@Override protected void beforeBootstrap(ClusterActionEvent event) throws IOException { ClusterSpec clusterSpec = event.getClusterSpec(); Configuration conf = getConfiguration(clusterSpec); addStatement(event, call("configure_hostnames")); addStatement(event, call("install_mysql")); // installed/run via apt-get } protected void beforeConfigure(ClusterActionEvent event) throws IOException {
@Override protected void beforeBootstrap(ClusterActionEvent event) throws IOException { super.beforeBootstrap(event); addStatement(event, call("install_kerberos_server")); }
@Override protected void beforeBootstrap(ClusterActionEvent event) throws IOException { ClusterSpec clusterSpec = event.getClusterSpec(); Configuration conf = getConfiguration(clusterSpec); addStatement(event, call("configure_hostnames")); addStatement(event, call("install_mysql")); // installed/run via apt-get } protected void beforeConfigure(ClusterActionEvent event) throws IOException {
@Override protected void beforeBootstrap(ClusterActionEvent event) throws IOException { super.beforeBootstrap(event); addStatement(event, call("install_kerberos_server")); }
@Override protected void beforeBootstrap(ClusterActionEvent event) throws IOException, InterruptedException { Configuration conf = getConfiguration(event.getClusterSpec(), MAHOUT_DEFAULT_PROPERTIES); String mahoutTarball = prepareRemoteFileUrl(event, conf.getString(MAHOUT_TAR_URL)); addStatement(event, call("retry_helpers")); addStatement(event, call(MAHOUT_CLIENT_SCRIPT, URL_FLAG, mahoutTarball)); }
@Override protected void beforeBootstrap(ClusterActionEvent event) throws IOException { ClusterSpec clusterSpec = event.getClusterSpec(); Configuration config = getConfiguration(clusterSpec); addStatement(event, call("retry_helpers")); addStatement(event, call(getInstallFunction(config), "-r", GANGLIA_MONITOR_ROLE) ); }
@Override protected void beforeBootstrap(ClusterActionEvent event) throws IOException { ClusterSpec clusterSpec = event.getClusterSpec(); Configuration config = getConfiguration(clusterSpec); addStatement(event, call("retry_helpers")); addStatement(event, call(getInstallFunction(config), "-r", GANGLIA_METAD_ROLE) ); }
@Override protected void beforeBootstrap(ClusterActionEvent event) throws IOException { ClusterSpec clusterSpec = event.getClusterSpec(); Configuration config = getConfiguration(clusterSpec); addStatement(event, call("retry_helpers")); addStatement(event, call(getInstallFunction(config), "-r", GANGLIA_METAD_ROLE) ); }
@Override protected void beforeBootstrap(ClusterActionEvent event) throws IOException { ClusterSpec clusterSpec = event.getClusterSpec(); Configuration config = getConfiguration(clusterSpec); addStatement(event, call("retry_helpers")); addStatement(event, call(getInstallFunction(config), "-r", GANGLIA_MONITOR_ROLE) ); }
@Override protected void beforeBootstrap(ClusterActionEvent event) throws IOException { addStatement(event, call("configure_hostnames")); addStatement(event, call("retry_helpers")); if (!(event.getClusterSpec().getConfiguration().containsKey("whirr.env.jdk_installed") && event.getClusterSpec() .getConfiguration().getBoolean("whirr.env.jdk_installed"))) { addStatement(event, call(getInstallFunction(event.getClusterSpec().getConfiguration(), "java", "install_openjdk"))); } addStatement(event, call("install_kerberos_client")); }
@Override protected void beforeStart(ClusterActionEvent event) throws IOException { Configuration config = getConfiguration(event.getClusterSpec()); String configureFunction = getConfigureFunction(config); if (configureFunction.equals("configure_druid")) { addStatement(event, call(getStartFunction(config), getRole())); } else { } }
@Override protected void beforeStart(ClusterActionEvent event) throws IOException { Configuration config = getConfiguration(event.getClusterSpec()); String configureFunction = getConfigureFunction(config); if (configureFunction.equals("configure_druid")) { addStatement(event, call(getStartFunction(config), getRole())); } else { } }
@Override protected void beforeConfigure(ClusterActionEvent event) throws IOException { super.beforeConfigure(event); addStatement(event, call("configure_kerberos_server")); for (Object port : getConfiguration(event.getClusterSpec()).getList(PROPERTY_PORTS)) { if (port != null && !"".equals(port)) event.getFirewallManager().addRule( Rule.create().destination(role(ROLE)).port(Integer.parseInt(port.toString()))); } }
@Override protected void beforeConfigure(ClusterActionEvent event) throws IOException, InterruptedException { ClusterSpec clusterSpec = event.getClusterSpec(); Configuration conf = getConfiguration(clusterSpec); handleFirewallRules(event); addStatement(event, call(getStartFunction(conf, "mr_jobhistory", "start_mr_jobhistory"), "historyserver")); }