/** * Step that installs the specified versions of Hive on your job flow. * * @param hiveVersions the versions of Hive to install * @return HadoopJarStepConfig that can be passed to your job flow. */ public HadoopJarStepConfig newInstallHiveStep(String... hiveVersions) { if (hiveVersions.length > 0) { return newHivePigStep("hive", "--install-hive", "--hive-versions", StringUtils.join(",", hiveVersions)); } return newHivePigStep("hive", "--install-hive", "--hive-versions", "latest"); }
/** * Step that installs Pig on your job flow. * * @param pigVersions the versions of Pig to install. * * @return HadoopJarStepConfig that can be passed to your job flow. */ public HadoopJarStepConfig newInstallPigStep(String... pigVersions) { if (pigVersions != null && pigVersions.length > 0) { return newHivePigStep("pig", "--install-pig", "--pig-versions", StringUtils.join(",", pigVersions)); } return newHivePigStep("pig", "--install-pig", "--pig-versions", "latest"); }
/** * Step that installs the specified versions of Hive on your job flow. * * @param hiveVersions the versions of Hive to install * @return HadoopJarStepConfig that can be passed to your job flow. */ public HadoopJarStepConfig newInstallHiveStep(String... hiveVersions) { if (hiveVersions.length > 0) { return newHivePigStep("hive", "--install-hive", "--hive-versions", StringUtils.join(",", hiveVersions)); } return newHivePigStep("hive", "--install-hive", "--hive-versions", "latest"); }
/** * Step that installs Pig on your job flow. * * @param pigVersions the versions of Pig to install. * * @return HadoopJarStepConfig that can be passed to your job flow. */ public HadoopJarStepConfig newInstallPigStep(String... pigVersions) { if (pigVersions != null && pigVersions.length > 0) { return newHivePigStep("pig", "--install-pig", "--pig-versions", StringUtils.join(",", pigVersions)); } return newHivePigStep("pig", "--install-pig", "--pig-versions", "latest"); }