@Test public void testRunOnMaster() throws ExecuteException, IOException { ExecuteResult result = ShmackUtils.runOnMaster("hostname"); assertTrue("Hostname of aws-node: " + result, result.getStandardOutput().contains("compute.internal")); }
public static ExecuteResult runOnMaster(String executable, String... arguments) throws ExecuteException, IOException { return runOnMaster(ExecExceptionHandling.THROW_EXCEPTION_IF_EXIT_CODE_NOT_0, executable, arguments); }
ShmackUtils { public static ExecuteResult runOnMaster(String executable, String... arguments) throws ExecuteException, IOException { return runOnMaster(ExecExceptionHandling.THROW_EXCEPTION_IF_EXIT_CODE_NOT_0, executable, arguments); } }
ShmackUtils { public static ExecuteResult runOnMaster(String executable, String... arguments) throws ExecuteException, IOException { return runOnMaster(ExecExceptionHandling.THROW_EXCEPTION_IF_EXIT_CODE_NOT_0, executable, arguments); }  }
ShmackUtils { public static ExecuteResult runOnMaster(String executable, String... arguments) throws ExecuteException, IOException { return runOnMaster(ExecExceptionHandling.THROW_EXCEPTION_IF_EXIT_CODE_NOT_0, executable, arguments); }  static String determineScriptDir(); static void syncFolderToMasterAndSlave(File localSrcDir, File targetDirectory); static void syncFolderToMasterAndSlave(File localSrcDir, File targetDirectory, int slaveIndex); static void syncFolderFromSlave(File remoteSrcDir, File localTargetDir); static void syncFolderFromSlave(File remoteSrcDir, File localTargetDir, int slaveIndex); static void syncFolderToMaster(File localSrcDir, File targetDirectory); static void syncFolderFromMaster(File remoteSrcDir, File localTargetDir); static ExecuteResult syncFolderToHdfs(File localSrcDir, File hdfsTargetDirectory); static ExecuteResult syncFolderFromHdfs(File hdfsSrcDirectory, File localTargetDir); static String deleteInHdfs(File hdfsFileOrFolderToDelete); static String getHdfsURL(File hdfsTargetDirectory); static ExecuteResult runOnMaster(String executable, String... arguments); static ExecuteResult runOnMaster(ExecExceptionHandling exceptionHandling, String executable,
			String... arguments); static ExecuteResult runOnLocalhost(String executable, String... arguments); static ExecuteResult runOnLocalhost(ExecExceptionHandling exceptionHandling, String executable,
			String... arguments); static ExecuteResult runOnLocalhost(ExecExceptionHandling exceptionHandling, CommandLine cmdLineOnLocalhost); static void copyToHdfs(File localSrcFile, File hdfsTargetFile); static void copyFromHdfs(File hdfsSrcFile, File localTargetFile); static void writeStringToHdfs(File targetFile, String fileContent); static String readStringFromHdfs(File srcFile); static byte[] readByteArrayFromHdfs(File srcFile); }
ShmackUtils { public static ExecuteResult runOnMaster(String executable, String... arguments) throws ExecuteException, IOException { return runOnMaster(ExecExceptionHandling.THROW_EXCEPTION_IF_EXIT_CODE_NOT_0, executable, arguments); }  static String determineScriptDir(); static void syncFolderToMasterAndSlave(File localSrcDir, File targetDirectory); static void syncFolderToMasterAndSlave(File localSrcDir, File targetDirectory, int slaveIndex); static void syncFolderFromSlave(File remoteSrcDir, File localTargetDir); static void syncFolderFromSlave(File remoteSrcDir, File localTargetDir, int slaveIndex); static void syncFolderToMaster(File localSrcDir, File targetDirectory); static void syncFolderFromMaster(File remoteSrcDir, File localTargetDir); static ExecuteResult syncFolderToHdfs(File localSrcDir, File hdfsTargetDirectory); static ExecuteResult syncFolderFromHdfs(File hdfsSrcDirectory, File localTargetDir); static String deleteInHdfs(File hdfsFileOrFolderToDelete); static String getHdfsURL(File hdfsTargetDirectory); static ExecuteResult runOnMaster(String executable, String... arguments); static ExecuteResult runOnMaster(ExecExceptionHandling exceptionHandling, String executable,
			String... arguments); static ExecuteResult runOnLocalhost(String executable, String... arguments); static ExecuteResult runOnLocalhost(ExecExceptionHandling exceptionHandling, String executable,
			String... arguments); static ExecuteResult runOnLocalhost(ExecExceptionHandling exceptionHandling, CommandLine cmdLineOnLocalhost); static void copyToHdfs(File localSrcFile, File hdfsTargetFile); static void copyFromHdfs(File hdfsSrcFile, File localTargetFile); static void writeStringToHdfs(File targetFile, String fileContent); static String readStringFromHdfs(File srcFile); static byte[] readByteArrayFromHdfs(File srcFile);  }